[PATCH 2/2] boot: android: Add bootconfig support

Simon Glass sjg at chromium.org
Sat Nov 30 21:24:57 CET 2024


Hi Guillaume,

On Thu, 28 Nov 2024 at 03:15, Guillaume La Roque <glaroque at baylibre.com> wrote:
>
> For android vendor boot image version 4 bootconfig is mandatory.[1]
>
> In the android_image_get_ramdisk function, after copying both vendor and
> boot ramdisks, we extract all androidboot.* entries from the kernel
> command line. These entries are added to the bootconfig section.
> We then update the sizes of the ramdisk and bootconfig.
> Finally, all androidboot.* entries are removed from the kernel command
> line.
>
> [1] https://source.android.com/docs/core/architecture/partitions/vendor-boot-partitions#vendor-boot-partition-v4
> Co-developed-by: Mattijs Korpershoek <mkorpershoek at baylibre.com>
> Signed-off-by: Mattijs Korpershoek <mkorpershoek at baylibre.com>
> Signed-off-by: Guillaume La Roque <glaroque at baylibre.com>
> ---
>  boot/image-android.c | 29 +++++++++++++++++++++++++++++
>  1 file changed, 29 insertions(+)
>

I am not seeing any tests for this code. Can you please update the
test to cover this?

Regards,
Simon


More information about the U-Boot mailing list