[Linux] Beagleboard xM installation
The Beagle-board xM is a brilliant Linux machine with an OMAP3 ARM processor from TI [USA]. It clocks at 1GHz, 512Mb ram, 5 USB ports, a DVI-D port, network, serial, audio-in-out, S Video, requires 5V power input and can take a micro-SD [bootable]. All of this brilliance for [if new] €100, the size of 8x8cm (!!!!!!). This peripheral can run mostly anything with a little hassle, and it will be the heart of the new Space Camera Live project due to launch in Nov 2011.
Anyway, it comes with a 4Gb MicroSD that contains an Ängstrom distribution, which is slow, lame and truly sucks. That is why i installed Ubuntu immediatelly. I chose the newest 11.04 with the (old) GNOME GUI.
The rest of this epistel is about installing that ubuntu, and making OpenCV work on the beagleboard.
1: Make a boot MicroSD
Use at least 4Gb. 8Gb highly recommended(!). Run the following on a linux machine:
Get prebuilt image:
tar xJf ubuntu-11.04-r0-minimal-armel.tar.xz cd ubuntu-11.04-r0-minimal-armel
Insert a MicroSD; and check which device it is, (here we say its sdX).
Quick Install script
sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle
! Default user: ubuntu pass: temppwd
Insert the MicroSD in the Beagle and boot
Just connect it to a screen, and make sure you have a ethernet connection, since we are going to make the GUI work. Lets assume the ethernetport is eth1.
sudo ifconfig -a sudo dhclient eth1 sudo apt-get update sudo apt-get install xfce4 gdm xubuntu-gdm-theme xubuntu-artwork xserver-xorg-video-omap3 network-manager
Now you’re going to have to wait ~30 minutes, and you’re done!
You will now have a very stripped version of ubuntu with the gnome GUI. You should install all kinds of things, like the synaptics package manager, update manager, gedit, svn, gnome-themes, firefox, etc-etc-etc.
I’m in it for the webcams, so i needed OpenCV to work to play around with.
This was a hard one to crack, but finally after following a few walkthroughs this came out as the best way to do this. Installing OpenCV on the beagleboard xm with ubuntu.
apt-get install build-essential apt-get install cmake cmake-gui apt-get install pkg-config apt-get install libpng12-0 libpng12-dev libpng++-dev libpng3 apt-get install libpnglite-dev libpngwriter0-dev libpngwriter0c2 apt-get install zlib1g-dbg zlib1g zlib1g-dev apt-get install libjasper-dev libjasper-runtime libjasper1 apt-get install pngtools libtiff4-dev libtiff4 libtiffxx0c2 libtiff-tools apt-get install libjpeg8 libjpeg8-dev libjpeg8-dbg libjpeg-progs apt-get install ffmpeg libavcodec-dev libavcodec52 libavformat52 libavformat-dev apt-get install libgstreamer0.10-0-dbg libgstreamer0.10-0 libgstreamer0.10-dev apt-get install libxine1-ffmpeg libxine-dev libxine1-bin apt-get install libunicap2 libunicap2-dev apt-get install libdc1394-22-dev libdc1394-22 libdc1394-utils apt-get install swig apt-get install libv4l-0 libv4l-dev apt-get install python-numpy apt-get install libpython2.6 python-dev python2.6-dev apt-get install libjpeg-progs libjpeg-dev
Now install SVN
apt-get install subversion
Now go to a directory that downloads the OpenCV build you need, and make it install there by stating
svn co https://code.ros.org/svn/opencv/trunk
Now open the CMake GUI from your applications list, and choose the previous folder as source code, and make it compile somewhere else. For this, just click configure – OK – configure, generate [maybe checkbox some other stuff you want like examples]. In my experience you should check more than the examples as extra’s, for instance the 3rd party stuff is partly dependant on old packages and you’ll get errors..
Then close down the cmake gui.
Go to the folder you made the build in, and say
This takes roughly one hour.
And that’s it, it works!