mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
android: boot: boot image header v3, v4 do not support recovery DTBO
android_image_get_dtbo() is used to get recovery DTBO via abootimg cmd. This is not supported in boot image header v3 and v4. Thus, print an error message when v1,v2 header version are not used. 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>
This commit is contained in:
parent
bb5d692732
commit
447240e27b
1 changed files with 2 additions and 2 deletions
|
@ -316,8 +316,8 @@ bool android_image_get_dtbo(ulong hdr_addr, ulong *addr, u32 *size)
|
|||
goto exit;
|
||||
}
|
||||
|
||||
if (hdr->header_version < 1) {
|
||||
printf("Error: header_version must be >= 1 to get dtbo\n");
|
||||
if (hdr->header_version != 1 && hdr->header_version != 2) {
|
||||
printf("Error: header version must be >= 1 and <= 2 to get dtbo\n");
|
||||
ret = false;
|
||||
goto exit;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue