开放式固件设备树的概述/参考手册 [英] Overview/reference manual for Open Firmware Device Trees

查看:142
本文介绍了开放式固件设备树的概述/参考手册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为嵌入式PowerPC板安装驱动程序,而今天要做的正确方法是使用OpenFirmware设备树数据结构(.dtb文件,从.dts文件编译而成).创建树非常简单,但是如何获取设备驱动程序以找到其节点和其中的数据?我还没有找到任何很好的参考,x86领域的《 Linux设备驱动程序》之类的书太多了,对大多数与基于Power Architecture的机器有关的设备树(Linux内核中的arch powerpc)没有多大帮助.术语).

I am trying to setup a driver for an embedded PowerPC board, and the correct way to do this today is to use the OpenFirmware Device Tree datastructure (the .dtb file, compiled from a .dts file). Creating a tree is pretty easy, but how do I get my device driver to find its node and the data in it? I have not managed to find any good reference on this, and books like "Linux Device Drivers" are too much into x86 land to be of much help for device trees that mostly pertain to Power Architecture-based machines (arch powerpc in the Linux kernel terminology).

推荐答案

似乎没有什么可用的文档,尤其是在编写驱动程序方面.我认识了一位长期的Linux内核开发人员,他的建议实质上是研究其他驱动程序的代码.

There seems to be very little documentation available, especially on the side of doing drivers. talked to a long-time Linux kernel developer I know, and his advice was essentially to look at the code of other drivers.

我发现一些背景知识:授予可能的演示文稿授予可能的Linux专题讨论会论文,对数据结构的相当不错的概述

some background reading I found: Grant Likely presentation, Grant Likely Linux Symposium paper, a fairly good overview of the data structure

在Linux内核的arch/powerpc/树中的Freescale fsl_x.c驱动程序中找到了最广泛使用的开放式固件系统,此版本比2.6.16更新.

The most pervasive use of the open firmware system is found in the Freescale fsl_x.c drivers in the arch/powerpc/ tree in the Linux kernel, more recent than 2.6.16.

这篇关于开放式固件设备树的概述/参考手册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆