- 反編譯dtb.img
dtc -I dtb -O dts dtb.img -o dtsi.txt
- 反編譯dtbo.img
mkdtimg dump dtbo.img -b dtbo
dtc -I dtb -O dts dtbo.00 -o dtsi.txt
- 批次處理dtbo.xx
#!/bin/bash
for file in `ls dtbo.*`
do
echo $file
#echo ${file}_dtsi.txt
dtc -I dtb -O dts $file -o ${file}_dtsi.txt
done