EBC Exercise 08a Cross-Compiling

This class is about developing software for embedded Linux. The eLinux site is a good source for embedded Linux in general. There are many ongoing embedded efforts going on many platforms. Poke around the site a while to get a feel for what's happening.

We are going to use the Ångström Distribution. It's available many platforms. Look around the site, you may recognize some of them.

Step 1: Get my setup from dfs
I like to keep all things Beagle in a BeagleBoard directory. Here's how to match my setup: $ cd $ mkdir BeagleBoard $ cd BeagleBoard $ sftp username@dfs.rose-hulman.edu Connecting to dfs.rose-hulman.edu... username@rose-hulman.edu's password: sftp> cd Users/Y/yoder/Shared/BeagleBoard sftp> ls sftp> get oe.tar.gz exit $ tar xvf oe.tar.gz $ cd oe This will take a while since it's a large file (XX G). Once you have everything in place you need to create the script that will get the environmental variables. $ ./oebb.sh config beagleboard This will create the file  and make sure your repositories are up to date. You can now compile your own kernel via: $ source ~/.oe/environment-2008 $ bitbake linux

Step N: Get the setup script and correct it
Instructions for building Ångström are given here; however there are a few changes you have to make. Here's what I did. I have everything in a, so here is how I setup things: $ cd $ mkdir -p BeagleBoard $ cd BeagleBoard $ git clone git://git.angstrom-distribution.org/setup-scripts oe $ cd oe This creates a directory for open embedded and gets the script to download Ångström. What files do you see?

Edit  and replace every place you find

git://git.openembedded.org/openembedded

with

git://git.openembedded.org/openembedded.git

Save the file and then run

MACHINE=beagleboard ./oebb.sh update This will bring in all the tools you need.