Disable command line access for uboot
Fariya F
fariya.fatima03 at gmail.com
Tue Sep 7 07:33:33 CEST 2021
Hi,
I am using a very old version of uboot the following is the modification I
made to disable command line access in uboot
1) disable all autoboot options like AUTOBOOT_KEYED, AUTOBOOT_PROMPT,
AUTOBOOT_DELAY_STR, AUTOBOOT_STOP_STR, AUTOBOOT_KEYED_CTRLC
2) In common/autoboot.c file I am unconditionally calling disable_ctrlc(1)
before the call to run_command_list(s, -1, 0) in the function
autoboot_command()
Can someone confirm directly calling disable_ctrlc(1) is OK and that no
other key combination will stop the execution? I just don't want users to
modify any thing on the bootloader prompt and so disabling the access
completely to cmd prompt.
Regards
Fariya
More information about the U-Boot
mailing list