learning uboot enable protect console

时间:2023-03-09 08:09:30
learning uboot enable protect console

reference :https://github.com/lentinj/u-boot/blob/master/doc/README.autoboot

how to enable protect sonsole in uboot stage ?

we can add follow contest in include/configs/xxxx.h

+// add by panzidong for support  protect uboot console

+#define CONFIG_AUTOBOOT_KEYED 1

+#define CONFIG_AUTOBOOT_PROMPT "Press passwd to abort autoboot in %d seconds"

+#define CONFIG_AUTOBOOT_DELAY_STR "ldgw"

+#define CONFIG_AUTOBOOT_STOP_STR "\x1b"

+//#define DEBUG_BOOTKEYS 1