TX2 dts、dtb编译与反编译

设备树(Device Tree)包括DTC(device tree compiler),DTS(device tree source和DTB(device tree blob)。
dtc编译器能够把 dts 文件生成为dtb文件,也能把dtb文件生成为dts文件,Jetpack中提供了编译工具dtc,所在的目录为:

....64_TX2/Linux_for_Tegra_tx2/kernel

语法

dtc [-I input-format] [-O output-format] [-o output-filename] [-V output_version] input_filename

例如:
dtb反编译生成dts:

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

dts编译生成dtb:

./dtc -I dts -O dtb-o test.dtb  test.dts 
posted @ 2019-01-21 10:49  youngliu91  阅读(2061)  评论(0编辑  收藏  举报