diff options
author | Eugen Hristev <eugen.hristev@microchip.com> | 2021-08-19 14:09:41 +0300 |
---|---|---|
committer | Eugen Hristev <eugen.hristev@microchip.com> | 2021-09-21 10:07:04 +0300 |
commit | 9e4bf2161c1c49b0dbf13cdf0ccc59dac3540e69 (patch) | |
tree | b909fce3280213351578aad6b3afb0a69096f745 /configs | |
parent | d2b4809bde84f3074e47d2877a441161f79c254f (diff) | |
download | u-boot-9e4bf2161c1c49b0dbf13cdf0ccc59dac3540e69.zip u-boot-9e4bf2161c1c49b0dbf13cdf0ccc59dac3540e69.tar.gz u-boot-9e4bf2161c1c49b0dbf13cdf0ccc59dac3540e69.tar.bz2 |
board: atmel: sama7g5ek: avoid rewriting of configured CONFIG_BOOTCOMMAND
Rewrite the CONFIG_BOOTCOMMAND only if it's not previously configured from
defconfig file.
This allows the user to select from defconfig/menuconfig the desired
boot command.
Adjust the current board defconfigs to reflect the default booting command
for the specific ENV configuration.
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Diffstat (limited to 'configs')
-rw-r--r-- | configs/sama7g5ek_mmc1_defconfig | 2 | ||||
-rw-r--r-- | configs/sama7g5ek_mmc_defconfig | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/configs/sama7g5ek_mmc1_defconfig b/configs/sama7g5ek_mmc1_defconfig index bd6cbcc..bb03db4 100644 --- a/configs/sama7g5ek_mmc1_defconfig +++ b/configs/sama7g5ek_mmc1_defconfig @@ -19,6 +19,8 @@ CONFIG_FIT=y CONFIG_SD_BOOT=y CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/mmcblk1p2 rw rootwait" +CONFIG_USE_BOOTCOMMAND=y +CONFIG_BOOTCOMMAND="fatload mmc 1:1 0x61000000 at91-sama7g5ek.dtb; fatload mmc 1:1 0x62000000 zImage; bootz 0x62000000 - 0x61000000" CONFIG_MISC_INIT_R=y CONFIG_HUSH_PARSER=y CONFIG_CMD_BOOTZ=y diff --git a/configs/sama7g5ek_mmc_defconfig b/configs/sama7g5ek_mmc_defconfig index 83026eb..b5dd64c 100644 --- a/configs/sama7g5ek_mmc_defconfig +++ b/configs/sama7g5ek_mmc_defconfig @@ -19,6 +19,8 @@ CONFIG_FIT=y CONFIG_SD_BOOT=y CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait" +CONFIG_USE_BOOTCOMMAND=y +CONFIG_BOOTCOMMAND="fatload mmc 0:1 0x61000000 at91-sama7g5ek.dtb; fatload mmc 0:1 0x62000000 zImage; bootz 0x62000000 - 0x61000000" CONFIG_MISC_INIT_R=y CONFIG_HUSH_PARSER=y CONFIG_CMD_BOOTZ=y |