[PATCH 3/4] arch: arm: mach-socfpga: Adjust a raw sectors for MMC loading of U-Boot from SPL
Jan Kiszka
jan.kiszka at siemens.com
Tue Nov 25 08:17:23 CET 2025
On 25.11.25 08:08, Sune Brian wrote:
>>>> +unsigned long board_spl_mmc_get_uboot_raw_sector(struct mmc *mmc,
>>>> + unsigned long raw_sect)
>>>> +{
>>>> + return (CONFIG_SPL_PAD_TO * 4) / 512 + raw_sect;
>>>> +}
>>>> +#endif
>
> Hi Jan
>
> I am not sure what this is trying to fix btw.
> But A2 partition might not be located at 0x200 it can place to the end
> of the MMC.
> It is very personal and really nothing to do with board but only some socfpga.
>
> But what this actually trying to fix or improve from first place?
> Maybe Jan you can explain a bit?
>
> Do the RAW referring to A2 partition if so really not always.
> Correct me if not, and current three settings on
> 1) partition #
> 2) offset
> 3) partition type
> aren't enough to make things work?
> Not sure getting this right.
We are booting the DE0 Nano SoC from SD card, just like we did for
almost a decade. A fresh integration for Debian trixie and UEFI is at
[1][2].
But that boot approach fell apart after the refactorings of raw mode mmc
loading and now starts to work again with my patches. Not saying they
are perfect, but at least the board defconfig gives something that runs.
Jan
[1] https://patchwork.kernel.org/project/cip-dev/list/?series=1024655
[1]
https://gitlab.com/cip-project/cip-core/isar-cip-core/-/commits/next?ref_type=heads
--
Siemens AG, Foundational Technologies
Linux Expert Center
More information about the U-Boot
mailing list