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-fe5eeb8fd...@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.sch...@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,
-- 
Quentin Schulz <quentin.sch...@cherry.de>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#208920): 
https://lists.openembedded.org/g/openembedded-core/message/208920
Mute This Topic: https://lists.openembedded.org/mt/110199242/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to