[U-Boot] [PATCH] env: ti: Improve "fastboot reboot bootloader" handling
Sam Protsenko
semen.protsenko at linaro.org
Thu Jun 20 18:58:43 UTC 2019
Enter fastboot mode ASAP during the boot, when user performed
"fastboot reboot bootloader" command, before starting the
CONFIG_BOOTDELAY countdown. We don't want to allow user to get into
U-Boot shell when we already know user wants to get into fastboot mode.
Signed-off-by: Sam Protsenko <semen.protsenko at linaro.org>
---
include/environment/ti/boot.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h
index a6b245b1c7..8ddb0416c4 100644
--- a/include/environment/ti/boot.h
+++ b/include/environment/ti/boot.h
@@ -126,13 +126,15 @@
"if test $fdtfile = undefined; then " \
"echo WARNING: Could not determine device tree to use; fi; \0"
-#define CONFIG_BOOTCOMMAND \
+#define CONFIG_PREBOOT \
"if test ${dofastboot} -eq 1; then " \
"echo Boot fastboot requested, resetting dofastboot ...;" \
"setenv dofastboot 0; saveenv;" \
"echo Booting into fastboot ...; " \
"fastboot " __stringify(CONFIG_FASTBOOT_USB_DEV) "; " \
"fi;" \
+
+#define CONFIG_BOOTCOMMAND \
"if test ${boot_fit} -eq 1; then " \
"run update_to_fit;" \
"fi;" \
--
2.20.1
More information about the U-Boot
mailing list