您的位置:首页 > 其它

设置自动启动的等待时间

2010-10-30 11:37 337 查看
这个是根据uboot的环境变量bootdelay来决定的。

Richard # printenv

bootargs=root=/dev/mtdblock2 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115200

bootcmd=nand read.i c0008000 80000 500000;bootm c0008000

baudrate=115200

ethaddr=08:90:90:90:90:90

ipaddr=192.168.1.230

serverip=192.168.1.88

gatewayip=192.168.1.1

netmask=255.255.255.0

bootdelay=1

stdin=serial

stdout=serial

stderr=serial

Environment size: 323/131068 bytes

Richard # setenv
bootdelay 5

Richard # saveenv

Richard # printenv

bootargs=root=/dev/mtdblock2 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115200

bootcmd=nand read.i c0008000 80000 500000;bootm c0008000

baudrate=115200

ethaddr=08:90:90:90:90:90

ipaddr=192.168.1.230

serverip=192.168.1.88

gatewayip=192.168.1.1

netmask=255.255.255.0

bootdelay=5

stdin=serial

stdout=serial

stderr=serial

Environment size: 323/131068 bytes

ok,这样下次启动就会等5秒钟了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: