1. Install Ubuntu 8.04 (this is the Linux distribution used for development)
2. Create folder CodeSourcery in $HOME:
mkdir $HOME/CodeSourcery
3. Extract all files to folder CodeSourcery:
bizp2 -d arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
tar -xf arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar
Note: The extracted folder should be: $HOME/CodeSourcery/arm-2007q3
4. Add to path the directory $HOME/CodeSourcery/arm-2007q3/bin
PATH=$PATH:$HOME/CodeSourcery/arm-2007q3/bin
5. To verify the correct installation use the following:
arm-none-linux-gnueabi-gcc
Note:
The result should be: arm-none-linux-gnueabi-gcc: no input files
Verify Path if you obtain a different result
Note: This requires Sourcery G++
1. Have ready hello.c (hello world) and compile it:
arm-none-linux-gnueabi-gcc -o hello hello.c
2. Copy hello to the SD card
On the Beagle Board
3. Execute on the Beagle Board:
./hello
hello.c( hello world)
_____________________________________________________________
#include <stdio.h>
int
main (void)
{
printf("Hello World!\n");
return 0;
}
_____________________________________________________________