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進行傳輸問題解決!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM