[PATCH 5/6] board: phycore-imx93: env: Move bootcmd from defconfig to env

Primoz Fiser primoz.fiser at norik.com
Thu Apr 10 10:41:21 CEST 2025


From: Leonard Anderweit <l.anderweit at phytec.de>

Move the default bootcmd from the defconfig to the board environment in
preparation for RAUC support. No change in functionality.

Signed-off-by: Leonard Anderweit <l.anderweit at phytec.de>
Signed-off-by: Primoz Fiser <primoz.fiser at norik.com>
---
 board/phytec/phycore_imx93/phycore_imx93.env | 9 +++++++++
 configs/imx93-phycore_defconfig              | 1 -
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/board/phytec/phycore_imx93/phycore_imx93.env b/board/phytec/phycore_imx93/phycore_imx93.env
index d0694f23269a..3a36597cae84 100644
--- a/board/phytec/phycore_imx93/phycore_imx93.env
+++ b/board/phytec/phycore_imx93/phycore_imx93.env
@@ -2,6 +2,15 @@
 
 #include <env/phytec/overlays.env>
 
+bootcmd=
+	mmc dev ${mmcdev};
+	if mmc rescan; then
+		if run loadimage; then
+			run mmcboot;
+		else
+			run netboot;
+		fi;
+	fi;
 image=Image
 console=ttyLP0
 fdt_addr_r=0x90000000
diff --git a/configs/imx93-phycore_defconfig b/configs/imx93-phycore_defconfig
index cf9800118ac1..e99676d4f62b 100644
--- a/configs/imx93-phycore_defconfig
+++ b/configs/imx93-phycore_defconfig
@@ -35,7 +35,6 @@ CONFIG_REMAKE_ELF=y
 # CONFIG_ANDROID_BOOT_IMAGE is not set
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_OF_SYSTEM_SETUP=y
-CONFIG_BOOTCOMMAND="mmc dev ${mmcdev}; if mmc rescan; then if run loadimage; then run mmcboot; else run netboot; fi; fi;"
 CONFIG_DEFAULT_FDT_FILE="oftree"
 CONFIG_SYS_CBSIZE=2048
 CONFIG_SYS_PBSIZE=2074
-- 
2.34.1



More information about the U-Boot mailing list