bootstd: Add test for Android boot image v2
authorGuillaume La Roque <glaroque@baylibre.com>
Tue, 26 Nov 2024 08:06:13 +0000 (09:06 +0100)
committerMattijs Korpershoek <mkorpershoek@baylibre.com>
Tue, 26 Nov 2024 08:59:01 +0000 (09:59 +0100)
commit126254ab97691a93902d8fe02fdff0a783921c39
treed140829d5d630a5b3d5618f740f1006a4e6ce3cb
parent83a6ae671680010ae52e83554c431b095fe2b5d5
bootstd: Add test for Android boot image v2

Rename actual android bootmethod test to specify it's for boot image
version 4.
Add a unit test for testing the Android bootmethod with boot image
version 2.

This requires another mmc image (mmc8) to contain the following
partitions:
- misc: contains the Bootloader Control Block (BCB)
- boot_a: contains a fake generic kernel image

we can test this with:

$ ./test/py/test.py --bd sandbox --build -k test_ut # build the mmc8.img
$ ./test/py/test.py --bd sandbox --build -k bootflow_android

Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: Guillaume La Roque <glaroque@baylibre.com>
Link: https://lore.kernel.org/r/20241126-adnroidv2-v4-5-11636106dc69@baylibre.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
arch/sandbox/dts/test.dts
test/boot/bootflow.c
test/py/tests/test_ut.py