關於minicom詳細信息,還需要去網上收集些資料,推薦一個網址:
http://blog.csdn.net/commshare/article/details/6221392
這段時間老闆安排了畢設方向,關於視頻處理那塊,學習ubuntu-arm這塊就被定爲了“愛好”的地位了。好吧,還是喜歡這個愛好。
今天想驗證下nfs是否可用。找了個最簡單的hello,world C代碼運行。
1、交叉編譯環境是搭建好了
$arm-linux-gcc -o hello hello.c
2、$sudo /etc/init.d/nfs-kernel-server restart 重啓nfs
$sudo /etc/init.d/portmap restart 重啓portmap
$sudo showmount 192.168.0.2 -e 驗證nfs配置是否正常
回顯:clnt_create:RPC:port mapper failure -RPC:unable to receive
$sudo showmount -e
回顯:clnt_create:RPC:program not regisered(此處報錯不必理會)
3、ifconfig
查看到inet爲:192.168.0.16。問題就出在這了。
4、$sudo showmount 192.168.0.16 -e
回顯:export list for 192.168.0.16:
/opt/....../root_qtopia *
到這裏,我還一直都是做PC機上運行的。下面的命令也是:
$ sudo mount -t nfs -o nolock 192.168.0.16:/opt/...../root_qtopia /mnt
此處的/mnt爲PC系統的路徑,與開發板毫無關係。
$cd /mnt
$ls
你會看到確實把root_qtopia文件夾內的內容都掛載到/mnt下了。但這並不是我要的效果。我要的是開發板能用這個文件夾內的內容。
這也說明,nfs運行正常。
5、大膽假設,會不會上面的命令是在開發板上運行的呢?
【root@FriendlyARM】#mount -t nfs -o nolock 192.168.0.16:/opt/...../root_qtopia /mnt
#cd /mnt
#ls
bin etc lib mnt proc sbin tmp var
dev home linuxrc opt root sys usr www
遇到的問題可能都是簡單的,但對於我這樣的初學者,細節決定能不能堅持下去。希望對其他人也有用。!!