没有合适的资源?快使用搜索试试~ 我知道了~
Devicetree语法及调试1
资源详情
资源评论
资源推荐
![](https://csdnimg.cn/release/download_crawler_static/86377010/bg1.jpg)
Devicetree 语法及调试
目录
Devicetree 语法及调试.........................................................................................................................................................................................................1
1 基本语法: ..................................................................................................................................................................................................................1
2 DTS 文件布局(layout):................................................................................................................................................................................................2
3 特殊的、默认的属性: ..............................................................................................................................................................................................2
3.1 根节点: ...........................................................................................................................................................................................................2
3.2 /memory ..........................................................................................................................................................................................................2
3.3 /chosen ............................................................................................................................................................................................................2
3.4 /cpus ................................................................................................................................................................................................................2
3.5 /cpus/cpu* .......................................................................................................................................................................................................2
4 引用其他节点: ..........................................................................................................................................................................................................3
5 设备树的调试 ...........................................................................................................................................................................................................3
5.1 在根文件系统中查看设备树.........................................................................................................................................................................3
5.2 反汇编生成的 dtb 文件 .................................................................................................................................................................................3
1 基本语法:
Devicetree node 格式:
[label:] node-name[@unit-address] {
[properties definitions]
[child nodes]
};
Property 格式 1:
[label:] property-name = value;
Property 格式 2(没有值):
[label:] property-name;
Property 取值只有 3 种:
arrays of cells(1 个或多个 32 位数据, 64 位数据使用 2 个 32 位数据表示),
string(字符串),
bytestring(1 个或多个字节)
示例:
a. Arrays of cells : cell 就是一个 32 位的数据
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![mmap](https://img-home.csdnimg.cn/images/20210720083646.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![exe](https://img-home.csdnimg.cn/images/20210720083343.png)
![avatar](https://profile-avatar.csdnimg.cn/bb35b690636d4a029dec96db79fa6df6_weixin_35781693.jpg!1)
江水流春去
- 粉丝: 43
- 资源: 352
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)
评论0