zoukankan      html  css  js  c++  java
  • 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!

  • 文章声明
  • 作者:Owen
  • 出处: http://www.cnblogs.com/owenyang
  • 本文版权归作者,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。该博客同步发在 HEXO-博客
查看全文
  • 相关阅读:
    解决Original error: Could not proxy command to remote server. Original error: Error: socket hang up
    python各进制转换
    爬楼梯问题,yield学习总结
    微信开放平台API开发资料
    数据切分——Atlas读写分离Mysql集群的搭建
    svn SSL 错误:Key usage violation in certificate has been detected
    如何将一个空间里的内容全部复制到另一个空间,文件名不变
    SVN客户端安装 Linux
    Web端即时通讯技术盘点:短轮询、Comet、Websocket、SSE
    搭建SVN服务器
  • 原文地址:https://www.cnblogs.com/owenyang/p/3579080.html
  • Copyright © 2011-2022 走看看