Code:
serverip=10.0.0.159
gatewayip=10.0.0.1
netmask=255.255.255.0
bootargs_end=:::DB88FXX81:eth0:none
ipaddr=10.0.0.42
console=console=ttyS0,115200 mtdparts=nand_mtd:0x00100000@0x00000000(uboot),0x00500000@0x00100000(uImage),0x1fa00000@0x00600000(rootfs)
boottftp=tftpboot 0x2000000 uImage.sheeva.20090319
bootnand=nand read.e 0x2000000 0x00100000 0x00500000
bootargs_nand=root=/dev/mtdblock2 rw
bootargs_nfs=root=/dev/nfs rw nfsroot=10.0.0.159:/tftpboot/root-ubuntu
bootcmd=run bootnand;setenv bootargs $(console) $(bootargs_nand) ip=$(ipaddr):$(serverip)$(bootargs_end);bootm 0x2000000
bootcmd_nand=run bootnand;setenv bootargs $(console) $(bootargs_nand) ip=$(ipaddr):$(serverip)$(bootargs_end);bootm 0x2000000
bootcmd_nfs=run boottftp;setenv bootargs $(console) $(bootargs_nfs) ip=$(ipaddr):$(serverip)$(bootargs_end);bootm 0x2000000
gatewayip=10.0.0.1
netmask=255.255.255.0
bootargs_end=:::DB88FXX81:eth0:none
ipaddr=10.0.0.42
console=console=ttyS0,115200 mtdparts=nand_mtd:0x00100000@0x00000000(uboot),0x00500000@0x00100000(uImage),0x1fa00000@0x00600000(rootfs)
boottftp=tftpboot 0x2000000 uImage.sheeva.20090319
bootnand=nand read.e 0x2000000 0x00100000 0x00500000
bootargs_nand=root=/dev/mtdblock2 rw
bootargs_nfs=root=/dev/nfs rw nfsroot=10.0.0.159:/tftpboot/root-ubuntu
bootcmd=run bootnand;setenv bootargs $(console) $(bootargs_nand) ip=$(ipaddr):$(serverip)$(bootargs_end);bootm 0x2000000
bootcmd_nand=run bootnand;setenv bootargs $(console) $(bootargs_nand) ip=$(ipaddr):$(serverip)$(bootargs_end);bootm 0x2000000
bootcmd_nfs=run boottftp;setenv bootargs $(console) $(bootargs_nfs) ip=$(ipaddr):$(serverip)$(bootargs_end);bootm 0x2000000
The bootcmd_nand and bootcmd_nfs are just storage. Copy the desired boot type to the bootcmd variable and use "saveenv" to save it.
In the example, it is booting from nand flash.





