Commit 1f3b8133 authored by topjohnwu's avatar topjohnwu

Fix Moto DTB issue

parent 5921d3a4
...@@ -128,7 +128,8 @@ int extract(char *image) { ...@@ -128,7 +128,8 @@ int extract(char *image) {
if(memcmp(base+pos, "QCDT", 4) == 0 || if(memcmp(base+pos, "QCDT", 4) == 0 ||
memcmp(base+pos, "SPRD", 4) == 0 || memcmp(base+pos, "SPRD", 4) == 0 ||
memcmp(base+pos, "DTBH", 4) == 0 memcmp(base+pos, "DTBH", 4) == 0 ||
memcmp(base+pos, "\xD0\x0D\xFE\xED", 4) == 0
) { ) {
dump(base+pos, hdr->unused[0], "dt"); dump(base+pos, hdr->unused[0], "dt");
pos += hdr->unused[0] + hdr->page_size-1; pos += hdr->unused[0] + hdr->page_size-1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment