bootcmd=if mmc init; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run nandboot; fi; fi; else run nandboot; fi
bootdelay=10
baudrate=115200
bootfile=uImage
loadaddr=0x82000000
usbtty=cdc_acm
console=ttyS2,115200n8
mmcargs=setenv bootargs console=${console} root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
nandargs=setenv bootargs console=${console} root=/dev/mtdblock4 rw rootfstype=jffs2
loadbootscript=fatload mmc 0 ${loadaddr} boot.scr
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}
loaduimage=fatload mmc 0 ${loadaddr} uImage
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
nandboot=echo Booting from nand ...; run nandargs; onenand read ${loadaddr} 280000 400000; bootm ${loadaddr}
stdin=serial
stdout=serial
stderr=serial
dieid#=139600211ff00000015a5e590e018014
ethact=smc911x-0
filesize=24A29C
//=====================================
setenv nandboot 'echo Booting from nand ...; run nandargs; nand read ${loadaddr} 280000 400000; bootm ${loadaddr}'
setenv loadaddr '0x80200000' //
setenv console 'ttyS0,115200n8' //............down-
setenv mtdids 'nand0=nand_mtd'
setenv mtdparts 'mtdparts=nand_mtd:0x120000@0(uboot)ro,0x400000@0x280000(kernel)ro,0x1000000@0x1000000(RootFS)ro'
setenv nandargs=setenv bootargs console=${console} $(mtdparts) root=/dev/mtdblock3 rw rootfstype=cramfs
setenv nandboot 'echo Booting from nand ...; run nandargs; nand read ${loadaddr} 280000 400000; bootm ${loadaddr}'
//======================================
1
tar -xzvf iperf-2.0.4.tar.gz
cd iperf-2.0.4
2
export CC=xxx-gcc
export CXX=xxx-g++
./configure --prefix=/root --host=arm-linux
make
3.
tftp -g -r iperf xx.xx.xx.xx
4.
chmod +x iperf
iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------