解决从ftp下载内核后自动启动的问题

硬件平台:OMAP-L138
软件平台:VMware7.1+Ubuntu9.10+linux2.6.32

实验目的:
从nandflash加载内核和文件系统,不使用nfs。

在UBoot中打印环境参数如下所示:
-------------------------------------------------------------------------------
U-Boot > printenv
bootdelay=3
baudrate=115200
bootfile="uImage"
ethaddr=0a:c1:a8:15:fa:c0
ethact=
seriverip=192.168.1.200
autostart=yes
filesize=F60000
fileaddr=C1180000
env=autostart=no
serverip=192.168.0.200
ipaddr=192.168.0.201
bootargs=mem=64M console=ttyS2,115200n8 root=/dev/nfs nfsroot=192.168.0.200:/opt/workspace/SEED-DEC138/nfs rw ip=192.168.0.201:192.168.0.1:255.255.255.0
bootcmd=tftp 0xc0700000 uImage;bootm
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.01 (Jan 06 2010 - 11:01:54)

Environment size: 488/131068 bytes

------------------------------------------------------------------------------------------------------

现在我在UBoot中输入“tftp 0xc0700000 uImage”,目的是想先将uImage下载到RAM中去,但是下载成功后就接着启动kernel了,使我不能将其烧写到flash。

出现这个问题的原因是因为“autostart”这个参数的问题,将其修改为“no”即可

修改方法:

在UBoot的命令行下输入:

setenv autostart no

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值