Android dtbo.img反编译查看设备树:
参考文档:
https://blog.youkuaiyun.com/qianxuedegushi/article/details/107224575
反编译andriod dtbo.img 为dts
Android设备和设备树有关的刷机镜像有两个:dtb.img和dtbo.img
1, 安装dtc
sudo apt-get install device-tree-compiler -y
2, 转换dtbo.img到dtb
android源代码下编译: mkdtimg
cd out/host/linux-x86/bin下执行:
mkdtimg dump dtbo.img -b mydtb
3,转换dtb到dts
dtc -I dtb -O dts mydtb.42 -o mydts
4,转换dtb.img到dts
dtc -I dtb -O dts dtb.img -o dtbimg_to_dts
例子: 查看qcom,wsa-max-devs的值是多上?
kalama:/proc/device-tree/soc/spf_core_platform/sound # cat compatible
qcom,kalama-asoc-snd
kalama:/proc/device-tree/soc/spf_core_platform/sound # cat qcom,model