]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
phycore_imx8mm: Move default bootcmd to board env
authorYunus Bas <y.bas@phytec.de>
Tue, 3 Dec 2024 09:42:34 +0000 (10:42 +0100)
committerFabio Estevam <festevam@gmail.com>
Sat, 7 Dec 2024 12:06:32 +0000 (09:06 -0300)
Move the default bootcmd from the defconfig to the board environment.

Signed-off-by: Yunus Bas <y.bas@phytec.de>
board/phytec/phycore_imx8mm/phycore_imx8mm.env
configs/phycore-imx8mm_defconfig

index 33a2595fa1647af7526b66befd85f05ebc9d947d..44fa3731b8ad7c5372364f0ea93b239388a5a35d 100644 (file)
@@ -1,3 +1,12 @@
+bootcmd=
+       mmc dev ${mmcdev};
+       if mmc rescan; then
+               if run loadimage; then
+                       run mmcboot;
+               else
+                       run netboot;
+               fi;
+       fi;
 console=ttymxc2,115200
 emmc_dev=2
 fdt_addr_r=0x48000000
index c24580430f2664d8c35727dd23c0409b191f3c5a..3f4336837e97339576ff2de4118ea3055bd63a89 100644 (file)
@@ -31,8 +31,6 @@ CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_OF_SYSTEM_SETUP=y
-CONFIG_USE_BOOTCOMMAND=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