Beaglebone Back学习三(开发环境搭建)
開(kāi)發(fā)環(huán)境搭建
1 Ubuntu環(huán)境搭建
2 Window環(huán)境搭建
3 開(kāi)發(fā)板環(huán)境搭建
1 Ubuntu環(huán)境搭建
(1)安裝必要的網(wǎng)絡(luò)工具
samba nfs tftp vmware-tools
samba
nfs
- apt-get install nfs-kernel-server?
- vim ?/etc/exports ?(/path/to/nfs ?*(rw,sync,no_root_squash)?)
- /etc/init.d/nfs-kernel-server restart
(2)配置通信網(wǎng)絡(luò)
指定網(wǎng)絡(luò)
2 Window環(huán)境搭建
指定網(wǎng)絡(luò)
3 開(kāi)發(fā)板環(huán)境搭建
nfs
- opkg install portmap-dev
- opkg install ufs-utils-client
- mount -t nfs ip:/path/to/nfs(對(duì)應(yīng)ubuntu的IP地址和nfs目錄)/mnt/nfs(對(duì)應(yīng)開(kāi)發(fā)板的) -o nolock,proto=tcp,nfsvers=3,回車后,雖然出現(xiàn)如下錯(cuò)誤,但不要管
Can't set permissions on mtab: Operation not permitted
- ls /mnt/nfs
安裝
beaglebone black搭建NFS環(huán)境
一、掛載型
1 虛擬機(jī)中的linux系統(tǒng)安裝好nfs服務(wù)器
/etc/init.d/nfs-kernel-server
2 編輯/etc/exports 添加對(duì)應(yīng)的nfs文件目錄
/path/to/nfs *(rw,sync,no_root_squash)
3在beaglebone上安裝兩個(gè)文件
opkg install portmap(portmap_6.0-r3.1_armv7a.ipk)
opkg install nfs(nfs-utils-client_1.1.2-2.1_armv7a.ipk)
該文件可以使用scp方法加載到beaglebone上
4 在arm上掛載nfs
mount -t nfs Ubuntu-IP:/path/to/nfs /arm-dir -o nolock,proto=tcp,nfsvers=3
注:Ubuntu-IP是虛擬機(jī)中的Ubuntu的IP地址,應(yīng)與beaglebone black板子在同一個(gè)網(wǎng)段;
arm-dir是板子上將要存放共享的文件目錄
path/to/nfs是虛擬機(jī)中Ubuntu中構(gòu)建NFS系統(tǒng)時(shí),設(shè)置的nfs路徑,也就是2中的路徑
5 常用操作:
重啟nfs服務(wù)器 $sudo /etc/init.d/nfs-kernel-server restart
解載 umount /arm-dir
mount -t nfs 192.168.7.10:/home/dlp/dlp/arm-bbb/bin /home/nfs -o nolock,proto=tcp,nfsvers=3
二、啟動(dòng)型
1 同上
2 同上
3 在BeagleBone啟動(dòng)的時(shí)候,敲回車,使得啟動(dòng)停在uboot部分
4 然后依次輸入
U-Boot# mmc rescan
U-Boot# setenv ipaddr arm-IP
U-Boot# setenv serverip Ubuntu-IP
U-Boot# setenv bootargs console=ttyO0,115200n8 root=/dev/nfs nfsroot=Ubuntu-IP:/path/to/nfs ip=arm-IP:Ubuntu-
IP:gateway:mask::eth0:off
U-Boot# run mmc_load_uimage
U-Boot#bootm 0x80007fc0
5 reset
?
?
?
?
?
參考鏈接
1?BeagleBone 的NFS啟動(dòng)配置和流程
2??Beaglebone Black從零開(kāi)始系列教程大匯總
3 ?Programming the Beaglebone Black?
4 ?Linux arm Beaglebone Black
5 buildroot for beaglebone
轉(zhuǎn)載于:https://www.cnblogs.com/gjianw217/p/3754026.html
總結(jié)
以上是生活随笔為你收集整理的Beaglebone Back学习三(开发环境搭建)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 小米空调c1有什么区别(小米科技有限责任
- 下一篇: 网络stk是什么意思(Cesium是什么