[PATCH v2 0/5] Fixes for CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION* and for SOCFPGA

Jan Kiszka jan.kiszka at siemens.com
Mon Dec 1 08:32:44 CET 2025


Changes in v2:
 - split off "select SPL_LOAD_BLOCK" change
 - address build breakage with CONFIG_SPL_SYS_MMCSD_RAW_MODE off
 - fix build condition and add comment to mach-socfpga/board.c patch

Several fixes needed after the mmc raw-mode was consolidated a while
ago. Not all the fallouts can be blamed to that refactoring. It also
looks to me like booting from mmc just worked by chance before.

This series now permits U-Boot proper loading from SPL via partition
type, at least on the DE0-Nano-SoC (other boards not available for
testing).

Note that even if the socfpga specific changes should not be accepted
due to switching to fat mode booting, the first two patches are
generic fixes, affecting all RAW_MODE_U_BOOT_USE_PARTITION_TYPE user -
of which we have none in-tree, though.

Jan

Jan Kiszka (5):
  spl: Kconfig: Add missing SPL_LOAD_BLOCK for
    SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
  spl: mmc: Account for SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
    being a choice
  spl: mmc: Respect sector value passed to mmc_load_image_raw_partition
  arch: arm: mach-socfpga: Adjust a raw sectors for MMC loading of
    U-Boot from SPL
  configs: socfpga: Fix de0_nano_soc boot

 arch/arm/mach-socfpga/board.c          | 11 +++++++++++
 common/spl/Kconfig                     |  1 +
 common/spl/spl_mmc.c                   | 21 +++++++++------------
 configs/socfpga_de0_nano_soc_defconfig |  1 +
 include/part.h                         |  3 ++-
 5 files changed, 24 insertions(+), 13 deletions(-)

-- 
2.51.0



More information about the U-Boot mailing list