[RFC PATCH 1/3] spl: Kconfig: allow to enable SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR for i.MX8M

Dario Binacchi dario.binacchi at amarulasolutions.com
Thu May 15 15:12:40 CEST 2025


Commit 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options") breaks
the boot of the BSH SMM S2 board. As stated in the commit itself, "Some
boards use this value even though MMC is not enabled in SPL, for example
imx8mn_bsh_smm_s2". The same commit makes SPL_SYS_MMCSD_RAW_MODE depend
on SPL_DM_MMC || SPL_MMC. With SPL_SYS_MMCSD_RAW_MODE unset, it is not
possible to enable SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR, thus breaking
the board's boot process.

The patch once again allows SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR to be
selected also for boards that do not use MMC, in this case on the i.MX8M
platform.

Fixes: 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options")
Signed-off-by: Dario Binacchi <dario.binacchi at amarulasolutions.com>
---

 common/spl/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index aa3a85eea54d..77bb21e74cd6 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -542,7 +542,7 @@ config SPL_SYS_MMCSD_RAW_MODE
 	help
 	  Support booting from an MMC without a filesystem.
 
-if SPL_SYS_MMCSD_RAW_MODE
+if SPL_SYS_MMCSD_RAW_MODE || ARCH_IMX8M
 
 choice
 	prompt "Method for locating next phase of boot (e.g. U-Boot)"
-- 
2.43.0



More information about the U-Boot mailing list