nfs文件系統掛載失敗解決方法
1 錯誤提示
bootserver=255.255.255.255, rootserver=192.168.1.88, rootpath= VFS: Mounted root (nfs filesystem) on device 0:12. Freeing init memory: 136K nfs: server 192.168.1.88 not responding, still trying nfs: server 192.168.1.88 not responding, still trying
2 我的配置
MINI6410 # prin bootdelay=3 baudrate=115200 ethaddr=08:90:90:90:90:90 filesize=3ce68c fileaddr=C0008000 gatewayip=192.168.1.1 netmask=255.255.255.0 ipaddr=192.168.1.230 serverip=192.168.1.88 bootcmd=tftp c0008000 uImage ;bootm c0008000 bootargs=root=/dev/nfs nfsroot=192.168.1.88:/home/wildbook/Documents/nfsboot/rootfs_tiny6410 ip=192.168.1.230 console=ttySAC0,115200 init=/linc stdin=serial stdout=serial stderr=serial
- 通過我各種排查,發現自己都沒設置錯誤,在一個偶然的機會看到一帖tiny210 用 nfs 成功 mount 根文件系統 ,
上面講是nfs文件系統設置的問題,在后面加上proto=tcp,就可以解決問題
setenv bootargs root=/dev/nfs nfsroot=192.168.1.88:/home/wildbook/Documents/nfsboot/rootfs_tiny6410,proto=tcp ip=192.168.1.230 console=ttySAC0,115200 init=/linuxrc
