2009-07-13 22:04:32     Re: u-boot macro automate

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

2009-07-13 22:04:32     Re: u-boot macro automate

chandu v (MALAYSIA)

Message: 77152   

 

Hi,

 

am using Bf537-stamp, and u-boot 1.1.6. i loaded Asterisk uImage via TFTP , everything fine.

 

but when i start the board in the next day i cant see the asterisk on my board.i need to load the sae image

 

when i start the board. how can i make it permanent.

 

some one suggested me to make the u-boot macro  automate.

 

what file i need to chage , where it reside.

 

Reagrds

 

chandu

QuoteReplyEditDelete

 

 

2009-07-14 00:23:20     Re: u-boot macro automate

Mike Frysinger (UNITED STATES)

Message: 77154   

 

please read the documentation:

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:env

QuoteReplyEditDelete

 

 

2009-07-14 04:56:06     Re: u-boot macro automate

chandu v (MALAYSIA)

Message: 77195   

 

Hi,

 

thanks for  reply, i read the document but am not fuly understand how to do,

 

here is my board env information of my board. can u pls check n direct me where ot make changes.

 

 

 

bootargs=root=/dev/mtdblock0 rw

bootdelay=2

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=BF537

loadaddr=0x1000000

ramargs=setenv bootargs root=/dev/mtdblock0 rw

nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath)

addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

ramboot=tftpboot $(loadaddr) linux;run ramargs;run addip;bootelf

nfsboot=tftpboot $(loadaddr) linux;run nfsargs;run addip;bootelf

update=tftpboot $(loadaddr) u-boot.bin;protect off 0x20000000 0x2007FFFF;erase 0x20000000 0x2007FFFF;cp.b 0x1000000 0x20000000 $(filesize)

ethact=BF537 ETHERNET

filesize=E6C8

ethaddr=00:e0:22:fe:5c:65

flashboot=bootm 0x20020000

bootcmd=run flashboot

stdin=serial

stdout=serial

stderr=serial

 

Environment size: 864/8188 bytes

 

 

regards

 

chandu

QuoteReplyEditDelete

 

 

2009-07-14 05:16:58     Re: u-boot macro automate

Mike Frysinger (UNITED STATES)

Message: 77197   

 

like the documentation says, the 'bootcmd" variable controls what gets executed automatically.  set it to whatever you want it to do.

QuoteReplyEditDelete

 

 

2009-07-14 22:04:03     Re: u-boot macro automate

chandu v (MALAYSIA)

Message: 77278   

 

Hi Mike,

 

i did it, now i able to get the asterisk ,

 

Thanks alot.

 

Regards

 

Chandu

Attachments

    Outcomes