This article illustrates how to install on a Ubuntu Linux PC the complete toolchain to cross compile the Linux Kernel, the Linux device drivers, the Linux applications, C and C++ applications and the boot loader AT91Bootstrap and derivates (CORE9G25Boot).

I tested on a PC with Linux Ubuntu Version 12.04. If you are running Ubuntu 10.04 read this post.

Install the gcc tools in your ubuntu system, if you have insatll the gcc on your PC, don't need to do it again.

sudo apt-get install build-essential
sudo apt-get install libncurses5-dev
sudo apt-get install mtd-utils
sudo apt-get install u-boot-tools

Install Cross-Compile tools

get the source code from here: 

Copy the arm-2011.09-70-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 and  mkubifsimage  to /tmp folder and uncompress it to the /opt/codesourcery/, the tools was in the CD://linux/tools/ folder.

# sudo mkdir /opt/codesourcery/
# sudo tar -jxvf /tmp/arm-2011.09-70-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 -C /opt/codesourcery/
# sudo cp /tmp/mkubifsimage /bin/
# sudo chmod 777 /bin/mkubifsimage

Add Path in your environment file
Modify your ~/.bashrc file to add a new path with editor (gedit or vi)

# gedit ~/.bashrc

add the follow into the .bashrc file

export PATH=/opt/codesourcery/arm-2011.09/bin:$PATH

To apply this change, login again or restart the .bashrc

# source ~/.bashrc

Check it:

# arm-none-linux-gnueabi-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
…
gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70)

Now you are ready to cross-compile on your PC all the source available for the CORE9G25 Boards based on ATMEL AT91SAM CPUs.


Market Mail : market@armdevs.com
Support Mail: support@armdevs.com Sales Phone: +86-755-29638421


CoreWind Online Chat>
Work time: 09:00-18:00
Copyright @ 2014 to 2020 - CoreWind Tech.