您的位置:首页 > 其它

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

2012-11-25 17:17 471 查看

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!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: