[PATCH v2 04/17] android: boot: add boot image header v3 and v4 structures
Simon Glass
sjg at chromium.org
Fri Jan 27 01:54:48 CET 2023
On Thu, 26 Jan 2023 at 09:05, Safae Ouajih <souajih at baylibre.com> wrote:
>
> This adds support for v3/v4 boot image format by adding
> the following structures:
>
> - andr_boot_img_hdr_v3 : describes boot image header
> - andr_vendor_img_hdr : describes vendor boot image header
>
> These definitions have been copied over from the AOSP documentation at
> [1] and [2]
>
> Boot arg sizes are taken from [3]:
> commit: 35fb6262bc3f (ANDROID: Support for vendor boot)
>
> This also adds documentation for boot image header v3/v4 structure
> that was imported from [4], file: include/bootimg/bootimg.h
> commit: 8d0922bfb932 (Adding GKI signature in boot.img v4)
>
> Link:[1] https://source.android.com/docs/core/architecture/bootloader/boot-image-header
> Link:[2] https://source.android.com/docs/core/architecture/bootloader/partitions/vendor-boot-partitions#vendor-boot-header
> Link:[3] https://android.googlesource.com/platform/external/u-boot
> Link:[4] https://android.googlesource.com/platform/system/tools/mkbootimg
>
> Signed-off-by: Safae Ouajih <souajih at baylibre.com>
> ---
> include/android_image.h | 183 +++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 182 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
You might consider using the sphinx style for struct comments so you
can include this header file into the docs directly.
More information about the U-Boot
mailing list