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

你好!可以将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.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值