[PATCH] rpi: limit size of the RAM to the multiple of the MMU_SECTION_SIZE

Nicolas Saenz Julienne nsaenzjulienne at suse.de
Wed Feb 3 13:20:56 CET 2021


On Mon, 2021-02-01 at 12:16 +0100, Marek Szyprowski wrote:
> When RPi4 is booted from USB Mass Storage, the firmware reports 947MiB of
> the ARM memory (948 in case of the standard SD-card boot). This value is
> not MMU_SECTION_SIZE aligned, so the dram_bank_mmu_setup() skips mapping
> of the last 1MiB. This later causes u-boot in ARM 32bit mode to freeze,
> because it relocated itself into that unmapped memory and fails to
> execute.
> 
> Fix this by limiting the size of the first bank to the multiple of
> MMU_SECTION_SIZE.
> 
> Signed-off-by: Marek Szyprowski <m.szyprowski at samsung.com>
> ---

Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne at suse.de>

Regards,
Nicolas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210203/a9c0dab6/attachment.sig>


More information about the U-Boot mailing list