rockchip: resource: fix dtb addr error in hdr_v2.
dtb addr should add the size of recovery_dtbo when recover_dtbo is included. Change-Id: I97f7bd6e248f61413b530972abe46c3236bd0b01 Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
This commit is contained in:
parent
3bdef7e642
commit
a0614e0a98
|
|
@ -311,8 +311,10 @@ static int init_resource_list(struct resource_img_hdr *hdr)
|
||||||
rsce_base += ALIGN(andr_hdr->ramdisk_size, andr_hdr->page_size);
|
rsce_base += ALIGN(andr_hdr->ramdisk_size, andr_hdr->page_size);
|
||||||
|
|
||||||
if (andr_hdr->header_version >= 2) {
|
if (andr_hdr->header_version >= 2) {
|
||||||
dtb_offset = rsce_base + ALIGN(andr_hdr->second_size,
|
dtb_offset = rsce_base +
|
||||||
andr_hdr->page_size);
|
ALIGN(andr_hdr->recovery_dtbo_size,
|
||||||
|
andr_hdr->page_size) +
|
||||||
|
ALIGN(andr_hdr->second_size, andr_hdr->page_size);
|
||||||
dtb_size = andr_hdr->dtb_size;
|
dtb_size = andr_hdr->dtb_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue