Introduction to the Linux Device tree (Device) __linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.