Skip to content

uboot-extlinux-config.bbclass: add support for DTBOs

Quentin Schulz openembedded-core 1 version New

Get series with b4
b4 am [email protected] change-id 20241217-extlinux-overlays-1ebfbb73fc81

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2uboot-extlinux-config.bbclass: simplify FDT/FDTDIR logicmeta/classes-recipe/uboot-extlinux-config.bbclass+4 -60 replies
2/2uboot-extlinux-config.bbclass: add support for DTBOsmeta/classes-recipe/uboot-extlinux-config.bbclass+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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.

---
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,

Signature · 1 line
Quentin Schulz <[email protected]>