diff options
author | Mattijs Korpershoek <mkorpershoek@baylibre.com> | 2021-07-30 14:28:10 +0200 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2021-07-30 14:54:03 +0200 |
commit | acc53c6ef62598f0adbad6418a896d2a9d64c187 (patch) | |
tree | 3ded4745f44b53279b9ae1066675d4317b8db19b /include/configs | |
parent | 72d7c03074f0dec67fe68ea268112bb820d7e82f (diff) | |
download | u-boot-acc53c6ef62598f0adbad6418a896d2a9d64c187.tar.gz |
configs: meson64_android: reboot to fastbootd from bootloader
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>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/meson64_android.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/meson64_android.h b/include/configs/meson64_android.h index ce08346b70..f9f2b26416 100644 --- a/include/configs/meson64_android.h +++ b/include/configs/meson64_android.h @@ -44,6 +44,10 @@ "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;" \ |