Skip to contentSkip to conversation

support for device tree overlays ?

Buildroot Johan Sagaert 2 participants 2 messages Dec 13, 2015 – Dec 14, 2015

lore
Share & tools
lore
#0 lore raw

Hi

Is there some support yet for device tree overlays ?
So far i used a modified copy of a dts file from the kernel source with some additional items enabled,
and some other device tree nodes disabled.
As i understand using overlays would be a cleaner way to adjust the device tree to my needs without having
to change existing dts files.
Another advantage is that the device tree overlays can be loaded from userspace, no need to recompile and reboot
the kernel.

Best Regards , Johan

#1 lore raw

Hello Johan,

Quoted 2 lines · Johan Sagaert

Is there some support yet for device tree overlays ?

Not in the official Buildroot tree yet. But I made some modifications to to generate device tree blobs with overlay support and device tree overlays from the Buildroot build system.

You can find the three patches at:
https://github.com/NextThingCo/CHIP-buildroot.git at/2015.08/overlays

The first one adds a patched version of DTC as an host package, with overlay support.

The second one modifies the Linux mk file to allow generating device tree blobs with overlay support from the kernel sources.

The last an third one allows to compile external device tree overlays blobs.

Quoted 3 lines

As i understand using overlays would be a cleaner way to adjust the device tree to my needs without having
to change existing dts files.

That depends. If you need to permanently disable or enable a node on a board, do not use overlays. There are here to modify a device tree on the fly, to enable or disable features in some board. For example they can be used to reconfigure a board when an external cape is plugged in.

Antoine

Signature · 10 lines
Antoine T?nart, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20151214/167dc26f/attachment.asc>