summaryrefslogtreecommitdiff
path: root/boot/image-fdt.c
diff options
context:
space:
mode:
authorSafae Ouajih <souajih@baylibre.com>2023-02-06 02:50:11 +0300
committerTom Rini <trini@konsulko.com>2023-04-04 21:50:47 +0300
commite058176be32b09ca4f787442fd99d29e44079519 (patch)
tree54acfa56aff54114bdea2da1d56967dd3750a39f /boot/image-fdt.c
parent447240e27b892ab2ccc1ada03a260abbb562484e (diff)
downloadu-boot-e058176be32b09ca4f787442fd99d29e44079519.tar.xz
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 <souajih@baylibre.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'boot/image-fdt.c')
-rw-r--r--boot/image-fdt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot/image-fdt.c b/boot/image-fdt.c
index ba44ecf8ef..d639f37896 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;