Beaglebone Back学习三(开发环境搭建)
開發環境搭建
1 Ubuntu環境搭建
2 Window環境搭建
3 開發板環境搭建
1 Ubuntu環境搭建
(1)安裝必要的網絡工具
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)配置通信網絡
指定網絡
2 Window環境搭建
指定網絡
3 開發板環境搭建
nfs
- opkg install portmap-dev
- opkg install ufs-utils-client
- mount -t nfs ip:/path/to/nfs(對應ubuntu的IP地址和nfs目錄)/mnt/nfs(對應開發板的) -o nolock,proto=tcp,nfsvers=3,回車后,雖然出現如下錯誤,但不要管
Can't set permissions on mtab: Operation not permitted
- ls /mnt/nfs
安裝
beaglebone black搭建NFS環境
一、掛載型
1 虛擬機中的linux系統安裝好nfs服務器
/etc/init.d/nfs-kernel-server
2 編輯/etc/exports 添加對應的nfs文件目錄
/path/to/nfs *(rw,sync,no_root_squash)
3在beaglebone上安裝兩個文件
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是虛擬機中的Ubuntu的IP地址,應與beaglebone black板子在同一個網段;
arm-dir是板子上將要存放共享的文件目錄
path/to/nfs是虛擬機中Ubuntu中構建NFS系統時,設置的nfs路徑,也就是2中的路徑
5 常用操作:
重啟nfs服務器 $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
二、啟動型
1 同上
2 同上
3 在BeagleBone啟動的時候,敲回車,使得啟動停在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啟動配置和流程
2??Beaglebone Black從零開始系列教程大匯總
3 ?Programming the Beaglebone Black?
4 ?Linux arm Beaglebone Black
5 buildroot for beaglebone
轉載于:https://www.cnblogs.com/gjianw217/p/3754026.html
總結
以上是生活随笔為你收集整理的Beaglebone Back学习三(开发环境搭建)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 小米空调c1有什么区别(小米科技有限责任
- 下一篇: 网络stk是什么意思(Cesium是什么