server is not responding,still trying解决方法
时间:2009-04-13 来源:tanhai007
周末在自己的内核中移植了DM9000网卡的驱动程序,按照书上的步骤移植成功,板子启动后设好ip能够和开发主机ping通,能够挂载主机上的文件夹,但是不能通过挂载主机的根文件系统启动,还有一个问题就是将nfs文件夹中的文件复制到板子上时,超过20k左右的文件会发生出错。出现:
nfs:server is not responding,still trying
nfs:server is not responding,still trying
在网上找到了解决方法
(转){nfs:server is not responding,still trying} 解决办法
原文地址:http://hi.baidu.com/rjz78/blog/item/a3e6e7ee6276512e2cf53447.html
描述:在arm上通过NFS共享文件时出现下面的错误提示
nfs:server is not responding,still trying
原因分析:NFS 的默认传输协议是 UDP,而PC机与嵌入式系统通过UPD交互时就会出现严重的网卡丢包现象。
解决方法:在客户端改用TCP协议,使用下面的命令,
#mount -t nfs -o nolock -o tcp 192.168.1.161:/opt /opt
以此估计不能通过nfs挂载根文件系统启动的原因也是这个,于是修改uboot中的环境变脸bootargs ,修改传递给内核的启动参数,将nfs客户端的传输协议改成tcp协议:
set bootargs noinitrd root=/dev/nfs console=ttySAC0 \
nfsroot=192.168.5.195:/work/nfs_root/fs_mini,tcp ip=192.168.5.193:192.168.5.195:192.168.5.195:255.255.255.0::eth0:off
修改后板子能正常通过nfs挂载文件系统启动。网卡移植成功。