]> git.baikalelectronics.ru Git - uboot.git/commit
configs: meson64_android: use boot part label instead of index
authorMattijs Korpershoek <mkorpershoek@baylibre.com>
Thu, 29 Jul 2021 07:21:11 +0000 (09:21 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Thu, 29 Jul 2021 09:37:20 +0000 (11:37 +0200)
commit8989f0c0c18ea3fa36bea100129f96261a1306e9
tree781e8b47d4ecc53fb4cc5d2ce0350978e4cccd3f
parentf37911d1e93550bac35855ba7570cd9ac6fe5171
configs: meson64_android: use boot part label instead of index

To boot Android, we read the gpt and assume that the partition with
index "1" will be the "boot" partition.

This might not always be the case, as there are no requirements from
Android on the partition order.

However, Android does seem to use the "boot" label quite a lot on their
public documentation [1]

Load the boot partition by label instead of by index

[1] https://source.android.com/devices/bootloader/partitions
Signed-off-by: Guillaume La Roque <mkorpershoek@baylibre.com>
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
include/configs/meson64_android.h