2010-03-07 19:26:40     无法保存环境变量

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2010-03-07 19:26:40     无法保存环境变量

zhang zhihua (CHINA)

Message: 86921   

 

我在u-boot里修改环境变量如下:

 

bfin> set bootdelay 8

 

bfin> save

 

但是出现了如下提示:

 

bfin> save

Saving Environment to SPI Flash...

Erasing SPI flash...bfin>

 

复位之后发现环境变量没有保存成功,这是为什么呢?

 

而且当我在u-boot源文件里面修改环境变量后编译出来的u-boot在板子上也boot不起来,现在的环境变量如下:

 

bootargs=root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600

console=ttyBF0,57600

bootcmd=run ramboot

bootdelay=5

baudrate=57600

loads_echo=1

ipaddr=192.168.0.15

serverip=192.168.0.2

autoload=no

rootpath=/romfs

gatewayip=192.168.0.1

netmask=255.255.255.0

hostname=bf518f-ezbrd

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);sf probe 2;sf erase 0 0x40000;sf write $(lo

adaddr) 0 $(filesize)

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):

$(hostname):eth0:off

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial

,uart0,57600 console=ttyBF0,57600

ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsver

s=3

nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

stdin=serial

stdout=serial

stderr=serial

ethact=Blackfin EMAC

ethaddr=0A:3C:29:4B:46:B2

 

Environment size: 974/8188 bytes

TranslateQuoteReplyEditDelete

 

 

2010-03-07 19:41:25     Re: 无法保存环境变量

Mike Frysinger (UNITED STATES)

Message: 86924   

 

the truncated save output indicates that it did not work.  this usually happens because you didnt configure your environment settings correctly (offset/sector size/etc...).  check your settings.

QuoteReplyEditDelete

 

 

2010-03-07 20:08:22     Re: 无法保存环境变量

zhang zhihua (CHINA)

Message: 86925   

 

Hi,Mike,

 

where can I set it?Is in the /include/configs/bf518f-ezbrd.h ?

TranslateQuoteReplyEditDelete

 

 

2010-03-08 01:58:29     Re: 无法保存环境变量

Sonic Zhang (CHINA)

Message: 86929   

 

yes

QuoteReplyEditDelete

 

 

2010-03-08 10:55:30     Re: 无法保存环境变量

Mike Frysinger (UNITED STATES)

Message: 86958   

 

you never said what board you're using.  bf518f-ezbrd.h only matters if that's the actual board that you're using.

QuoteReplyEditDelete

Attachments

    Outcomes