]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
phycore_imx8mp: Move default bootcmd to board env
authorLeonard Anderweit <l.anderweit@phytec.de>
Tue, 12 Mar 2024 14:30:30 +0000 (15:30 +0100)
committerFabio Estevam <festevam@gmail.com>
Sun, 17 Mar 2024 21:39:21 +0000 (18:39 -0300)
Move the default bootcmd from the defconfig to the board environment.
No change in functionality.

Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
Tested-by: Teresa Remmet <t.remmet@phytec.de>
board/phytec/phycore_imx8mp/phycore_imx8mp.env
configs/phycore-imx8mp_defconfig

index 32513e70fec2d22f7547dff183f708411d1e10b6..dc9ad0fe9d154c0e685bd1a1899ba50736023ba0 100644 (file)
@@ -1,3 +1,15 @@
+bootcmd=
+       if test ${dofastboot} = 1; then
+               fastboot 0;
+       fi;
+       mmc dev ${mmcdev};
+       if mmc rescan; then
+               if run loadimage; then
+                       run mmcboot;
+               else
+                       run netboot;
+               fi;
+       fi;
 console=ttymxc0,115200
 dofastboot=0
 emmc_dev=2
index b3a7bbd79bb6a1faf53321fa5561a23867eab346..fd492eba3c101c3dcb81ab9828dbea78678f5102 100644 (file)
@@ -25,8 +25,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="if test ${dofastboot} = 1; then fastboot 0; fi; 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