Skip to contentSkip to conversation

Updates the i.MX8ULP EVK board support

PATCH Superseded [email protected] 2 participants 4 messages Dec 3, 2025 – Dec 6, 2025

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover Updates the i.MX8ULP EVK board support

Changes for v2:
- Delete fdt_high and initrd_high from imx8ulp_evk.env.
- Remove arch/arm/dts/imx8ulp.dtsi and arch/arm/dts/imx8ulp-evk.dts.

---
Alice Guo (2):
imx8ulp_evk: Move environment variables to .env file
imx8ulp_evk: Switch to use devicetree imported from Linux kernel release

 arch/arm/dts/Makefile                       |   3 -
 arch/arm/dts/imx8ulp-evk-u-boot.dtsi        |   8 +
 arch/arm/dts/imx8ulp-evk.dts                | 125 --------
 arch/arm/dts/imx8ulp.dtsi                   | 476 ----------------------------
 arch/arm/mach-imx/imx8ulp/Kconfig           |   2 +
 board/freescale/imx8ulp_evk/imx8ulp_evk.env |  97 ++++++
 configs/imx8ulp_evk_defconfig               |   7 +-
 include/configs/imx8ulp_evk.h               |  24 --
 8 files changed, 110 insertions(+), 632 deletions(-)

---
base-commit: 209bbc4e0032228c6ea17e2172a8a6b89756c4f5
change-id: 20251203-imx8ulp-a67582c7554e

Best regards,

Signature · 1 line
Alice Guo <[email protected]>
#1 lore raw

PATCH v2 1/2 imx8ulp_evk: Move environment variables to .env file

From: Alice Guo <[email protected]>

Add board-specific environment variables to imx8ulp_evk.env for better maintainability.

---
 arch/arm/mach-imx/imx8ulp/Kconfig           |  1 +
 board/freescale/imx8ulp_evk/imx8ulp_evk.env | 97 +++++++++++++++++++++++++++++
 configs/imx8ulp_evk_defconfig               |  5 +-
 include/configs/imx8ulp_evk.h               | 24 -------
 4 files changed, 100 insertions(+), 27 deletions(-)
arch/arm/mach-imx/imx8ulp/Kconfig +1 -0
index fbca241e106..e96e34651ce 100644
@@ -27,6 +27,7 @@ config TARGET_IMX8ULP_EVK
 	select IMX8ULP
 	select SUPPORT_SPL
 	select IMX8ULP_DRAM
+	imply BOOTSTD_FULL
 
 endchoice
 
board/freescale/imx8ulp_evk/imx8ulp_evk.env new file +97 -0

97 lines not on this page · raw message

configs/imx8ulp_evk_defconfig +2 -3
index e750b3d9ae0..f8a87dde5cf 100644
@@ -27,9 +27,8 @@ CONFIG_REMAKE_ELF=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_DISTRO_DEFAULTS=y
-CONFIG_BOOTDELAY=0
-CONFIG_BOOTCOMMAND="run distro_bootcmd;run bsp_bootcmd"
-CONFIG_DEFAULT_FDT_FILE="imx8ulp-evk"
+CONFIG_BOOTCOMMAND="bootflow scan -l; run bsp_bootcmd"
+CONFIG_DEFAULT_FDT_FILE="imx8ulp-evk.dtb"
 CONFIG_SYS_CBSIZE=2048
 CONFIG_SYS_PBSIZE=2068
 CONFIG_BOARD_EARLY_INIT_F=y
include/configs/imx8ulp_evk.h +0 -24
index 9308f5234f4..edfd6f70815 100644
@@ -21,30 +21,6 @@
 #define CFG_FEC_MXC_PHYADDR		1
 #endif
 
-#ifdef CONFIG_DISTRO_DEFAULTS
-#define BOOT_TARGET_DEVICES(func) \
-	func(MMC, mmc, 0)
-
-#include <config_distro_bootcmd.h>
-#else
-#define BOOTENV
-#endif
-
-/* Initial environment variables */
-#define CFG_EXTRA_ENV_SETTINGS		\
-	BOOTENV \
-	"scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
-	"kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
-	"image=Image\0" \
-	"console=ttyLP1,115200 earlycon\0" \
-	"fdt_addr_r=0x83000000\0"			\
-	"boot_fit=no\0" \
-	"fdtfile=imx8ulp-evk.dtb\0" \
-	"initrd_addr=0x83800000\0"		\
-	"bootm_size=0x10000000\0" \
-	"mmcpart=1\0" \
-	"mmcroot=/dev/mmcblk2p2 rootwait rw\0" \
-
 /* Link Definitions */
 
 #define CFG_SYS_INIT_RAM_ADDR	0x80000000
Signature · 1 line
2.43.0
reviewer
#2 lore raw

Re: [PATCH v2 1/2] imx8ulp_evk: Move environment variables to .env file

Hi Alice,

Quoted 5 lines · On Wed, Dec 3, 2025 at 5:52 AM <[email protected]> wrote:

From: Alice Guo <[email protected]>

Add board-specific environment variables to imx8ulp_evk.env for better maintainability.

You are doing more than that...

Quoted 13 lines
---
 arch/arm/mach-imx/imx8ulp/Kconfig           |  1 +
 board/freescale/imx8ulp_evk/imx8ulp_evk.env | 97 +++++++++++++++++++++++++++++
 configs/imx8ulp_evk_defconfig               |  5 +-
 include/configs/imx8ulp_evk.h               | 24 -------
 4 files changed, 100 insertions(+), 27 deletions(-)
arch/arm/mach-imx/imx8ulp/Kconfig +0 -0
index fbca241e106..e96e34651ce 100644

arch/arm/mach-imx/imx8ulp/Kconfig config TARGET_IMX8ULP_EVK · line 30

Quoted 4 lines
arch/arm/mach-imx/imx8ulp/Kconfig +1 -0
@@ -27,6 +27,7 @@ config TARGET_IMX8ULP_EVK
        select IMX8ULP
        select SUPPORT_SPL
        select IMX8ULP_DRAM
+       imply BOOTSTD_FULL

Here you convert to standard boot.

Please split this in two separate changes: one for env and another for bootstd.

Also, I had issues applying patch 2/2. Please rebase and send a v3.

Thanks

#3 lore raw

PATCH v2 2/2 imx8ulp_evk: Switch to use devicetree imported from Linux kernel release

In reply to [email protected]

From: Alice Guo <[email protected]>

Enable OF_UPSTREAM for i.MX8ULP EVK so that devicetree imported from Linux kernel release can be used.

If mailbox@29220000 is enabled, gd->arch.ele_dev will be set to this device for communication with ELE firmware. This is incorrect because mu@27020000 is the MU used for communication with the ELE firmware. To prevent misconfiguration, disable mailbox@29220000.

The driver model for watchdog timer is not enabled yet, so disable wdog3 temporarily.

---
 arch/arm/dts/Makefile                |   3 -
 arch/arm/dts/imx8ulp-evk-u-boot.dtsi |   8 +
 arch/arm/dts/imx8ulp-evk.dts         | 125 ---------
 arch/arm/dts/imx8ulp.dtsi            | 476 -----------------------------------
 arch/arm/mach-imx/imx8ulp/Kconfig    |   1 +
 configs/imx8ulp_evk_defconfig        |   2 +-
 6 files changed, 10 insertions(+), 605 deletions(-)
arch/arm/dts/Makefile +0 -3
index 865ceb65f9a..b7ece30d1a3 100644
@@ -880,9 +880,6 @@ dtb-$(CONFIG_ARCH_IMX8) += \
 	fsl-imx8qxp-mek.dtb \
 	imx8-capricorn-cxg3.dtb \
 
-dtb-$(CONFIG_ARCH_IMX8ULP) += \
-	imx8ulp-evk.dtb
-
 dtb-$(CONFIG_ARCH_IMX8M) += \
 	imx8mm-data-modul-edm-sbc.dtb \
 	imx8mm-icore-mx8mm-ctouch2.dtb \
arch/arm/dts/imx8ulp-evk-u-boot.dtsi +8 -0
index 2782dc7dd75..860994129ae 100644
@@ -22,6 +22,14 @@
 	bootph-all;
 };
 
+&mu {
+	status = "disabled";
+};
+
+&wdog3 {
+	status = "disabled";
+};
+
 &per_bridge4 {
 	bootph-pre-ram;
 };
arch/arm/dts/imx8ulp-evk.dts deleted +0 -125

125 lines not on this page · raw message

arch/arm/dts/imx8ulp.dtsi deleted +0 -476

476 lines not on this page · raw message

arch/arm/mach-imx/imx8ulp/Kconfig +1 -0
index e96e34651ce..d64cfca0408 100644
@@ -28,6 +28,7 @@ config TARGET_IMX8ULP_EVK
 	select SUPPORT_SPL
 	select IMX8ULP_DRAM
 	imply BOOTSTD_FULL
+	imply OF_UPSTREAM
 
 endchoice
 
configs/imx8ulp_evk_defconfig +1 -1
index f8a87dde5cf..469ee928129 100644
@@ -10,7 +10,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x400000
 CONFIG_IMX_CONFIG="arch/arm/mach-imx/imx8ulp/imximage.cfg"
 CONFIG_DM_GPIO=y
-CONFIG_DEFAULT_DEVICE_TREE="imx8ulp-evk"
+CONFIG_DEFAULT_DEVICE_TREE="freescale/imx8ulp-evk"
 CONFIG_TARGET_IMX8ULP_EVK=y
 CONFIG_SYS_MONITOR_LEN=524288
 CONFIG_SPL_SERIAL=y
Signature · 1 line
2.43.0