日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Beaglebone Back学习三(开发环境搭建)

發布時間:2023/12/19 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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学习三(开发环境搭建)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。