[PATCH 3/6] phytec: add emmc_dev and sd_dev env vars for imx8 boards

Benjamin Hahn B.Hahn at phytec.de
Tue Nov 25 18:23:12 CET 2025


Add emmc_dev and sd_dev env variables with comment that they are needed
for builtin uuu flash scripts. This is already done for imx8mp-libra
board.

Signed-off-by: Benjamin Hahn <B.Hahn at phytec.de>
---
 board/phytec/phycore_imx8mm/phycore_imx8mm.env | 3 ++-
 board/phytec/phycore_imx8mp/phycore_imx8mp.env | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/board/phytec/phycore_imx8mm/phycore_imx8mm.env b/board/phytec/phycore_imx8mm/phycore_imx8mm.env
index 1eb255878ba2..bb444d182939 100644
--- a/board/phytec/phycore_imx8mm/phycore_imx8mm.env
+++ b/board/phytec/phycore_imx8mm/phycore_imx8mm.env
@@ -1,6 +1,6 @@
 boot_script_dhcp=net_boot_fit.scr.uimg
 console=ttymxc2,CONFIG_BAUDRATE
-emmc_dev=2
+emmc_dev=2  /* This is needed by built-in uuu flash scripts */
 fdtfile=CONFIG_DEFAULT_FDT_FILE
 fdt_addr_r=0x40480000
 fdt_overlay_addr_r=0x404a0000
@@ -12,5 +12,6 @@ ramdisk_addr_r=0x45802000
 scriptaddr=0x47600000
 script_offset_f=0x0
 script_size_f=0x2000
+sd_dev=1    /* This is needed by built-in uuu flash scripts */
 ip_dyn=yes
 nfsroot=/srv/nfs
diff --git a/board/phytec/phycore_imx8mp/phycore_imx8mp.env b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
index 96636651157d..cd95a9d21d7e 100644
--- a/board/phytec/phycore_imx8mp/phycore_imx8mp.env
+++ b/board/phytec/phycore_imx8mp/phycore_imx8mp.env
@@ -7,6 +7,7 @@ boot_targets=mmc2 mmc1 usb ethernet
 bootenv_addr_r=0x49100000
 boot_script_dhcp=net_boot_fit.scr.uimg
 console=ttymxc0,115200
+emmc_dev=2  /* This is needed by built-in uuu flash scripts */
 fastboot_raw_partition_all=0 4194304
 fastboot_raw_partition_bootloader=64 8128
 fdt_addr_r=0x48000000
@@ -24,3 +25,4 @@ nfsroot=/srv/nfs
 pxefile_addr_r=0x58600000
 ramdisk_addr_r=0x5E000000
 scriptaddr=0x40000000
+sd_dev=1    /* This is needed by built-in uuu flash scripts */

-- 
2.43.0



More information about the U-Boot mailing list