Linux: Decompile/show a device tree binary file dtb

Hi,

under linux device tree is a way to describe hardware which is not discoverable.

The kernel uses a compiled version of the device tree. This can be decompiled in an readable formet by the device tree compiler.

Install device tree compiler

apt-get install device-tree-compiler

Decode a dtb file

michael@devdeb ~# dtc -I dtb -O dts sun8i-h3-orangepi-pc.dtb -o /tmp/tmp.dts 
michael@devdeb ~#  less /tmp/tmp.dts

Michael

Leave a Reply Cancel reply