EBC Exercise 25 Configuring U-boot

From eLinux.org
Revision as of 17:48, 30 March 2011 by Yoder (Talk | contribs)

Jump to: navigation, search


This follows the approach taken in ECE597 Configuring the Kernel. We'll use bitbake to get the source files for U-boot and then we'll edit them.

bitbake

When you did ECE497 Lab02 Installing The Angstrom Distribution u-boot was downloaded and compiled. If you used the default configure, the source code was removed once it was done. Check and see:

$ cd ~/BeagleBoard/oe/build/tmp-angstrom_2008_1/work/beagleboard-angstrom-linux-gnueabi/
$ ls

You should see a directory starting with u-boot-. The rest of the name tells what version you have. Change to that directory and see what's there:

$ cd u-boot-*
$ ls

If you see a git directory, you are in luck. If you see just a temp directory you need to go back to ECE497 Lab02 Installing The Angstrom Distribution and get it installed.

Once you have the git directory, cd to it and look around.

Compiling U-boot

You can now compile U-boot. Make the following file called source-me.txt.

export OETREE="${HOME}/oe"
export ARCH=arm
export CROSS_COMPILE=arm-angstrom-linux-gnueabi-

PATH=${OETREE}/angstrom-dev/staging/i686-linux/usr/bin/:${PATH}
PATH=${OETREE}/angstrom-dev/cross/armv7a/bin/:${PATH}

Save the file and enter:

$ source source-me.txt

Now a simple make should compile U-boot.

Assignment: Modify u-boot to include your initials in the prompt.

Hint: Look for the omap3_beagle.h file.