[PATCH v1] Fix socfpga GEN5 boot by spl+u-boot sfp on RAW
Jan Kiszka
jan.kiszka at siemens.com
Fri Nov 28 11:51:17 CET 2025
On 27.11.25 20:21, Brian Sune wrote:
> Thanks to Jan Kiszka had provided info on
> u-boot is not able to boot by u-boot-with-spl.sfp.
> All three TYPE, #, OFFSET mode methods are
> nonfunctionable on combined raw boot.
> Explain a bit on the cause and solutions.
> The major cause is spl+u-boot structure is
> defined as 4x[spl+zero_pad] + u-boot.img.
> Deal to this configuration since GEN5 is used,
> the spl would require to seek by an offset
> on top of the spl offset. This means for
> each spl=0x10000 the offset is 0x40000.
> However latest u-boot do not consider this
> major structure on GEN5 socfpga.
>
> Meanwhile, the default include file as Jan
> pointed out is completely wrong syntax and
> caused issue.
>
> Combining both concepts, the minimum fix
> patch is provide as follows.
> 1) Offset is control and default set to a
> proper offset under:
> SYS_MMCSD_RAW_MODE_U_BOOT_DATA_PART_OFFSET
>
> 2) Only GEN5 socfpga will be affected and
> minimized contamination on other devices.
>
Most bugs are device-independent. Those should be fixed separately, and
I was even asked in the original series to split further. Let us iterate
on that, I would say.
Jan
More information about the U-Boot
mailing list