[U-Boot] [PATCH 1/4] km/common: stop u-boot only if someone press <SPACE>

Valentin Longchamp valentin.longchamp at keymile.com
Fri Nov 13 16:15:19 CET 2015


From: Holger Brunck <holger.brunck at keymile.com>

To prevent u-boot to stop accidently e.g. due to line noise on the
serial line, we now use the option CONFIG_AUTOBOOT_KEYED. We choose the
<SPACE> key for this.

Signed-off-by: Holger Brunck <holger.brunck at keymile.com>
Signed-off-by: Valentin Longchamp <valentin.longchamp at keymile.com>
---

 include/configs/km/keymile-common.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/configs/km/keymile-common.h b/include/configs/km/keymile-common.h
index f3248bc..2fc1ea8 100644
--- a/include/configs/km/keymile-common.h
+++ b/include/configs/km/keymile-common.h
@@ -56,6 +56,10 @@
 #define CONFIG_LOADS_ECHO
 #define CONFIG_SYS_LOADS_BAUD_CHANGE
 
+#define CONFIG_AUTOBOOT_KEYED
+#define CONFIG_AUTOBOOT_PROMPT "Hit <SPACE> key to stop autoboot in %2ds\n"
+#define CONFIG_AUTOBOOT_STOP_STR        " "
+
 /* Support the IVM EEprom */
 #define	CONFIG_SYS_IVM_EEPROM_ADR	0x50
 #define CONFIG_SYS_IVM_EEPROM_MAX_LEN	0x400
-- 
1.8.3.1



More information about the U-Boot mailing list