进入u-boot界面,选择q退出主界面,进入
OpenJTAG>
1、从开发板根文件系统正常启动:
OpenJTAG>
set bootargs noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0
OpenJTAG>
save
2、使用NFS作为根文件系统启动
OpenJTAG>
set bootargs noinitrd root=/dev/nfs nfsroot=192.168.1.30:/work/nfs_root/temp/fs_mini_mdev
ip=192.168.1.20:192.168.1.30:192.168.1.1:255.255.255.0::eth0:off init=/linuxrc console=ttySAC0
OpenJTAG>
save
3、从u-boot里ping主机,ping通后,重新启动,则将使用NFS最为根文件系统启动
OpenJTAG>
ping 192.168.1.10
ERROR: resetting DM9000 -> not responding
dm9000 i/o: 0x20000000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:00:3e:26:0a:5b
could not establish link
checksum bad
checksum bad
checksum bad
host 192.168.1.10 is alive成功!
---------------------------------------------------------------------------------------------------------------------
nfsroot=[<server-ip>:]<root-dir>[,<nfs-options>]
ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>
/*
*nfsroot对应你pc机的IP和你解压的文件系统的路径,请酌情修改
* ip指定你的开发板的IP、服务器的ip、网关、掩码,掩码后面应该是域名(可省略)
* 再往后的,网卡eth0,不自动启动off
*/