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.protse...@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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to