u-boot/arch
Tom Rini 4595600007 Merge patch series "bootstd: Add Android support"
Mattijs Korpershoek <mkorpershoek@baylibre.com> says:

Android boot flow is a bit different than a regular Linux distro.
Android relies on multiple partitions in order to boot.

A typical boot flow would be:
1. Parse the Bootloader Control Block (BCB, misc partition)
2. If BCB requested bootonce-bootloader, start fastboot and wait.
3. If BCB requested recovery or normal android, run the following:
   a. Get slot (A/B) from BCB
   b. Run AVB (Android Verified Boot) on boot partitions
   c. Load boot and vendor_boot partitions
   d. Load device-tree, ramdisk and boot

The AOSP documentation has more details at [1], [2], [3]

This has been implemented via complex boot scripts such as [4].
However, these boot script are neither very maintainable nor generic.
Moreover, DISTRO_DEFAULTS is being deprecated [5].

Add a generic Android bootflow implementation for bootstd.

For this initial version, only boot image v4 is supported.

This has been tested on sandbox using:
$ ./test/py/test.py --bd sandbox --build -k test_ut

This has also been tested on the AM62X SK EVM using TI's Android SDK[6]
To test on TI board, the following (WIP) patch is needed as well:
84cceb912b

[1] https://source.android.com/docs/core/architecture/bootloader
[2] https://source.android.com/docs/core/architecture/partitions
[3] https://source.android.com/docs/core/architecture/partitions/generic-boot
[4] https://source.denx.de/u-boot/u-boot/-/blob/master/include/configs/meson64_android.h
[5] https://lore.kernel.org/r/all/20230914165615.1058529-17-sjg@chromium.org/
[6] https://software-dl.ti.com/processor-sdk-android/esd/AM62X/09_02_00/docs/android/Overview.html
2024-07-18 17:03:47 -06:00
..
arc arc: Remove duplicate newlines 2024-07-15 12:12:16 -06:00
arm Merge patch series "finish using .dtso for overlay source files" 2024-07-18 17:03:47 -06:00
m68k m68k: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
microblaze microblaze: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
mips mips: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
nios2 nios2: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
powerpc ppc: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
riscv Prepare v2024.070-rc4 2024-06-04 08:09:09 -06:00
sandbox Merge patch series "bootstd: Add Android support" 2024-07-18 17:03:47 -06:00
sh sh: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
x86 x86: Remove duplicate newlines 2024-07-15 12:12:19 -06:00
xtensa xtensa: Remove duplicate newlines 2024-07-15 12:12:19 -06:00
.gitignore
Kconfig Merge patch series "Complete decoupling of zboot logic from commands" 2024-04-10 13:49:35 -06:00
Kconfig.nxp
u-boot-elf.lds