首页 > 其他 > 详细

NFS挂载文件系统出现nfs is not responding,still trying

时间:2016-01-04 23:57:06      阅读:304      评论:0      收藏:0      [点我收藏+]

采用NFS挂载根文件系统启动开发板出现:

1 nfs xxx is not responding,still trying
2 nfs xxx is OK
3 nfs xxx is not responding,still trying
4 ...............
不断的出现没有回应。。成功。。要很长时间才能启动开发板
 
解决办法:
修改uboot启动配置
uboot之前的启动配置:
1 setenv bootargs noinitrd console=ttySAC0,115200 init=/init root=/dev/nfs rw nfsroot=192.168.1.130:/home/ming/windowsshar/nfs/rootfs ip=192.168.1.58:192.168.1.130:192.168.1.1:255.255.255.0::eth0:off
修改之后的启动配置:
1 setenv bootargs noinitrd console=ttySAC0,115200 init=/init root=/dev/nfs rw nfsroot=192.168.1.130:/home/ming/windowsshar/nfs/rootfs,proto=tcp,nfsvers=3,nolock ip=192.168.1.58:192.168.1.130:192.168.1.1:255.255.255.0::eth0:off
注意:开发板IP地址、服务器IP地址和NFS服务器目录需要根据自己的实际情况修改
 
在之前的启动配置下增加了红色部分,因为NFS默认采用UDP进行传输中途容易丢包,所以修改成TCP进行传输问题解决!

NFS挂载文件系统出现nfs is not responding,still trying

原文:http://www.cnblogs.com/ape-ming/p/5100470.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!