2009-11-13 01:05:26     Why I can't save the environment variables?

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

2009-11-13 01:05:26     Why I can't save the environment variables?

zhang zhihua (CHINA)

Message: 82336   

 

When I modified the environment variables,I find it can't save!the board I use is ADSP-BF518F EZ-Board™;

 

For example,I set it like this:

 

frist,I loaded the u-boot to the SPI flash via the VDSP++, loaded the 'vmImage' to the serial flash,loaded the 'rootfs.jffs2'to the Parallel flash;then I set the environment variables like this:

 

'

 

bfin> set sfboot 'sf probe 2;sf read 0x1000000 0x40000 0x140000;bootm 0x1000000

 

bfin>set bootcmd run sfboot

 

bfin>save

 

Saving Environment to Flash...

. done

Un-Protected 1 sectors

Erasing Flash...

. done

Erased 1 sectors

Writing to Flash... done

. done

Protected 1 sectors

 

bfin> set bootargs root=/dev/mtdblock0 rw rootfstype=jffs2 clkin_hz=25000000 ear

lyprintk=serial,uart0,57600 console=ttyBF0,57600

 

bfin>save

 

'

 

then I reset the board,it run!but if reset it again,it can't work!

 

tell that :

 

Using Blackfin EMAC device

TFTP from server 192.168.0.2; our IP address is 192.168.0.15

Filename 'uImage'.

Load address: 0x1000000

Loading: *

 

Why?H ow to deal with  it?

TranslateQuoteReplyEditDelete

 

 

2009-11-13 01:18:38     Re: Why I can't save the environment variables?

zhang zhihua (CHINA)

Message: 82338   

 

and when I use 'printenv'to view the environment variables ,I find the environment variables I set last time was lost !

TranslateQuoteReplyEditDelete

 

 

2009-11-13 10:01:10     Re: Why I can't save the environment variables?

Mike Frysinger (UNITED STATES)

Message: 82357   

 

do not use VDSP, and make sure you're using the right LDR file for your boot source

Attachments

    Outcomes