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

原文地址:https://www.cnblogs.com/lianghong881018/p/10245280.html