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
..
2023-01-23 18:11:40 -05:00
2024-02-15 10:38:34 +01:00
2023-07-17 15:39:55 -04:00
2023-06-12 13:24:31 +02:00
2024-07-18 17:03:47 -06:00
2024-06-10 15:01:44 +02:00
2024-04-17 17:05:57 -06:00
2023-12-09 15:59:13 -05:00
2023-08-14 17:55:53 -04:00
2023-07-17 15:39:55 -04:00
2022-03-31 14:12:23 -04:00
2022-10-17 21:17:13 -06:00
2023-11-28 20:10:25 -05:00
2022-12-31 13:35:19 -05:00
2018-05-07 09:34:12 -04:00
2022-09-12 18:06:36 -04:00
2022-05-28 10:59:27 +02:00
2024-01-18 20:24:12 -05:00
2020-10-14 11:16:34 -04:00
2024-01-18 20:23:37 -05:00
2019-01-15 15:28:41 -05:00
2024-07-04 09:25:21 -06:00
2023-06-16 06:45:20 +02:00
2021-11-26 21:30:59 +01:00
2023-05-04 09:57:43 +02:00
2023-01-11 15:02:23 -05:00
2023-09-22 06:05:40 +08:00
2021-05-13 13:09:09 -04:00
2023-01-27 12:51:27 -05:00
2022-09-12 18:06:36 -04:00
2022-09-12 18:06:36 -04:00
2023-12-20 10:46:54 -05:00
2024-07-11 13:15:37 -06:00
2024-01-29 10:31:24 -05:00
2023-09-11 16:27:49 -04:00
2020-01-02 10:27:23 -05:00
2024-07-04 09:25:21 -06:00
2024-01-16 17:05:29 -05:00
2022-08-10 13:38:30 -04:00
2024-07-04 09:25:21 -06:00
2022-01-14 12:26:42 -05:00
2018-05-07 09:34:12 -04:00
2024-01-16 12:00:05 -05:00
2024-01-16 17:05:29 -05:00
2024-01-16 17:05:29 -05:00
2020-03-27 15:42:04 -04:00
2019-10-30 17:48:47 -04:00
2024-01-29 10:31:24 -05:00
2024-07-04 09:26:30 -06:00
2024-07-04 09:26:30 -06:00
2023-02-14 09:43:27 -07:00
2023-02-14 09:43:27 -07:00
2024-04-18 16:04:48 +03:00
2022-05-26 10:27:14 -04:00
2022-09-12 18:06:36 -04:00
2020-10-14 11:16:34 -04:00
2020-10-14 11:16:34 -04:00
2020-10-14 11:16:34 -04:00
2020-10-14 11:16:34 -04:00
2021-04-12 17:45:39 -04:00
2024-03-19 18:40:47 -04:00
2020-12-13 07:58:17 -07:00
2023-11-07 14:49:40 -05:00
2024-03-19 18:40:47 -04:00
2023-06-12 13:24:31 +02:00
2024-04-12 08:53:31 -06:00
2018-05-07 09:34:12 -04:00
2020-08-07 22:31:32 -04:00
2023-10-09 15:24:31 -04:00
2024-01-26 14:15:08 +01:00
2022-12-31 13:35:19 -05:00
2023-10-17 20:50:52 -04:00
2022-06-23 12:58:18 -04:00
2024-05-27 09:00:27 +03:00
2024-07-04 09:25:20 -06:00
2019-01-15 15:28:41 -05:00
2018-05-07 09:34:12 -04:00
2024-01-29 10:31:24 -05:00
2024-07-18 13:51:30 -06:00
2023-04-03 06:53:53 +12:00
2022-10-31 11:04:00 -04:00
2023-12-13 18:39:06 -05:00
2022-05-02 09:58:13 -04:00
2024-01-29 10:31:24 -05:00
2024-01-29 10:31:24 -05:00
2024-01-29 10:31:24 -05:00
2022-03-02 10:28:12 -05:00
2021-02-15 19:17:25 -05:00