关闭

嵌入式 Change U-Boot_bootdelay_setting(进入uboot的方法)

904人阅读 评论(0) 收藏 举报
分类:

你好!可以将bootdelay改为0

#defineCONFIG_BOOTDELAY   //3

From Texas Instruments Wiki

Jump to: navigation, search
Change U-Boot bootdelay setting

Halt U-Boot from automatically booting the processor by startingthe system while pressing ctrl-C.

Background

The "bootdelay" variable in U-Boot indicates how long U-Boot willwait before it begins booting the system into Linux. Usually, yousee it set to 'bootdelay=3' or 'bootdelay=5'; which will give theuser 3 (or 5) seconds to type any key and stop the system frombooting. The main reason to stop the system from booting is tochange the arguments U-Boot passes to the Linux kernel during boot;for example, changing the 'bootargs' U-Boot variable so that theroot file system uses an NFS directory as opposed to a hard discdrive.

Occasionally, though, someone may set 'bootdelay=0'. This wouldprevent anyone from interrupting the boot process and changing theU-Boot configuration. While this may be advantageous in aproduction system (i.e., saves 3 seconds on system boot), it can bebothersome during development.

If this happens, and you want to regain access to U-Bootconfiguration, try using ctrl-C.

When U-Boot starts, even if "bootdelay=0", it still checks forctrl-C, so there still is a possibility of it halting.

Other options are to reload the U-Boot program using an externalemulator, such as Code Composer Studio. This would, in effect,force U-Boot back to its default settings. But, if you're justneeding to halt boot, the ctrl-C option will be much easier.

 

 

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:979785次
    • 积分:17634
    • 等级:
    • 排名:第540名
    • 原创:741篇
    • 转载:522篇
    • 译文:0篇
    • 评论:105条
    最新评论