]> git.dujemihanovic.xyz Git - u-boot.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)
commitf2cd6487877db9bba8e07abcb36decafcad9ae2a
tree781e8b47d4ecc53fb4cc5d2ce0350978e4cccd3f
parent75be1ebf2ec09fdbd7562c2b7a86be302cdbd04d
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