Typically, <.dtsi> file contain definitions of SoC-level information.
The <.dts> file contains board-level information.
Using device tree compiler
Check nodes and properties
/ node of a device tree source(DTS) are the same.
If a DTS is
The structure of
/proc/device-tree/ is as follows.
So, you can check DTS with one of the following commands.
- s=string, i=int, u=unsigned, x=hex
- Optional modifier prefix: hh or b=byte, h=2 byte, l=4 byte (default)
Decompiled file modification
After decompiling with the above command, edit
<.dts>. Then, compile the edited file with the below command.
Using Linux kernel source
After editing DTS, check Makefile.
Then, execute the below commands.
Then, DTB will be created in
If the above command fails, check arch/<arch>/configs. If not in arch/<arch>/configs, get a config file using
zcat /proc/config.gz > <board>_defconfig from the kernel installed on the desired board.