qcdt: pad the last dtb too
This commit is contained in:
parent
b45d922463
commit
dfc65b95f7
@ -266,6 +266,7 @@ static int dtb_patch(const qcdt_hdr *hdr, const char *in, const char *out) {
|
|||||||
val.second.len = do_align(size, page_size);
|
val.second.len = do_align(size, page_size);
|
||||||
free(fdt);
|
free(fdt);
|
||||||
}
|
}
|
||||||
|
write_zero(fd, align_off(lseek(fd, 0, SEEK_CUR), page_size));
|
||||||
|
|
||||||
// Patch tables
|
// Patch tables
|
||||||
auto tables_rw = reinterpret_cast<Table *>(addr + sizeof(qcdt_hdr));
|
auto tables_rw = reinterpret_cast<Table *>(addr + sizeof(qcdt_hdr));
|
||||||
|
Loading…
Reference in New Issue
Block a user