All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] boot script
@ 2013-02-12 16:21 Collet, Stephane
  0 siblings, 0 replies; only message in thread
From: Collet, Stephane @ 2013-02-12 16:21 UTC (permalink / raw)
  To: u-boot

Hello,
 
I am new using U-boot. and I wondering whetjer you could help.
 
What I understood is that I can generate a file boot.scr to overwrite any setting done in u-boot.bin.
Is that correct?
 
To generate boot.scr I am using mkimage
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'NAND installer' -d uEnv1.txt boot.scr

But in my script file I do not manage to change the setting of my arguments:
I am nou sure of the two line

setenv bootargs 'rootdelay=1 ip=192.168.1.10:192.168.1.255:192.168.1.1:255.255.255.0:devkit:eth0:off'
saveenv

If they are well written, if they are well located in mycsript file ?

I am using the a board based on AM3517

-------------------
nand erase.chip clean
setenv bootdelay 2

mmc rescan 0

fatload mmc 0:1 $loadaddr MLO
nandecc hw 2; nand erase 0 80000
nand write $loadaddr 0 80000

fatload mmc 0:1 $loadaddr NAND-u-boot.bin
nandecc sw; nand erase 80000 160000
nand write $loadaddr 80000 160000

setenv bootargs 'rootdelay=1 ip=192.168.1.10:192.168.1.255:192.168.1.1:255.255.255.0:devkit:eth0:off'
saveenv

fatload mmc 0:1 $loadaddr NAND-uImage
nandecc hw; nand erase 280000 400000
nand write $loadaddr 280000 400000
fatload mmc 0:1 $loadaddr uImage

run mmcboot
-------------------

Best regards
Stephane

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-12 16:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-12 16:21 [U-Boot] boot script Collet, Stephane

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.