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


文章来源于: 电子工程世界原文链接

本站所有转载文章系出于传递更多信息之目的,且明确注明来源,不希望被转载的媒体或个人可与我们联系,我们将立即进行删除处理。

NFS挂载文件系统出现nfs is not responding,still trying | Hulu AI平台