Skip to content

Add support of Android Boot Image version 2 and non-AB image

Guillaume La Roque u-boot u-boot-amlogic 4 versions – In review

Get series with b4
b4 am [email protected] change-id 20241015-adnroidv2-a01dca609707

Versions newest first

  1. v4 Latest5 patches 1 replyIn review
  2. v35 patches 10 repliesSuperseded
  3. v25 patches 8 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches11 repliesSuperseded

Changes in v4 from the cover letter

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5bootstd: android: add support of bootimage v2boot/bootmeth_android.c+12 -150 replies
2/5bootstd: android: add non-A/B image supportboot/Kconfig boot/bootmeth_android.c configs/am62x_a53_android.config +1 more+44 -100 replies
3/5configs: khadas-vim3l_android{_ab}: move on bootmeth androidconfigs/khadas-vim3l_android_ab_defconfig configs/khadas-vim3l_android_defconfig include/configs/khadas-vim3l_android.h +1 more+33 -90 replies
4/5configs: khadas-vim3_android{_ab}: move on bootmeth androidconfigs/khadas-vim3_android_ab_defconfig configs/khadas-vim3_android_defconfig include/configs/khadas-vim3_android.h +1 more+33 -90 replies
5/5bootstd: Add test for Android boot image v2arch/sandbox/dts/test.dts test/boot/bootflow.c test/py/tests/test_ut.py+84 -40 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJulien MassonMattijs KorpershoekNeil Armstrong
1/5T-b R-b
2/5R-b
3/5R-b A-b
4/5R-b A-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

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

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.

---
Changes in v4:
- test: fix test after patch done on it by Mattijs :
https://lore.kernel.org/r/all/20241123024300.GY3600562@bill-the-cat/
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Remove gpio recovery stuff not needed anymore.
- Link to v2: https://lore.kernel.org/r/[email protected]

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/[email protected]

---
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     | 25 ++++++++--
 include/configs/khadas-vim3l_android.h    | 25 ++++++++--
 include/configs/meson64_android.h         |  6 ---
 test/boot/bootflow.c                      | 29 ++++++++++--
 test/py/tests/test_ut.py                  | 49 +++++++++++++++++++
 14 files changed, 206 insertions(+), 47 deletions(-)

---
base-commit: 48380f9b2a12e3fc6339d6af5a154bded769d911
change-id: 20241015-adnroidv2-a01dca609707

Best regards,

Signature · 1 line
Guillaume La Roque <[email protected]>