Uboot » 历史记录 » 版本 4
om 经理1, 2020-08-10 14:04
1 | 4 | <p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">U-BOOT使用<br/>从SD卡启动按空格进入uboot菜单:</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">tftp 自动烧写参数:<br/>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"</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">sd/mmc 自动烧写参数:<br/>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"</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">IP参数设置:<br/>setenv ipaddr 192.168.0.5 板上IP 地址<br/>setenv serverip 192.168.0.8 电脑上IP 地址,IP必须与连接的电脑IP相同<br/>setenv gatewayip 192.168.0.1 网关<br/>setenv netmask 255.255.255.0 掩码</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">saveenv 保存参数</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">printenv 查看参数</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">fatls mmc 0:1 查看SD卡文件</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">setenv bootdelay 0 设置uboot启动倒计时间<br/>saveenv 保存参数</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">sd/mmc 烧写命令:<br/>nand rescrub<br/>fatload mmc 0:1 c0000000 u-boot.bin<br/>nand write c0000000 0 40000<br/>fatload mmc 0:1 32000000 zImage<br/>nand erase 100000 300000<br/>nand write 32000000 100000 300000<br/>fatload mmc 0:1 32000000 rootfs.yaffs2<br/>nand erase 800000 4000000<br/>nand write.yaffs 32000000 800000 $filesize</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">tftp 烧写命令:<br/>nand rescrub<br/>tftp c0000000 u-boot.bin<br/>nand write c0000000 0 40000<br/>tftp 32000000 zImage<br/>nand erase 100000 300000<br/>nand write 32000000 100000 300000<br/>tftp 32000000 rootfs.yaffs2<br/>nand erase 800000 4000000<br/>nand write.yaffs 32000000 800000 $filesize</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">完整擦除nand flash<br/>nand scrub</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">关闭控制台:<br/>setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 init=/linuxrc console=null</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">开启控制台:<br/>setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 init=/linuxrc console=ttySAC0,115200<br/>setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 init=/linuxrc console=ttySAC1,115200</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">saveenv 保存参数</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">开启控制台(UBIFS):<br/>setenv bootargs root=ubi0:rootfs rootfstype=ubifs console=ttySAC0,115200 ubi.mtd=2 init=/linuxrc rootflags=sync</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">关闭控制台(UBIFS):<br/>setenv bootargs root=ubi0:rootfs rootfstype=ubifs console=null ubi.mtd=2 init=/linuxrc rootflags=sync</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">开启控制台(128M RAM):<br/>setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 mem=64M@0x30000000 mem=64M@0x38000000 init=/linuxrc console=ttySAC0,115200</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">关闭控制台(128M RAM):<br/>setenv bootargs root=/dev/mtdblock3 rootfstype=yaffs2 mem=64M@0x30000000 mem=64M@0x38000000 init=/linuxrc console=null</p><p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);">内存查看命令:<br/>free</p><p><br/></p><p><a href="/redmine/attachments/download/265/A6%20uboot%E8%87%AA%E5%8A%A8%E7%83%A7%E5%86%99%E8%AE%BE%E7%BD%AE.txt" target="_self" textvalue="A6 uboot自动烧写设置.txt">A6 uboot自动烧写设置.txt</a><span style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);"> </span></p> |
---|