]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: meson64_android: reboot to fastbootd from bootloader
authorMattijs Korpershoek <mkorpershoek@baylibre.com>
Fri, 30 Jul 2021 12:28:10 +0000 (14:28 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 30 Jul 2021 12:54:03 +0000 (14:54 +0200)
Whenever we test for boot-fastboot in the BCB, it means that Android
wants us to boot into recovery with a special mode (fastbootd).

Force reboot into recovery in that case.

Note: we don't erase the bcb on purpose here: recoveryOS needs to read
the BCB as well to know if it boots into regular recovery mode or
fastbootd mode.

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

index ce08346b70fbed3ffce7c378c420d01e54e72e63..f9f2b2641685acf4fd4d7a2a9cc887d911c990ce 100644 (file)
                                "bcb clear command; bcb store; " \
                                "setenv run_fastboot 1;" \
                        "fi; " \
+                       "if bcb test command = boot-fastboot; then " \
+                               "echo BCB: fastboot userspace boot...; " \
+                               "setenv force_recovery 1;" \
+                       "fi; " \
                "else " \
                        "echo Warning: BCB is corrupted or does not exist; " \
                "fi;" \