- 积分
- 24
贡献113
飞刀33 FD
注册时间2016-4-5
在线时间4 小时
|
楼主 |
发表于 2016-4-8 11:01:59
|
显示全部楼层
现在参考网上的文章设置NFS启动,首先配置tftp,make a tftp directory Here we make /opt/tftpboot be a tftp directory.
# mkdir /tftpboot //该目录下链接有文件系统文件夹rootfs
# chmod 777 /tftpboot
(3) Open /etc/inetd.conf and edit it
# gedit /etc/inetd.conf
Add this line:
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot
(4)Restarting tftp service
#sudo /etc/init.d/openbsd-inetd restart
然后是NFS服务相关文件的修改配置启动,最后在开发板上uboot阶段设置环境参数:
setenv ipaddr 192.168.1.**
setenv serverip 192.168.1.**
setenv bootfile uImage
setenv nfsroot /tftpboot/rootfs
setenv bootargs_base 'setenv bootargs console=ttymxc0,115200'
setenv bootargs_nfs 'setenv bootargs ${bootargs} root=/dev/nfs rw ip=${ipaddr }:${serverip }:192.168.1.8:255.255.255.0::eth0:off nfsroot=${serverip}:${nfsroot},v3,tcp
setenv bootcmd_net 'run bootargs_base bootargs_nfs;bootm'
setenv bootcmd 'tftpboot uImage; run bootcmd_net'
saveenv
最后reset开发板,出现如下界面:
packet received
Receive from protocol 0x800
Got IP
len=544, v=45
sending UDP to 0801a8c0/00:0c:29:3b:4b:ef
packet received
packet received
Receive from protocol 0x800
Got IP
len=544, v=45
#sending UDP to 0801a8c0/00:0c:29:3b:4b:ef
packet received
packet received
Receive from protocol 0x800
Got IP
len=544, v=45
sending UDP to 0801a8c0/00:0c:29:3b:4b:ef
packet received
packet received
Receive from protocol 0x800
Got IP
len=544, v=45
sending UDP to 0801a8c0/00:0c:29:3b:4b:ef
packet received
packet received
Receive from protocol 0x800
Got IP
len=544, v=45
sending UDP to 0801a8c0/00:0c:29:3b:4b:ef
packet received
packet received
Receive from protocol 0x800
Got IP
len=544, v=45
sending UDP to 0801a8c0/00:0c:29:3b:4b:ef
packet received
packet received
Receive from protocol 0x800
Got IP
len=544, v=45
sending UDP to 0801a8c0/00:0c:29:3b:4b:ef
一直往下走,不知道怎么回事,虚拟机此时是可以ping通开发板的,这又是哪发生的问题啊
|
|