[PATCH v3 1/3] spl: mmc: support uboot image offset on main partition
Stefan Roese
sr at denx.de
Thu Jan 16 10:57:45 CET 2020
On 15.01.20 08:08, Baruch Siach wrote:
> On Armada 38x platforms the ROM code loads SPL from offset 0 of eMMC
> hardware boot partitions. When there are no boot partitions (i.e. SD
> card) the ROM skips the first sector that usually contains the (logical)
> partition table. Since the generated .kwb image contains the main U-Boot
> image in a fixed location (0x140 sectors by default), we end up with the
> main U-Boot image in offset of 1 sector. The current workaround is to
> manually set CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to 0x141 to
> compensate for that.
>
> This patch uses the run-time detected boot partition to determine the
> right offset of the main U-Boot partition. The generated .kwb image is
> now compatible with both eMMC boot partition, and SD card main data
> partition.
>
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>
Reviewed-by: Stefan Roese <sr at denx.de>
Thanks,
Stefan
More information about the U-Boot
mailing list