|
本帖最后由 liangpan 于 2011-4-3 13:36 编辑
我想让开发板从NFS启动 。我的主机IP :192.168.0.3 虚拟机IP: 192.168.0.10 开发板IP设置为:192.168.0.6 。通过ping命令 三者可以相互ping通。 在设置启动的时候我按照下述方式设置:
Enter the PC IP address:(xxx.xxx.xxx.xxx)
192.168.0.10
Enter the SKY2440/TQ2440 IP address:(xxx.xxx.xxx.xxx)
192.168.0.6
Enter the Mask IP address:(xxx.xxx.xxx.xxx)
255.255.255.0
Enter NFS directory:(eg: /opt/EmbedSky/root_nfs)
/opt/EmbedSky/root_nfs
其中/opt/EmbedSky/root_nfs是我之前设置的共享目录 里边已经存放了文件系统等文件。虚拟机还有PC主机防火墙已经关闭 nfs服务也开通了 。并且编辑过NFS服务的配置文件。
结果出现了结果:
IP-Config: Complete:
device=eth0, addr=192.168.0.6, mask=255.255.255.0, gw=192.168.0.6,
host=SKY2440, domain=, nis-domain=embedsky.net,
bootserver=192.168.0.10, rootserver=192.168.0.10, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.10
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Looking up port of RPC 100005/1 on 192.168.0.10
VFS: Mounted root (nfs filesystem) on device 0:11.
Freeing init memory: 180K
Warning: unable to open an initial console.
usbcore: registered new interface driver rt73usb
initializing s3c2440 camera interface......
s3c2440 camif init done
Loading OV9650 driver.........
OV9650 address 0x60, manufacture ID 0xFFFF, expect 0x7FA2
OV9650 address 0x60, manufacture ID 0xFFFF, expect 0x7FA2
No OV9650 found!!!
Try to bring eth0 interface up ...
nfs: server 192.168.0.10 not responding, still trying
我在网上查找解决办法 发现有人说是:
问题的原因分析:1、NFS 的默认传输协议是 UDP,而PC机与嵌入式系统通过UPD交互时就会出现严重的网卡丢包现象;2、server机和目标机网卡传输速率冲突,使得目标机需要大量时间复制大量数据包,其实如果目标机的网卡速率够大,则不用分那么多包,也不会冲突。
他的解决办法是:
方法一:在客户端改用TCP协议,使用下面的命令,
#mount -o tcp,nolock host:/path/to/export /client/to/mount
方法二:指定传输速率(限定传输时一次读写的数据大小)
#mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 host:/path/to/export /client/to/mount
但是我不明白 后边两个/path/to/export /client/to/mount 的含义
这是为什么呢? 哪有出现问题了呢?求高手指点 |
|