linux 设备树 工具,设备树(device tree)学习笔记

1、反编译设备树

在设备树学习的时候,如果可以看到最终生成的设备树的内容,对于我们学习设备树以及分析问题有很大帮助。这里我们需要使用设备树生成工具dtc的反编译功能

root@pengdl-VirtualBox:~/tq2440/Linux/linux-4.0.1# ./scripts/dtc/dtc -h

Usage: dtc [options]

Options: -[qI:O:o:V:d:R:S:p:fb:i:H:sW:E:hv]

-q, --quiet

Quiet: -q suppress warnings, -qq errors, -qqq all

-I, --in-format

Input formats are:

dts - device tree source text

dtb - device tree blob

fs - /proc/device-tree style directory

-o, --out

Output file

-O, --out-format

Output formats are:

dts - device tree source text

dtb - device tree blob

asm - assembler source

-V, --out-version

Blob version to produce, defaults to %d (for dtb and asm output)

-d, --out-dependency

Output dependency file

-R, --reserve

tMake space for reserve map entries (for dtb and asm output)

-S, --space

Make the blob at least long (extra space)

-p, --pad

Add padding to the blob of long (extra space)

-b, --boot-cpu

Set the physical boot cpu

-f, --force

Try to produce output even if the input tree has errors

-i, --include

Add a path to search for include files

-s, --sort

Sort nodes and properties before outputting (useful for comparing trees)

-H, --phandle

Valid phandle formats are:

legacy - "linux,phandle" properties only

epapr - "phandle" properties only

both - Both "linux,phandle" and "phandle" properties

-W, --warning

Enable/disable warnings (prefix with "no-")<

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值