跳转至

Linux device tree

设备树用于描述硬件,避免直接直接在Linux内核程序中硬编码。

这玩意儿的出现是有历史背景的,2011年左右ARM设备快速发展导致Linux的ARM架构下大量设备涌入,Linus对ARM分支的维护很不满意,后在v3.8中引入了DT机制。

"Gaah.Guys, this whole ARM thing is a f*cking pain in the ass."

Linux设备树(Linux Device Tree )参考

标准规范 https://www.devicetree.org/specifications/

ARM WIki https://community.arm.com/developer/tools-software/oss-platforms/w/docs/525/device-tree

proc 目录下观察设备树

/proc/device-tree/
/sys/firmware/devicetree/base/

使用dtc转换dtb到dts

$ dtc -I dtb -O dts -o myb6ulx.dts myb6ulx.dtb