linux - 嵌入式linux中的Devicetree

标签 linux linux-device-driver device-driver device-tree

如何将特定于平台的文件转换为设备树?

我理论上了解设备树。 请解释它在树莓派板或任何其他板上的工作原理。

最佳答案

设备树只是一种用于描述系统上存在的硬件的数据结构。在没有设备树的情况下,系统依赖于“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/

相关文章:

c++ - 在 Windows NDIS 的 passthru 示例中,如何使用特定适配器发送 NDIS_PACKET?

linux - 具有重复行的 csv 文件的最佳压缩

linux - Linux内核中syscalls.h中函数的实现在哪里

c++ - 如何使用 FLTK 在 Windows、Mac OS X 和 Linux 中使窗口透明?

c - linux 驱动程序间通信

windows - 确定 IRQL 级别

linux - xdg-open 不打开牛仔裤

Linux 设备文件丢失

linux - 如何在 Linux 中获取 USB(HID 使用 ID)连接设备的使用 ID 或类似属性

linux - 在 linux 内核构建期间删除不必要的驱动程序