如何将特定于平台的文件转换为设备树?
我理论上了解设备树。 请解释它在树莓派板或任何其他板上的工作原理。
最佳答案
设备树只是一种用于描述系统上存在的硬件的数据结构。在没有设备树的情况下,系统依赖于“board-files”。这些是具有大量结构的 C 文件,每个文件都描述了系统中存在的每个硬件以及它们是如何连接的。
Porting of code from legacy "board-files" to device-tree
dts
files is currently an ongoing process across several platforms/devices based on the ARM architecture.
要做到这一点,需要正确理解
- 平台/设备硬件。
- 板文件的结构。
- dts 文件的结构。
这个答案应该可以帮助您开始 preparing a device-tree dts
.
此外,正在努力将 raspberry-pi Linux 内核迁移到使用设备树。看看 source 和 booting instructions .
关于linux - 嵌入式linux中的Devicetree,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18462023/