Skip to content
Snippets Groups Projects

android: support boot header version 3 and 4

Closed Safae Ouajih requested to merge souajih/v4_ti into integ/ti-u-boot-2021.01
1 file
+ 7
1
Compare changes
  • Side-by-side
  • Inline
+ 7
1
@@ -473,6 +473,12 @@ bool android_image_get_dtb_by_index(ulong hdr_addr, u32 index, ulong *addr,
void android_print_contents(const struct andr_boot_img_hdr_v0 *hdr)
{
const char * const p = IMAGE_INDENT_STRING;
if (hdr->header_version >= 3) {
printf("Content print is not supported for boot image header version > 2");
return;
}
/* os_version = ver << 11 | lvl */
u32 os_ver = hdr->os_version >> 11;
u32 os_lvl = hdr->os_version & ((1U << 11) - 1);
@@ -504,7 +510,7 @@ void android_print_contents(const struct andr_boot_img_hdr_v0 *hdr)
hdr->header_size);
}
if (hdr->header_version >= 2) {
if (hdr->header_version == 2) {
printf("%sdtb size: %x\n", p, hdr->dtb_size);
printf("%sdtb addr: %llx\n", p, hdr->dtb_addr);
}
Loading