All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/17] Support android boot image v3/v4
@ 2022-11-26 16:59 Safae Ouajih
  2022-11-26 16:59 ` [PATCH 01/17] android: boot: rename andr_img_hdr -> andr_boot_img_hdr_v0_v1_v2 Safae Ouajih
                   ` (19 more replies)
  0 siblings, 20 replies; 28+ messages in thread
From: Safae Ouajih @ 2022-11-26 16:59 UTC (permalink / raw)
  To: sjg; +Cc: u-boot, sean.anderson, r.stratiienko, mkorpershoek, glaroque, khilman

Hello everyone,

* This is based on Roman Stratiienko's work to support boot image header version 3 and 4.

* This supports the new boot image headers v3, v4 and bootconfig feature.
https://source.android.com/docs/core/architecture/bootloader/boot-image-header
https://source.android.com/docs/core/architecture/bootloader/implementing-bootconfig

- Tested on Amlogic Khadas vim3l, a reference board for Android Open Source Project
  https://www.khadas.com/vim3l

  And on AM625 Texas Instruments board with 5.10 linux kernel

Main changes :
- New partition : vendor boot, with a specific vendor ramdisk
- DTB is stored in the vendor boot partition
- The generic ramdisk is placed after the vendor ramdisk
- Bootconfig feature support


Here is a link to see the related android boot flow changes on KHADAS vim3l as an example:
https://gitlab.baylibre.com/baylibre/amlogic/atv/u-boot/-/commits/souajih/BootImagev4/

Safae Ouajih (17):
  android: boot: rename andr_img_hdr -> andr_boot_img_hdr_v0_v1_v2
  android: boot: support vendor boot image in abootimg
  android: boot: replace android_image_check_header
  android: boot: add boot image header v3 and v4 structures
  android: boot: add documentation for boot image header v3/v4 structure
  android: boot: kcomp: support andr_image_data
  android: boot: move to andr_image_data structure
  android: boot: content print is not supported for v3,v4 header version
  android: boot: boot image header v3,v4 do not support recovery DTBO
  android: boot: add vendor boot image to prepare for v3,v4 support
  android: boot: update android_image_get_data to support v3,v4
  android: boot: ramdisk: support vendor ramdisk
  android: boot: support extra command line
  drivers: fastboot: zImage flashing is not supported for v3,v4
  android: boot: support boot image header version 3 and 4
  lib: support libxbc
  android: boot: support bootconfig

 boot/bootm.c              |  29 ++-
 boot/image-android.c      | 367 ++++++++++++++++++++++++++++++--------
 boot/image-board.c        |  15 +-
 boot/image-fdt.c          |   5 +-
 cmd/abootimg.c            |  66 ++++---
 drivers/fastboot/fb_mmc.c |  19 +-
 include/android_image.h   | 220 ++++++++++++++++++++++-
 include/image.h           |  37 ++--
 include/xbc.h             |   1 +
 lib/Kconfig               |  12 ++
 lib/Makefile              |   1 +
 lib/libxbc/Makefile       |   1 +
 lib/libxbc/libxbc.c       | 112 ++++++++++++
 lib/libxbc/libxbc.h       |  54 ++++++
 14 files changed, 806 insertions(+), 133 deletions(-)
 create mode 100644 include/xbc.h
 create mode 100644 lib/libxbc/Makefile
 create mode 100644 lib/libxbc/libxbc.c
 create mode 100644 lib/libxbc/libxbc.h

--
2.25.1


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2023-01-06 11:04 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-26 16:59 [PATCH 00/17] Support android boot image v3/v4 Safae Ouajih
2022-11-26 16:59 ` [PATCH 01/17] android: boot: rename andr_img_hdr -> andr_boot_img_hdr_v0_v1_v2 Safae Ouajih
2022-11-28 16:08   ` Sean Anderson
2022-11-29 11:07     ` Safae Ouajih
2022-11-26 16:59 ` [PATCH 02/17] android: boot: support vendor boot image in abootimg Safae Ouajih
2022-11-26 16:59 ` [PATCH 03/17] android: boot: replace android_image_check_header Safae Ouajih
2022-11-26 16:59 ` [PATCH 04/17] android: boot: add boot image header v3 and v4 structures Safae Ouajih
2022-11-26 16:59 ` [PATCH 05/17] android: boot: add documentation for boot image header v3/v4 structure Safae Ouajih
2022-11-28 16:12   ` Sean Anderson
2022-11-26 16:59 ` [PATCH 06/17] android: boot: kcomp: support andr_image_data Safae Ouajih
2022-11-26 16:59 ` [PATCH 07/17] android: boot: move to andr_image_data structure Safae Ouajih
2022-11-26 16:59 ` [PATCH 08/17] android: boot: content print is not supported for v3, v4 header version Safae Ouajih
2022-11-26 16:59 ` [PATCH 09/17] android: boot: boot image header v3, v4 do not support recovery DTBO Safae Ouajih
2022-11-26 16:59 ` [PATCH 10/17] android: boot: add vendor boot image to prepare for v3, v4 support Safae Ouajih
2022-11-26 16:59 ` [PATCH 11/17] android: boot: update android_image_get_data to support v3, v4 Safae Ouajih
2022-11-26 16:59 ` [PATCH 12/17] android: boot: ramdisk: support vendor ramdisk Safae Ouajih
2022-11-26 16:59 ` [PATCH 13/17] android: boot: support extra command line Safae Ouajih
2022-11-26 16:59 ` [PATCH 14/17] drivers: fastboot: zImage flashing is not supported for v3, v4 Safae Ouajih
2022-11-26 16:59 ` [PATCH 15/17] android: boot: support boot image header version 3 and 4 Safae Ouajih
2022-11-26 16:59 ` [PATCH 16/17] lib: support libxbc Safae Ouajih
2022-11-28 16:02   ` Sean Anderson
2022-11-26 16:59 ` [PATCH 17/17] android: boot: support bootconfig Safae Ouajih
2022-11-28  9:43 ` [PATCH 00/17] Support android boot image v3/v4 Mattijs Korpershoek
2022-12-04 21:16 ` Simon Glass
2022-12-30  1:48 ` Tom Rini
2023-01-04  9:02   ` safae ouajih
2023-01-04 20:01     ` Simon Glass
2023-01-06 11:04       ` safae ouajih

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.