采用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进行传输问题解决!
posted on 2016-01-04 22:19  青春没有尾巴  阅读(2321)  评论(0编辑  收藏  举报