From 2d0e83c5190242bcadbcabbb6e737fc74a7cf90c Mon Sep 17 00:00:00 2001
From: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de>
Date: Sat, 29 Oct 2022 13:22:29 +0200
Subject: [PATCH] use CONFIG_AUTOBOOT_KEYED to only let autoboot be interrupted
 by the space character

When connecting a FTDI FT232RL usb to ttl uart adapter to the reform
with TX, RX and GND but not connecting that adapter to another machine
via usb, then the adapter will send garbage signals to the reform during
boot. These will interrupt autoboot and prevent the reform from booting
until either the RX/TX/GND are disconnected or the adapter is connected
via USB to another machine.

To prevent this from happening, do not interrupt autoboot on any key
press but require the space key to be pressed.
---
 mntreform-config | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/mntreform-config b/mntreform-config
index 2608aa5fe8a..fa2d99a4475 100644
--- a/mntreform-config
+++ b/mntreform-config
@@ -390,7 +390,12 @@ CONFIG_SYS_PROMPT="=> "
 # Autoboot options
 #
 CONFIG_AUTOBOOT=y
-# CONFIG_AUTOBOOT_KEYED is not set
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds -- press space key to stop\n"
+# CONFIG_AUTOBOOT_ENCRYPTION is not set
+CONFIG_AUTOBOOT_DELAY_STR=" "
+CONFIG_AUTOBOOT_STOP_STR=" "
+# CONFIG_AUTOBOOT_KEYED_CTRLC is not set
 
 #
 # Commands
-- 
GitLab