mbox series

[0/2] uboot-extlinux-config.bbclass: add support for DTBOs

Message ID 20241219-extlinux-overlays-v1-0-9a2eb81c1efa@cherry.de
Headers show
Series uboot-extlinux-config.bbclass: add support for DTBOs | expand

Message

Quentin Schulz Dec. 19, 2024, 3:25 p.m. UTC
Currently, Yocto only supports FIT setups in extlinux for providing and
applying Device Tree Overlays. It even has an additional requirement of
needing the base FDT image node to have a load property outside of the
DRAM location where the FIT data is stored. This is being fixed in
U-Boot, c.f.
https://lore.kernel.org/u-boot/20241219-extlinux-relocate-dtb-when-dtbo-v1-1-fe5eeb8fd4f1@cherry.de/
Until that is merged, one needs to set UBOOT_DTB_LOADADDRESS (not
UBOOT_DTBO_LOADADDRESS!) when building the FIT image. One can then boot
a FIT image and apply FDTOs by setting UBOOT_EXTLINUX_KERNEL_IMAGE to
the path to the fitimage on disk followed by (no space!)
'#<conf-1>#<conf-2>' with <conf-1> being the name of the config node
with the base FDT, and <conf-2> the name of the config node with the
FDTO to apply.

For FIT-less setups, the FDTOVERLAYS (or devicetree-overlay) property
needs to be set per label. This is what this patch series does.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
Quentin Schulz (2):
      uboot-extlinux-config.bbclass: simplify FDT/FDTDIR logic
      uboot-extlinux-config.bbclass: add support for DTBOs

 meta/classes-recipe/uboot-extlinux-config.bbclass | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)
---
base-commit: 783347d27b179d85098dc2166bc8234a08b7811b
change-id: 20241217-extlinux-overlays-1ebfbb73fc81

Best regards,