#设置IP
setenv ipaddr 192.168.2.174
setenv serverip 192.168.2.10
setenv ethaddr fc:64:21:55:a4:12
#在u-boot中烧写u-boot
tftp 30000000 u-boot.bin
nand erase bootloader
nand write 30000000 bootloader
#在uboot中烧写内核
tftp 30000000 uImage
nand erase kernel
nand write.jffs2 30000000 kernel
#在uboot中烧写文件系统
tftp 30000000 fs_mini_mdev.yaffs2
nand erase root
nand write.yaffs 30000000 0x00260000 $(filesize)
tftp 30000000 fs_qtopia.jffs2
nand erase root
nand write.jffs2 30000000 0x00260000 $(filesize)