从SD卡启动按空格进入uboot菜单: tftp 自动烧写参数: setenv bootcmd "nand rescrub;sleep 1;tftp c0000000 u-boot.bin ;sleep 1;nand write c0000000 0 40000;sleep 1;tftp 32000000 zImage;sleep 1;nand erase 100000 300000;sleep 1;nand write 32000000 100000 300000;sleep 1;tftp 32000000 rootfs.yaffs2;sleep 1;nand erase 800000 4000000;sleep 1;nand write.yaffs 32000000 800000 $filesize;tftp 32000000 zImage;sleep 1;tftp 30800000 uramdisk;sleep 1;bootm 32000000 30800000" sd/mmc 自动烧写参数: setenv bootcmd "nand rescrub;sleep 1;fatload mmc 0:1 c0000000 u-boot.bin ;sleep 1;nand write c0000000 0 40000;sleep 1;fatload mmc 0:1 32000000 zImage;sleep 1;nand erase 100000 300000;sleep 1;nand write 32000000 100000 300000;sleep 1;fatload mmc 0:1 32000000 rootfs.yaffs2;sleep 1;nand erase 800000 4000000;sleep 1;nand write.yaffs 32000000 800000 $filesize;fatload mmc 0:1 32000000 zImage;sleep 1;fatload mmc 0:1 30800000 uramdisk;sleep 1;bootm 32000000 30800000" IP参数设置: setenv ipaddr 192.168.0.5 板上IP 地址 setenv serverip 192.168.0.8 电脑上IP 地址,IP必须与连接的电脑IP相同 setenv gatewayip 192.168.0.1 网关 setenv netmask 255.255.255.0 掩码 saveenv 保存参数 printenv 查看参数 fatls mmc 0:1 查看SD卡文件 setenv bootdelay 0 设置uboot启动倒计时间 saveenv 保存参数 sd/mmc 烧写命令: nand rescrub fatload mmc 0:1 c0000000 u-boot.bin nand write c0000000 0 40000 fatload mmc 0:1 32000000 zImage nand erase 100000 300000 nand write 32000000 100000 300000 fatload mmc 0:1 32000000 rootfs.yaffs2 nand erase 800000 4000000 nand write.yaffs 32000000 800000 $filesize tftp 烧写命令: nand rescrub tftp c0000000 u-boot.bin nand write c0000000 0 40000 tftp 32000000 zImage nand erase 100000 300000 nand write 32000000 100000 300000 tftp 32000000 rootfs.yaffs2 nand erase 800000 4000000 nand write.yaffs 32000000 800000 $filesize 完整擦除nand flash nand scrub 关闭控制台: setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 init=/linuxrc console=null 开启控制台: setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115200 setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 init=/linuxrc console=ttySAC1,115200 saveenv 保存参数 开启控制台(UBIFS): setenv bootargs root=ubi0:rootfs rootfstype=ubifs console=ttySAC0,115200 ubi.mtd=2 init=/linuxrc rootflags=sync 关闭控制台(UBIFS): setenv bootargs root=ubi0:rootfs rootfstype=ubifs console=null ubi.mtd=2 init=/linuxrc rootflags=sync 开启控制台(128M RAM): setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 mem=64M@0x30000000 mem=64M@0x38000000 init=/linuxrc console=ttySAC0,115200 关闭控制台(128M RAM): setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 mem=64M@0x30000000 mem=64M@0x38000000 init=/linuxrc console=null 内存查看命令: free