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 unresolved thread
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
+ 5
0
@@ -269,6 +269,11 @@ int android_image_get_ramdisk(const struct andr_boot_img_hdr_v0_v1_v2 *hdr,
int android_image_get_second(const struct andr_boot_img_hdr_v0_v1_v2 *hdr,
ulong *second_data, ulong *second_len)
{
if (hdr->header_version > 2) {
printf("Second stage bootloader is only supported for boot image version <= 2\n");
return -1;
}
if (!hdr->second_size) {
*second_data = *second_len = 0;
return -1;
Loading