dtc使用方法(详细的参数介绍)

来源:互联网 发布:中学生免费辅导软件 编辑:程序博客网 时间:2024/05/17 06:31
 Usage:
dtc [options] <input file>

Options:
-h
This help text
-q
Quiet: -q suppress warnings, -qq errors, -qqq all
-I <input format>
Input formats are:
dts - device tree source text
dtb - device tree blob
fs - /proc/device-tree style directory
-o <output file>
-O <output format>
Output formats are:
dts - device tree source text
dtb - device tree blob
asm - assembler source
-V <output version>
Blob version to produce, defaults to 17 (relevant for dtb
and asm output only)
-R <number>
Make space for <number> reserve map entries (relevant for
dtb and asm output only)
-S <bytes>
Make the blob at least <bytes> long (extra space)
-p <bytes>
Add padding to the blob of <bytes> long (extra space)
-b <number>
Set the physical boot cpu
-f
Force - try to produce output even if the input tree has errors
-v
Print DTC version and exit

input format可以使用以下3个参数:
  • dtb:表示输入文件为dtb文件
  • dts:表示输入文件为dts文件
  • fs: 表示输入文件与/proc/device-tree/ 的格式形同

output format可以使用以下3个参数:
  • dtb:表示输出文件为dtb文件
  • dts:表示输出文件为dts文件
  • asm: 表示输出文件为汇编语言文件

 

 

例子: dtc -I dts -O dtb    source.dts  > destination.dtb

原创粉丝点击