diff options
| author | Safae Ouajih <[email protected]> | 2023-02-06 00:50:11 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-04-04 14:50:47 -0400 |
| commit | e058176be32b09ca4f787442fd99d29e44079519 (patch) | |
| tree | 54acfa56aff54114bdea2da1d56967dd3750a39f /boot/image-fdt.c | |
| parent | 447240e27b892ab2ccc1ada03a260abbb562484e (diff) | |
android: boot: add vendor boot image to prepare for v3, v4 support
Introduce vendor boot image for version 3 and 4 of boot image header.
The vendor boot image will hold extra information about kernel, dtb
and ramdisk.
This is done to prepare for boot image version 3 and 4 support.
Signed-off-by: Safae Ouajih <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Mattijs Korpershoek <[email protected]>
Tested-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'boot/image-fdt.c')
| -rw-r--r-- | boot/image-fdt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/boot/image-fdt.c b/boot/image-fdt.c index ba44ecf8ef3..d639f37896a 100644 --- a/boot/image-fdt.c +++ b/boot/image-fdt.c @@ -536,7 +536,8 @@ int boot_get_fdt(int flag, int argc, char *const argv[], uint8_t arch, * Firstly check if this android boot image has dtb field. */ dtb_idx = (u32)env_get_ulong("adtb_idx", 10, 0); - if (android_image_get_dtb_by_index((ulong)hdr, dtb_idx, &fdt_addr, &fdt_size)) { + if (android_image_get_dtb_by_index((ulong)hdr, 0, + dtb_idx, &fdt_addr, &fdt_size)) { fdt_blob = (char *)map_sysmem(fdt_addr, 0); if (fdt_check_header(fdt_blob)) goto no_fdt; |
