DTS (device tree source)
The. dts file is a description of the device tree in ASCII text format, which is very user-friendly and suitable for human reading habits. Basically, in Arm Linux, a. dts file corresponds to an arm of the machine, typically placed in the kernel's arch/arm/boot/dts/directory. Since an SOC may correspond to multiple machine (one SOC can correspond to multiple products and circuit boards), These. dts files are bound to contain many common parts, and the Linux kernel, in order to simplify, refines parts or portions of the machine common to a. DTSi, similar to the C-Language header file. The other machine correspond to. DTS to include this. DTSi.
DTC (device tree compiler)
A tool that compiles. DTS to. DtB. DTC source code is located in the kernel of the SCRIPTS/DTC directory, in the Linux kernel enables device tree, the host tool DTC is compiled when the kernel is compiled, corresponding to the scripts/dtc/makefile in the "Hostprogs-y: = DTC "This hostprogs compiles target.
The arch/arm/boot/dts/makefile of the Linux kernel describes which. dtb files are compiled when a certain Soc is selected.
Device Tree Blob (. DtB)
. DTB is a description of the device tree in the binary format compiled by the DTC, which can be parsed by the Linux kernel. Usually when we make the NAND, SD start image for the circuit board, we leave a very small area for the. dtb file to store it, and then bootloader will read the. DtB to memory in the process of booting the kernel.
Decompile DTB to DTS
Or
$ dtc-i dtb-o DTS <devicetree name>.dtb > <devicetree Name>.dts
Resources:
http://blog.csdn.net/21cnbao/article/details/8457546
Http://www.wowotech.net/linux_kenrel/why-dt.html
Http://www.wowotech.net/linux_kenrel/dt_basic_concept.html
Http://www.cnblogs.com/pengdonglin137/p/4495056.html