linux设备树DTS DTB转换

DTB设备树镜像转为DTS设备树源文件

dtc -I dtb -O dts -o test.dts test.dtb

DTS设备树源文件生成DTB设备树镜像

dtc -I dts -O dtb -otest.dtb test.dts

查看DTB设备树镜像内容

hexdump -C test.dtb

附录

linux环境下,dtc命令帮助信息

#dtc --help

Usage: dtc [options] <input file>

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

-q, --quiet

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

-I, --in-format <arg>

Input formats are:

dts - device tree source text

dtb - device tree blob

fs - /proc/device-tree style directory

-o, --out <arg>

Output file

-O, --out-format <arg>

Output formats are:

dts - device tree source text

dtb - device tree blob

asm - assembler source

-V, --out-version <arg>

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

-d, --out-dependency <arg>

Output dependency file

-R, --reserve <arg>

Make space for <number> reserve map entries (for dtb and asm output)

-S, --space <arg>

Make the blob at least <bytes> long (extra space)

-p, --pad <arg>

Add padding to the blob of <bytes> long (extra space)

-a, --align <arg>

Make the blob align to the <bytes> (extra space)

-b, --boot-cpu <arg>

Set the physical boot cpu

-f, --force

Try to produce output even if the input tree has errors

-i, --include <arg>

Add a path to search for include files

-s, --sort

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

-H, --phandle <arg>

Valid phandle formats are:

legacy - "linux,phandle" properties only

epapr - "phandle" properties only

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

-W, --warning <arg>

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

-E, --error <arg>

Enable/disable errors (prefix with "no-")

-@, --symbols

Enable generation of symbols

-A, --auto-alias

Enable auto-alias of labels

-h, --help

Print this help and exit

-v, --version

Print version and exit

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值