nfs:server is not responding,still trying 原因与解决方案

1. 开发环境:
1. VMware 装 Redhat 6.0

2. 开发板:UP-Magic 2410
2. 问题:
通过NFS挂载目录,加载驱动程序到开发板的时候,出现 “ nfs: server 172.23.33.43 not responding, still trying
2.1当时挂载命令:
“up-tech:/# mount -t nfs -o nolock 172.23.33.43:/home/magic /mnt”
3. 查阅信息,得出原因:
NFS 的默认传输协议是 UDP,而PC机与嵌入式系统通过UPD交互时就会出现严重的网卡丢包现象。在目标板上通过NFS复制PC机上较大文件到目标板上的时候会遇到这种问题。
4. 解决方法:
1. nfs mount时候出现的NFS崩溃,按照以下的方式mount即可
“up-tech:/ # mount -t nfs -o nolock,rsize=4096,wsize=4096 172.23.33.43:/home/magic  /mnt”
2.  在客户端改用TCP协议,使用下面的命令(本人未测试)
“#mount -o tcp 10.10.19.25:/home/export /mnt/local”
5.本人当时加载驱动完整代码(4*4矩阵键盘):       
up-tech:/ #mount -t nfs -o nolock,rsize=4096,wsize=4096 172.23.33.43:/home/magic /mnt
up-tech:/ #cd /mnt
up-tech:/mnt #cd push_buttons//driver/
up-tech:/mnt/push_buttons/driver #insmod magicKeys.ko
KEYSkeys initialized
up-tech:/mnt/push_buttons/driver #cd ..
up-tech:/mnt/push_buttons #cd test/
up-tech:/mnt/push_buttons/test #ls
Makefile          magicKeys_test    magicKeys_test.c
up-tech:/mnt/push_buttons/test #./magicKeys_test
S1 pressed!

转载于:https://www.cnblogs.com/owenyang/archive/2012/11/25/3579080.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值