diff options
| author | Yunus Bas <[email protected]> | 2024-12-03 10:42:34 +0100 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2024-12-07 09:06:32 -0300 |
| commit | 867132cf234df95a590e9c46030079bfb6e7fe8c (patch) | |
| tree | a1b120ccac2077de0a7749bcf61da94b09462826 | |
| parent | e2cc259cbb43aafb60591edb68424f70a34c71ab (diff) | |
phycore_imx8mm: Move default bootcmd to board env
Move the default bootcmd from the defconfig to the board environment.
Signed-off-by: Yunus Bas <[email protected]>
| -rw-r--r-- | board/phytec/phycore_imx8mm/phycore_imx8mm.env | 9 | ||||
| -rw-r--r-- | configs/phycore-imx8mm_defconfig | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/board/phytec/phycore_imx8mm/phycore_imx8mm.env b/board/phytec/phycore_imx8mm/phycore_imx8mm.env index 33a2595fa16..44fa3731b8a 100644 --- a/board/phytec/phycore_imx8mm/phycore_imx8mm.env +++ b/board/phytec/phycore_imx8mm/phycore_imx8mm.env @@ -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 diff --git a/configs/phycore-imx8mm_defconfig b/configs/phycore-imx8mm_defconfig index c24580430f2..3f4336837e9 100644 --- a/configs/phycore-imx8mm_defconfig +++ b/configs/phycore-imx8mm_defconfig @@ -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 |
