]> git.dujemihanovic.xyz Git - u-boot.git/commit
android: boot: support boot image header version 3 and 4
authorSafae Ouajih <souajih@baylibre.com>
Sun, 5 Feb 2023 23:50:17 +0000 (00:50 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 4 Apr 2023 18:50:47 +0000 (14:50 -0400)
commit636da2039aea4ea3a638b14da0a9ec258897a10c
tree80ee38cce7e2bc6649b7b433ed646baf4b59a5e0
parentbc6413bdd9a4a7ab8a62232aa4791cc26a0ef215
android: boot: support boot image header version 3 and 4

Enable the support for boot image header version 3 and 4
using abootimg command.

In order to use version 3 or 4:

1- Vendor boot image address should be given to abootimg cmd.

abootimg addr $1 $vendor_boot_load_addr

2- "ramdisk_addr_r" env variable (ramdisk address) should be set to host
the ramdisk : generic ramdisk + vendor ramdisk

Replace "struct andr_boot_img_hdr_v0*" by "void *" in
some functions since v3 and v4 are now supported as well.

Signed-off-by: Safae Ouajih <souajih@baylibre.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
boot/bootm.c
boot/image-android.c
boot/image-board.c
boot/image-fdt.c
cmd/abootimg.c
include/image.h