Skip to contentSkip to conversation

Updates the i.MX8ULP EVK board support

PATCH In review [email protected] 2 participants 5 messages Dec 9, 2025 – Dec 29, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v3 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.

Changes for v3:
- Split v2 patch 1/2 into two separate patches: one for bootstd enablement and one for env.

---
Alice Guo (3):
imx8ulp_evk: Convert to standard boot
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           |   1 +
 board/freescale/imx8ulp_evk/imx8ulp_evk.env |  97 ++++++
 configs/imx8ulp_evk_defconfig               |   8 +-
 include/configs/imx8ulp_evk.h               |  24 --
 8 files changed, 110 insertions(+), 632 deletions(-)

---
base-commit: 0e0a198a68be71148f5ec27ef86796174f91436f
change-id: 20251209-imx8ulp-e1988491f11c

Best regards,

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

PATCH v3 1/3 imx8ulp_evk: Convert to standard boot

From: Alice Guo <[email protected]>

Replace CONFIG_DISTRO_DEFAULTS with CONFIG_BOOTSTD_FULL to enable the standard boot framework and use standard boot on i.MX8ULP.

Update CONFIG_BOOTCOMMAND to run bootflow scan before falling back to board-specific bootcmd, and remove legacy distro boot environment from imx8ulp_evk.h since bootstd now handles boot targets.

---
 configs/imx8ulp_evk_defconfig |  4 ++--
 include/configs/imx8ulp_evk.h | 10 ----------
 2 files changed, 2 insertions(+), 12 deletions(-)
configs/imx8ulp_evk_defconfig +2 -2
index e750b3d9ae0..8617cf32f2b 100644
@@ -26,9 +26,9 @@ CONFIG_SPL_IMX_ROMAPI_LOADADDR=0x88000000
 CONFIG_REMAKE_ELF=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
-CONFIG_DISTRO_DEFAULTS=y
+CONFIG_BOOTSTD_FULL=y
 CONFIG_BOOTDELAY=0
-CONFIG_BOOTCOMMAND="run distro_bootcmd;run bsp_bootcmd"
+CONFIG_BOOTCOMMAND="bootflow scan -l; run bsp_bootcmd"
 CONFIG_DEFAULT_FDT_FILE="imx8ulp-evk"
 CONFIG_SYS_CBSIZE=2048
 CONFIG_SYS_PBSIZE=2068
include/configs/imx8ulp_evk.h +0 -10
index 9308f5234f4..eb006c5d4a5 100644
@@ -21,18 +21,8 @@
 #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" \
Signature · 1 line
2.43.0
#2 lore raw

PATCH v3 2/3 imx8ulp_evk: Move environment variables to .env file

In reply to [email protected]

From: Alice Guo <[email protected]>

Add board-specific environment variables to imx8ulp_evk.env for better maintainability. Define bsp_bootcmd in the environment to resolve the runtime error: "bsp_bootcmd" not defined.

---
 board/freescale/imx8ulp_evk/imx8ulp_evk.env | 97 +++++++++++++++++++++++++++++
 configs/imx8ulp_evk_defconfig               |  2 +-
 include/configs/imx8ulp_evk.h               | 14 -----
 3 files changed, 98 insertions(+), 15 deletions(-)
board/freescale/imx8ulp_evk/imx8ulp_evk.env new file +97 -0
new file mode 100644
index 00000000000..52d7f447029
@@ -0,0 +1,97 @@
+#ifdef CONFIG_AHAB_BOOT
+sec_boot=yes
+#else
+sec_boot=no
+#endif
+
+jh_clk=
+jh_mmcboot=setenv jh_clk kvm.enable_virt_at_load=false clk_ignore_unused mem=896MB; run loadimage; \
+	   run mmcboot
+jh_netboot=setenv jh_clk kvm.enable_virt_at_load=false clk_ignore_unused mem=896MB; run netboot
+
+initrd_addr=0x83800000
+scriptaddr=0x83500000
+splashimage=0x90000000
+kernel_addr_r=CONFIG_SYS_LOAD_ADDR
+fdtoverlay_addr_r=0x83040000
+fdt_addr_r=0x83000000
+fdt_addr=0x83000000
+cntr_addr=0x98000000
+emmc_dev=0
+sd_dev=2
+mmcdev=CONFIG_SYS_MMC_ENV_DEV
+mmcpart=1
+image=Image
+cntr_file=os_cntr_signed.bin
+fdtfile=CONFIG_DEFAULT_FDT_FILE
+console=ttyLP1,115200 earlycon
+bootm_size=0x10000000
+boot_fit=no
+mmcroot=/dev/mmcblk0p2 rootwait rw
+mmcautodetect=yes
+mmcargs=setenv bootargs ${jh_clk} console=${console} root=${mmcroot}
+netargs=setenv bootargs ${jh_clk} console=${console}
+        root=/dev/nfs
+        ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp
+loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
+loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
+loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile}
+loadcntr=fatload mmc ${mmcdev}:${mmcpart} ${cntr_addr} ${cntr_file}
+bootscript=echo Running bootscript from mmc ...; source
+auth_os=booti ${cntr_addr}
+boot_os=booti ${loadaddr} - ${fdt_addr_r}
+mmcboot=echo Booting from mmc ...;
+        run mmcargs;
+        if test ${sec_boot} = yes; then
+                run auth_os;
+        else
+            if test ${boot_fit} = yes || test ${boot_fit} = try; then
+                bootm ${loadaddr};
+            else
+                if run loadfdt loadimage; then
+                    run boot_os;
+                else
+                    echo WARN: Cannot load the fdt and image;
+                fi;
+            fi;
+        fi;
+netboot=echo Booting from net ...;
+        run netargs;
+        if test ${ip_dyn} = yes; then
+            setenv get_cmd dhcp;
+        else
+            setenv get_cmd tftp;
+        fi;
+        if test ${sec_boot} = yes; then
+            ${get_cmd} ${cntr_addr} ${cntr_file};
+            run auth_os;
+        else
+            ${get_cmd} ${loadaddr} ${image};
+            if test ${boot_fit} = yes || test ${boot_fit} = try; then
+                bootm ${loadaddr};
+            else
+                if ${get_cmd} ${fdt_addr_r} ${fdtfile}; then
+                    run boot_os;
+                else
+                    echo WARN: Cannot load the DT;
+                fi;
+            fi;
+        fi;
+bsp_bootcmd=echo Running BSP bootcmd ...;
+            mmc dev ${mmcdev}; if mmc rescan; then
+            if run loadbootscript; then
+                run bootscript;
+            else
+                if test ${sec_boot} = yes; then
+                    if run loadcntr; then
+                        run mmcboot;
+                    else run netboot;
+                    fi;
+                else
+                    if run loadimage; then
+                        run mmcboot;
+                    else run netboot;
+                    fi;
+                fi;
+            fi;
+        fi;
configs/imx8ulp_evk_defconfig +1 -1
index 8617cf32f2b..baca0b41099 100644
@@ -29,7 +29,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_BOOTSTD_FULL=y
 CONFIG_BOOTDELAY=0
 CONFIG_BOOTCOMMAND="bootflow scan -l; run bsp_bootcmd"
-CONFIG_DEFAULT_FDT_FILE="imx8ulp-evk"
+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 -14
index eb006c5d4a5..edfd6f70815 100644
@@ -21,20 +21,6 @@
 #define CFG_FEC_MXC_PHYADDR		1
 #endif
 
-/* Initial environment variables */
-#define CFG_EXTRA_ENV_SETTINGS		\
-	"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
#3 lore raw

PATCH v3 3/3 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 fcad6fb2fc7..28d3f701f3f 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 fbca241e106..37a8cefd6cc 100644
@@ -27,6 +27,7 @@ config TARGET_IMX8ULP_EVK
 	select IMX8ULP
 	select SUPPORT_SPL
 	select IMX8ULP_DRAM
+	imply OF_UPSTREAM
 
 endchoice
 
configs/imx8ulp_evk_defconfig +1 -1
index baca0b41099..ff6cd8e6c98 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
reviewer
#4 lore raw
In reply to [email protected]
Quoted 8 lines · On Mon, Dec 8, 2025 at 11:20 PM <[email protected]> wrote:

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.

Changes for v3:
- Split v2 patch 1/2 into two separate patches: one for bootstd enablement and one for env.

Applied to u-boot-imx/next, thanks.