android: support boot header version 3 and 4
Compare changes
- Safae Ouajih authored
Content print is not supported for version 3 and 4 of boot image header. Thus, only print that content when v2 is used. Update android_print_contents() to print an error message when trying to print boot image header version 3 or 4 content. Signed-off-by:
Safae Ouajih <souajih@baylibre.com>
+ 7
− 1
@@ -473,6 +473,12 @@ bool android_image_get_dtb_by_index(ulong hdr_addr, u32 index, ulong *addr,
@@ -504,7 +510,7 @@ void android_print_contents(const struct andr_boot_img_hdr_v0 *hdr)