一看本文浏览量巨增,但这本是我为了方便的个人记录,顺便给出我当初学习的参考文档:<<四、U-boot的使用(一)>>(点击进入)
PING环境变量:
setenv ipaddr 192.168.1.230;setenv serverip 192.168.1.229;setenv netmask 255.255.255.0;setenv gatewayip 192.168.1.1;setenv ethaddr 00:01:02:03:04:05;saveenv
ok6410用nfs挂载根文件系统:
setenv bootargs noinitrd root=/dev/nfs rw nfsroot=192.168.1.229:/opt/FriendlyARM/ok6410/linux/3filesystem/MY6410_yaffs2_v3.0 ip=192.168.1.230:192.168.1.1::255.255.255.0 console=ttySAC0,115200 init=/linuxrc mem=256M lcdsize=43
ok6410nandflash挂载根文件系统:
setenv bootargs "root=/dev/mtdblock2 rootfstype=cramfs console=ttySAC0,115200 lcdsize=70"
ok6410用tftp引导内核:
setenv bootcmd 'tftp ok6410/zImage;bootm 50008000'
ok6410用nandflash引导内核:
bootcmd=nand read 0xc0008000 0x100000 0x500000;bootm 0xc0008000
mini2440:
setenv bootargs noinitrd root=/dev/nfs rw nfsroot=192.168.1.229:/opt/kangear/mini2440/3fs/rootfs_qtopia_qt4 ip=192.168.1.230:192.168.1.1::255.255.255.0 console=ttySAC0,115200 init=/linuxrc mem=64M
x210 nandflash启动:
setenv bootargs 'console=ttySAC0,115200 root=/dev/mtdblock4 rw init=/linuxrc rootfstype=jffs2';setenv bootcmd 'nand read C0008000 600000 500000; bootm C0008000';saveenv
x210 tftp引导Linux内核:
setenv bootcmd 'tftp C0008000 x210/zImage; bootm C0008000';saveenv