[U-Boot] [PATCH 5/5] pico-imx7d: Provide a way to escape the Falcon mode

Otavio Salvador otavio at ossystems.com.br
Thu Sep 12 19:05:01 UTC 2019


From: Fabio Estevam <festevam at gmail.com>

When CONFIG_SPL_OS_BOOT is selected, it is still convenient to be able
to escape from Falcon mode and boot to U-Boot proper.

Add a mechanism that allows booting in U-Boot proper when the
key 'c' is entered on console at boot time.

Signed-off-by: Fabio Estevam <festevam at gmail.com>
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---

 board/technexion/pico-imx7d/spl.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/board/technexion/pico-imx7d/spl.c b/board/technexion/pico-imx7d/spl.c
index c55a35d864..8955622b81 100644
--- a/board/technexion/pico-imx7d/spl.c
+++ b/board/technexion/pico-imx7d/spl.c
@@ -21,6 +21,10 @@
 #ifdef CONFIG_SPL_OS_BOOT
 int spl_start_uboot(void)
 {
+	/* Break into full U-Boot on 'c' */
+	if (serial_tstc() && serial_getc() == 'c')
+		return 1;
+
 	return 0;
 }
 #endif
-- 
2.23.0



More information about the U-Boot mailing list