Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load device tree overlay on kernel 3.19+

Kernel 3.19 (re-)introduced Device Tree Overlays. I am on Linux kernel 3.19.4, via Fedora (3.19.4-200.fc21.armv7hl).

I have an overlay file overlay.dts as described in the documentation.

overlay.c contains functions to work with overlays, including to functions to load an overlay.

Does the kernel check any paths for overlays to load? If so, where? If not, how can I load my overlay?

like image 591
ToBeReplaced Avatar asked Apr 25 '15 21:04

ToBeReplaced


People also ask

What is device tree overlay?

A device tree (DT) is a data structure of named nodes and properties that describe non-discoverable hardware. Operating systems, such as the Linux kernel used in Android, use DTs to support a wide range of hardware configurations used by Android-powered devices.

What is a device tree blob?

The Device Tree Blob (or binary) is a file containing information about the board and its hardware.


1 Answers

From my experience (3.8-3.14), DTB loading is actually the jurisdiction of the boot-loader, rather than the kernel itself. I've used u-boot for this - u-boot can load the compiled device-tree file (man dtc) from an EXT2-based filesystem to a known location in RAM, which is then specified in the kernel command line.

Which boot-loader are you using?

like image 177
lyngvi Avatar answered Oct 03 '22 11:10

lyngvi