]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
boards: siemens: iot2050: Fix boot configuration
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 27 Jul 2023 04:34:52 +0000 (06:34 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 28 Jul 2023 14:11:00 +0000 (10:11 -0400)
The common env bits now come via ti_armv7_common.env, include it.
Furthermore restore the board-specific boot targets and their ordering
that is now enforced k3-wide differently. Finally, enable
CONFIG_LEGACY_IMAGE_FORMAT explicitly which got lost while turning
FIT_SIGNATURE on by default for k3 devices.

Fixes: 53873974 ("include: armv7: Enable distroboot across all configs")
Fixes: 4ae1a247 ("env: Make common bootcmd across all k3 devices")
Fixes: 86fab110 ("Kconfig: Enable FIT_SIGNATURE if ARM64")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
board/siemens/iot2050/iot2050.env
configs/iot2050_pg1_defconfig
configs/iot2050_pg2_defconfig
include/configs/iot2050.h

index 02958798b499f27706ba275869ff1e47ecca50b4..7fd836e628574cc2e4d0f6d34bb5d26885fb4e7a 100644 (file)
@@ -6,6 +6,8 @@
  *   Jan Kiszka <jan.kiszka@siemens.com>
  */
 
+#include <environment/ti/ti_armv7_common.env>
+
 usb_pgood_delay=900
 
 watchdog_timeout_ms=CONFIG_WATCHDOG_TIMEOUT_MSECS
index cc1b9673d79b2a956ee098ab149dc1fdff3fc742..391ab78d366f9e87f4483be8d475bc2f61481fd5 100644 (file)
@@ -29,6 +29,7 @@ CONFIG_SPL_SPI=y
 CONFIG_PCI=y
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
 CONFIG_SPL_LOAD_FIT=y
+CONFIG_LEGACY_IMAGE_FORMAT=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_SYSTEM_SETUP=y
 CONFIG_DISTRO_DEFAULTS=y
index c5741a4dae433d87147f7896c3a616d7ca4560b7..19c440732aac558e22a9097226211dc683592ae5 100644 (file)
@@ -29,6 +29,7 @@ CONFIG_SPL_SPI=y
 CONFIG_PCI=y
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
 CONFIG_SPL_LOAD_FIT=y
+CONFIG_LEGACY_IMAGE_FORMAT=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_OF_SYSTEM_SETUP=y
 CONFIG_DISTRO_DEFAULTS=y
index 2177e0dfe380568ab053b943cf20f859fc51c44b..4968722d18f654aa1ccc8693d8f1bf144a9ab950 100644 (file)
 
 #include <configs/ti_armv7_common.h>
 
+/*
+ * This defines all MMC devices, even if the basic variant has no mmc1.
+ * The non-supported device will be removed from the boot targets during
+ * runtime, when that board was detected.
+ */
+#undef BOOT_TARGET_DEVICES
+#define BOOT_TARGET_DEVICES(func) \
+       func(MMC, mmc, 1) \
+       func(MMC, mmc, 0) \
+       BOOT_TARGET_USB(func)
+
 #ifdef CONFIG_ENV_WRITEABLE_LIST
 #define CFG_ENV_FLAGS_LIST_STATIC                                      \
        "board_uuid:sw,board_name:sw,board_serial:sw,board_a5e:sw,"     \