agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
540 stars 414 forks source link

u-boot: always set fdt_addr with firmware-provided FDT address #1041

Closed matthiasklein closed 2 years ago

matthiasklein commented 2 years ago

The Raspberry firmware prepares the FDT blob in memory at an address that depends on both the memory size and the blob size. For details see description in the patch itself.

The patch is not yet upstream, but has already been submitted by the original author: https://lore.kernel.org/all/20210512123945.25649-1-m.salvini@koansoftware.com/

For me, the described problem occurs in conjunction with RAUC, which uses the following U-Boot script: https://github.com/rauc/meta-rauc-community/blob/master/meta-rauc-raspberrypi/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in

As soon as I add an overlay the fdt_addr changes and the system does not boot anymore.

matthiasklein commented 2 years ago

I have added an rpi override accordingly.