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