免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1503 | 回复: 1
打印 上一主题 下一主题

uClinux下挂载nfs失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-09-22 14:03 |只看该作者 |倒序浏览
宿主机Fedora4,设定IP地址192.168.253.1
启动开发板上烧录的uClinux,其IP地址是192.168.253.2
开启宿主机上的nfs服务,其中/etc/exports是这么设置的:
/home/uClinux-dist/user/Myapp 192.168.253.0/255.255.255.0 (rw)
uClinux执行如下
/>;portmap &

/>; mount -t nfs 192.168.253.1:/home/uClinux-dist/user/Myapp /var/temp
mount: RPC: Unable to receive; errno = No route to host
mount: nfsmount failed: Bad file descriptor
mount: Mounting 192.168.253.1:/home/uClinux-dist/user/Myapp on /var/temp failedypid 19: failed 256

但ping宿主机是可以的
/>; ping 192.168.253.1
PING 192.168.253.1 (192.168.253.1): 56 data bytes
64 bytes from 192.168.253.1: icmp_seq=0 ttl=64 time=0.0 ms
64 bytes from 192.168.253.1: icmp_seq=1 ttl=64 time=0.0 ms
64 bytes from 192.168.253.1: icmp_seq=2 ttl=64 time=0.0 ms
64 bytes from 192.168.253.1: icmp_seq=3 ttl=64 time=0.0 ms

--- 192.168.253.1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.0/0.0/0.0 ms
(0.0ms怎么回事?时间太短了??)

从宿主机也可以ping开发板
# ping 192.168.253.2
PING 192.168.253.2 (192.168.253.2) 56(84) bytes of data.
64 bytes from 192.168.253.2: icmp_seq=0 ttl=64 time=0.748 ms
64 bytes from 192.168.253.2: icmp_seq=1 ttl=64 time=0.721 ms
64 bytes from 192.168.253.2: icmp_seq=2 ttl=64 time=0.723 ms
64 bytes from 192.168.253.2: icmp_seq=3 ttl=64 time=0.725 ms

--- 192.168.253.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.721/0.729/0.748/0.022 ms, pipe 2

宿主机iptables设置
-A RH-Firewall-1-INPUT -p udp -m udp --dport 111 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 2049 -j ACCEPT

请问各位前辈,问题出在哪里了?谢谢 :em12:

论坛徽章:
0
2 [报告]
发表于 2005-09-22 14:08 |只看该作者

uClinux下挂载nfs失败

看一下 /etc/nsswitch.conf

另外请教,uClinux 交叉编译好弄吗?我想玩玩
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP