2013年11月11日 星期一

BeagleBoard系統安裝


BeagleBoard系統安裝 -

艾鍗學院筆記



1.SD卡格式化

參考網站

BeagleBoard-xM 教學筆記 - 安裝(重灌) Angstrom Demo microSD 格式化筆記 @ Ubuntu 10.04

a.下載mkcard.txt SD卡格式化,SD卡不一定在sdc的裝置上,要視情況更改。

sudo sh mkcard.txt /dev/sdc

b.有時候格式化完成之後還是會認不到SD卡上面的Boot的分割區,需要再下這行指令

sudo mkfs.msdos -F 32 /dev/sdc1 -n boot
sync

成功之後在PC插上SD卡,會看到兩個分個區/media/boot/media/Angstrom

2.安裝Angstrom LinuxOpenCV2.2

a.Narcissus網站http://narcissus.angstrom-distribution.org/自動產生MLOBootuImageroofts

可參考這個網站的設定,可根據需要自行調整。

Angstrom-Narcissus Online Image Builder running OpenCV

b.Narcissus產生的檔案複製到SD卡的boot分割區

# extract the files to the ./boot directory
tar --wildcards -xzvf [YOUR-DOWNLOAD-FILE].tar.gz  ./boot/*

# copy the files to sc-card boot partition.
cp boot/MLO-* /media/boot/MLO
cp boot/uImage-* /media/boot/uImage
cp boot/u-boot-*.bin /media/boot/u-boot.bin
sync

c.Narcissus產生的檔案複製到SD卡的Angstrom分割區

sudo tar -xvz -C /media/Angstrom -f [YOUR-DOWNLOAD-FILE].tar.gz
sync

sync
umount /media/boot
umount /media/Angstrom

SD卡插入BeagleBoard,第一次開機的時候會進行設定,要等一段時間才能夠開機成功。開機成功之後就可以在Beagleboard上面寫OpenCV相關應用程式。

可參考下列兩個網站

How To Install openCV on a BeagleBoard-XM with Angstrom OS
Installing Angstrom on the BeagleBoard-xM

3.安裝OpenCV2.4

只有OpenCV2.4才有提供人臉識別的功能,若要使用人臉識別功能就必須更新到OpenCV2.4

a.更換標頭檔案

OpenCV2.4資料夾下的opencvopencv2資料夾蓋過 /usr/include 下的opencvopencv2

b.更換lib檔案

可將OpenCV2.4資料夾下的lib資料夾中的檔案放到 /usr/lib

也可以自行重新編譯OpenCV2.4 Cross compile或直接在beagleboard板子上面編譯。

可以參考這個網站

Building OpenCV for ARM Cortex-A8

4.系統安裝參考資料

BeagleBoard-xM 教學筆記 - 安裝(重灌) Angstrom Demo microSD 格式化筆記 @ Ubuntu 10.04
How To Install openCV on a BeagleBoard-XM with Angstrom OS
Installing Angstrom on the BeagleBoard-xM
Angstrom-Narcissus Online Image Builder running OpenCV
Building OpenCV for ARM Cortex-A8

5.注意事項

l   若使用直接複製SD卡的方式安裝系統,登入idroot密碼為ittraining

l   Angstrom Linux預設螢幕保護程式,十分鐘以內沒有動作螢幕會沒有訊號。

l   要在 /etc/profile 加入 export DISPLAY:=0 Beagleboard的輸出設定為螢幕。

l   避免在接上電源的情況,在HDMI界面熱插拔,易造成板子損壞。

沒有留言:

張貼留言