lichee開發板搭建nfs

2021-06-23 04:59:23 字數 2030 閱讀 8493

1)進入device driver

2)選擇並進入network device support,然後選擇ethernet driver support

----->  3)在ethernet driver support中選擇sun7i emac devices

4)返回到network device support,選擇phy device support and infrastructure

------> 5)選擇drivers for realtek phys

1)返回到general setup,選擇file systems

2)在file systems中選擇network file systems

3)選擇nfs client support

接下來編譯核心。。。

將sun7i_linux_evb-v10.img映象燒到開發板上

1)配置/etc/network/inte***ces如下

2)執行/etc/init.d/s40network start,network開始可用,這時你執行ifconfig,會列印關於網絡卡的一些資訊

為了每次開機自動執行s40network這個指令碼,將"/etc/init.d/s40network start &"新增到rcs中。

s40network的內容如下:

1、在主機上

1)sudo apt-get install nfs-kernel-server

2)開啟/etc/exports檔案,在末尾加入

/home/lei_wang/root_qtopia *(rw,sync,no_root_squash)

要共享的目錄   允許所有網段訪問  資料同步寫入記憶體和磁碟  nfs客戶端共享目錄使用者許可權

3)重啟服務

sudo /etc/init.d/portmap restart

sudo /etc/init.d/nfs-kernel-server restart

showmount -e

4)可在本機上先試一下sudo mount -t nfs localhost:/home/xgc /mnt   (localhost是本機ip)

2、在開發板上

由於上面的步驟已經配置使開發板支援nfs,且開發板作為client端,主機是server端。

將主機的目錄/home/lei_wang/root_qtopia掛載到開發板上,開發板就可以訪問主機的資料夾了。

sudo mount -o nolock 192.168.1.172:/home/lei_wang/root_qtopia /mnt

主機ip位址      主機設定的共享目錄

sudo umount /mnt

注:如果是windows上的virtualbox則網路連線方式選擇橋接方式 bridged adapter

設定乙個有線的ip位址與windows不一樣

關於防火牆sudo ufw disable

搭建nfs除錯arm開發板

嵌入式開發應用,如果每次都從新燒錄檔案系統比較浪費時間,所以使用nfs是個比較不錯的方法,linux作為nfs伺服器端,arm作為客戶端。1.ubuntu安裝配置nfs,並做本地測試 sudo apt get install nfs kernel server 1安裝好之後做配置,修改 etc ex...

訊為開發板 TFTP和NFS搭建

scp k4b4g,則記憶體 大小是 k4b4gx4 2g 搭建tftp伺服器 在ubnutu cd var tftpboot 有乙個可執行檔案test 開發板ping不通ubnutu怎麼辦?1 關掉無線網絡卡,開啟有線網絡卡 2 在同乙個網段 開發板的securecrt,退出 ctrl c shi...

nfs掛載到開發板

nfs掛載到開發板 一直沒有什麼寫技術文章的好習慣,哈哈,只是有的時候自己解決了一些問題自娛自樂,自顧自的得意一會,然後今天想把今天碰到的問題以及解決的過程寫出來,希望能給一些剛好碰到該問題的童鞋一些幫助。好了廢話不多說了,以前一直在看,現在自己也動手一會,哈哈 二 配置 etc exports檔案...