]> git.baikalelectronics.ru Git - uboot.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)
commit58ae7c57409e619bf632e9e7eaa4df1632c9a4e5
tree80ee38cce7e2bc6649b7b433ed646baf4b59a5e0
parent78e109d3ca143d766afcbaf50d4c52c16ad6289c
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