[U-Boot] boot script
Collet, Stephane (GE Aviation)
stephane.collet at ge.com
Tue Feb 12 17:21:41 CET 2013
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
More information about the U-Boot
mailing list