[PATCH v2 0/5] Add support of Android Boot Image version 2 and non-AB image

Neil Armstrong neil.armstrong at linaro.org
Tue Nov 19 11:21:18 CET 2024


Hi,

On 14/11/2024 22:29, Guillaume La Roque wrote:
> Actually bootmethod android only support android boot image version 4
> and with AB image, some old platform wtill use android boot image
> version 2 with AB or without AB slot.
> 
> This patchset add support of both version 2 and non-AB slot images.
> It's fixed in same time a boot issue seen on khadas vim3{l} board with 16GB eMMC
> 
> patchset was tested on khadas VIM3 and VIM3L with AOSP main branch and
> android-mainline kernel and with TI AM62P with android release provided
> by TI.
> 
> Signed-off-by: Guillaume La Roque <glaroque at baylibre.com>
> ---
> Changes in v2:
> - Drop patch 3 (configs: khadas-vim3{l}: fix userdata size) already
>    applied
> - Apply Tested-by and Reviewed-by from v1
> - Fix comments
> - Revert malloc/free for slot_suffix
> - Remove vim3/vim3l stuff in meson64_android.h
> - Link to v1: https://lore.kernel.org/r/20241017-adnroidv2-v1-0-781c939902c9@baylibre.com
> 
> ---
> Guillaume La Roque (5):
>        bootstd: android: add support of bootimage v2
>        bootstd: android: add non-A/B image support
>        configs: khadas-vim3l_android{_ab}: move on bootmeth android
>        configs: khadas-vim3_android{_ab}: move on bootmeth android
>        bootstd: Add test for Android boot image v2
> 
>   arch/sandbox/dts/test.dts                 | 10 +++-
>   boot/Kconfig                              |  1 -
>   boot/bootmeth_android.c                   | 78 +++++++++++++++++++++----------
>   configs/am62x_a53_android.config          |  1 +
>   configs/khadas-vim3_android_ab_defconfig  |  7 ++-
>   configs/khadas-vim3_android_defconfig     |  7 ++-
>   configs/khadas-vim3l_android_ab_defconfig |  7 ++-
>   configs/khadas-vim3l_android_defconfig    |  7 ++-
>   configs/sandbox_defconfig                 |  1 +
>   include/configs/khadas-vim3_android.h     | 26 +++++++++--
>   include/configs/khadas-vim3l_android.h    | 26 +++++++++--
>   include/configs/meson64_android.h         |  6 ---
>   test/boot/bootflow.c                      | 29 ++++++++++--
>   test/py/tests/test_ut.py                  | 49 +++++++++++++++++++
>   14 files changed, 208 insertions(+), 47 deletions(-)
> ---
> base-commit: ce427e40a2422b75374ee3404e3f5c6536e8984a
> change-id: 20241015-adnroidv2-a01dca609707
> 
> Best regards,

To whoever applies this patchset, please take the configs patches at the same time!

Neil



More information about the U-Boot mailing list