在这儿贴一下mx51的uboot的log信息和环境变量设置吧,以备忘掉。
bootdelay=3
baudrate=115200
loadaddr=0x90800000
netdev=eth0
ethprime=FEC0
uboot_addr=0xa0000000
uboot=u-boot.bin
kernel=uImage
bootargs_base=setenv bootargs console=ttymxc0,115200
bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp
bootcmd=run bootcmd_net
bootcmd_net=run bootargs_base bootargs_nfs; tftpboot ${loadaddr} ${kernel}; bootm
load_uboot=tftpboot ${loadaddr} ${uboot}
ethact=FEC0
bootargs=console=ttymxc0,115200 root=/dev/nfs ip=192.168.2.130 nfsroot=192.168.2.104:/tftpboot/rootfs,v3,tcp
serverip=192.168.2.196
ipaddr=192.168.2.130
stdin=serial
stdout=serial
stderr=serial
Environment size: 596/131068 bytes
BBG U-Boot >
如果要用nfs启动kernel和root file system需要使用下面的变量设置:
setenv bootargs "noinitrd root=/dev/nfs rw nfsroot=192.168.0.1:/tftpboot/rootfs ip=192.168.0.2:192.168.0.1::255.255.255.0 console=ttySAC0,115200 init=/linuxrc mem=64M"
setenv bootcmd "nfs 0x30008000 192.168.0.1:/home/tekkaman/working/nfs/zImage.img;bootm"
serenv kernel uImage
setenv serverip 192.168.2.104
setenv ipaddr 192.168.2.130
saveenv
阅读(2307) | 评论(0) | 转发(0) |