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

采用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进行传输问题解决!

转载于:https://www.cnblogs.com/ape-ming/p/5100470.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值