diff options
author | Roman Stratiienko <r.stratiienko@gmail.com> | 2024-05-23 07:06:07 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-06-07 16:20:33 -0600 |
commit | 17b1656dcd07136d83082b23118c20b2042d73e0 (patch) | |
tree | 534bbadcdf31f8beaa30d7ef8a4ef38fb867f704 /include | |
parent | da3447d09fa045c6919370a0ac24693efe317901 (diff) |
abootimg: Add init_boot image support
Quote from [1]:
"For devices launching with Android 13, the generic ramdisk is removed
from the boot image and placed in a separate init_boot image.
This change leaves the boot image with only the GKI kernel."
While at it, update wrong error handling message when vendor_boot
cannot be loaded.
[1]: https://source.android.com/docs/core/architecture/partitions/generic-boot
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/image.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h index acffd17e0df..c5b288f62b4 100644 --- a/include/image.h +++ b/include/image.h @@ -1971,6 +1971,13 @@ bool is_android_vendor_boot_image_header(const void *vendor_boot_img); ulong get_abootimg_addr(void); /** + * get_ainit_bootimg_addr() - Get Android init boot image address + * + * Return: Android init boot image address + */ +ulong get_ainit_bootimg_addr(void); + +/** * get_avendor_bootimg_addr() - Get Android vendor boot image address * * Return: Android vendor boot image address |