Skip to contentSkip to conversation

mx6sabre: Fix boot failure

PATCH New Ye Li 2 participants 2 messages Feb 21, 2021 – Mar 1, 2021

lore
Share & tools
lore

Ye Li

author
#0 lore raw

PATCH 1/1 mx6sabre: Fix boot failure

CONFIG_SPL_LEGACY_IMAGE_SUPPORT is necessary for mx6sabresd and mx6sabreauto, because u-boot is packed as legacy image not FIT. However, this config is not set when CONFIG_SPL_LOAD_FIT is enabled. Must enable it explicitly, otherwise will fail to boot like below.

U-Boot SPL 2021.04-rc2 (Feb 20 2021 - 16:43:04 -0800) Trying to boot from MMC1
mmc_load_image_raw_sector: mmc block read error
SPL: failed to boot from all boot devices

---
 configs/mx6sabreauto_defconfig | 1 +
 configs/mx6sabresd_defconfig   | 1 +
 2 files changed, 2 insertions(+)
configs/mx6sabreauto_defconfig +1 -0
index 4faf49e..9ed4064 100644
@@ -20,6 +20,7 @@ CONFIG_NXP_BOARD_REVISION=y
 CONFIG_DEFAULT_DEVICE_TREE="imx6q-sabreauto"
 CONFIG_FIT=y
 CONFIG_SPL_FIT_PRINT=y
+CONFIG_SPL_LEGACY_IMAGE_SUPPORT=y
 CONFIG_SPL_LOAD_FIT=y
 # CONFIG_USE_SPL_FIT_GENERATOR is not set
 CONFIG_SUPPORT_RAW_INITRD=y
configs/mx6sabresd_defconfig +1 -0
index 0016fba..dd9ac93 100644
@@ -20,6 +20,7 @@ CONFIG_DEFAULT_DEVICE_TREE="imx6q-sabresd"
 CONFIG_FIT=y
 CONFIG_SPL_FIT_PRINT=y
 CONFIG_SPL_LOAD_FIT=y
+CONFIG_SPL_LEGACY_IMAGE_SUPPORT=y
 # CONFIG_USE_SPL_FIT_GENERATOR is not set
 CONFIG_SUPPORT_RAW_INITRD=y
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg"
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 mx6sabre: Fix boot failure

Quoted 9 lines

CONFIG_SPL_LEGACY_IMAGE_SUPPORT is necessary for mx6sabresd and mx6sabreauto, because u-boot is packed as legacy image not FIT. However, this config is not set when CONFIG_SPL_LOAD_FIT is enabled. Must enable it explicitly, otherwise will fail to boot like below. U-Boot SPL 2021.04-rc2 (Feb 20 2021 - 16:43:04 -0800) Trying to boot from MMC1
mmc_load_image_raw_sector: mmc block read error
SPL: failed to boot from all boot devices

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================