[PATCH 3/4] arch: arm: mach-socfpga: Adjust a raw sectors for MMC loading of U-Boot from SPL

Sune Brian briansune at gmail.com
Tue Nov 25 08:08:25 CET 2025


> >> +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.

Brian


More information about the U-Boot mailing list