[PATCH 5/5] configs: iot2050: Enabled keyed autoboot

Jan Kiszka jan.kiszka at siemens.com
Thu Jul 27 06:34:56 CEST 2023


From: Jan Kiszka <jan.kiszka at siemens.com>

Only accept SPACE to stop autobooting. This is safer to avoid accidental
interruptions on unattended devices.

Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
---
 configs/iot2050_defconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configs/iot2050_defconfig b/configs/iot2050_defconfig
index b5a50d4fa4a..bcbaa92ee89 100644
--- a/configs/iot2050_defconfig
+++ b/configs/iot2050_defconfig
@@ -36,6 +36,10 @@ CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTSTAGE=y
 CONFIG_SHOW_BOOT_PROGRESS=y
 CONFIG_SPL_SHOW_BOOT_PROGRESS=y
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_FLUSH_STDIN=y
+CONFIG_AUTOBOOT_PROMPT="Hit SPACE to stop autoboot in %d seconds...\n"
+CONFIG_AUTOBOOT_STOP_STR=" "
 CONFIG_BOOTCOMMAND="run start_watchdog; run distro_bootcmd"
 CONFIG_CONSOLE_MUX=y
 # CONFIG_DISPLAY_CPUINFO is not set
-- 
2.35.3



More information about the U-Boot mailing list