mkdtimg
commands:
help, dump, create, cfg_create
mkdtimg help all
mkdtimg help
commands:
help, dump, create, cfg_create
mkdtimg dump (
从它的帮助信息可以看出, 使用mkdtimg dump dtbo.img -b
命令,可以将dtbo.img中的dtb提取出来,命名为
.
2. dtc
在源码目录out/host/linux-x86/bin/dtc
Usage: dtc [options]
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
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 17 (for dtb and asm output)
-d, --out-dependency
Output dependency file
-R, --reserve
Make 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)
-a, --align
Make the blob align to the (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-")
-E, --error
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
从帮助信息上,可以看出,只要使用dtc -I dtb -O dts
就可以将上面生成的dtb文件转换为dts文件