嵌入式開發問題累計——NFS

NFS搭建

在拿到別人的內核鏡像直接啓動, PC這邊已經設置好並測試過,啓動參數也設置好了

Bootargs=console=ttySAC0,115200 root=/dev/nfsroot nfsroot=192.168.1.112:/home/nfsroot,tcp mem=128m ip=192.168.1.20:192.168.1.112:192.168.1.1:255.255.255.0:::

結果在啓動過程中發現

Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.1.112
Root-NFS: Unable to get mountd port number from server, using default

於是乎去看看內核的配置,結果make menuconfig中沒有選擇NFS support,選之,make之。

重新將新的zImage燒寫到nand上,問題依然,

重新審視PC端的nfs(centos6.3  rpcbind+nfs)

雖然我在PC上進行測試能正確的mount,但是利用rpcinfo -p命令進行觀察端口映射關係時,沒有發現nfs。懷疑rpc沒有正常運作nfs, 先重啓rpcbind


Service rpcbind restart
Service nfs restart
Rpcinfo -p
   100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    2   tcp   2049  nfs_acl
    100227    3   tcp   2049  nfs_acl
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs

終於有了,重啓板子再試。成功進入。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章