dgibson / dtc

Device Tree Compiler
218 stars 130 forks source link

FATAL ERROR: String offset overruns string table #45

Closed dchard closed 3 years ago

dchard commented 3 years ago

Hi,

I am trying to convert a DTB file of a Xiaomi AX6 router to DTS, and I get this message:

root@nas:~/dtc# ./dtc -I dtb -O dts /root/xiaomi_ax6/AP-AC04.dtb
FATAL ERROR: String offset 16777216 overruns string table

As much as I can tell, the DTB file looks valid. Another DTB file from the same router image can be converted successfully. I attached the affected DTB file just in case: AP-AC04.ZIP

Tested with:

root@nas:~/dtc# ./dtc --version
Version: DTC 1.6.0-gf7e5737f
dgibson commented 3 years ago

The dtb appears to be badly corrupted. However you've extracted it, it's been damaged somehow.

dchard commented 3 years ago

The dtb appears to be badly corrupted. However you've extracted it, it's been damaged somehow.

Thanks for checking this! I used dtbextract script to extract it from the firmware image, and this is the one used by the router. There was another dtb file extracted in the same process and that can be converted to dts with dtc.

Anyway, if you confirm that the DTB is corrupt, then this is not a DTC issue, so I will close this issue.