Build your own toolchian for AllWinner A10

Enviornment:
i686 GNU/Linux, Ubuntu 10.04.4 LTS Lucid

You can easily install Linaro arm cross-compiler on Ubuntu as follows:
sudo apt-get install gcc-arm-linux-gnueabihf
OR
download it from launchpad.net:
https://launchpad.net/linaro-toolchain-binaries/+download

Install the build dependencies:
* sudo apt-get build-dep gcc binutils gdb
* sudo apt-get install lsb lsb-build-cc3 lsb-appchk3 ccache
* sudo apt-get install gcc-mingw32 gcc-4.1 g++-4.1 gcc-4.1-multilib g++-4.1-multilib
* sudo apt-get install texlive flip

Build Linaro
Get source crosstool-NG linaro
wget -c http://launchpad.net/linaro-toolchain-binaries/trunk/2012.07/+download/crosstool-ng-linaro-1.13.1-2012.07-20120720.tar.bz2
wget -c http://launchpadlibrarian.net/110971174/gcc-linaro-arm-linux-gnueabihf-2012.07-20120720_src.tar.bz2
mkdir -p build-linaro; cd build-linaro
tar xvf crosstool-ng-linaro-1.13.1-2012.07-20120720.tar.bz2
tar xvf gcc-linaro-arm-linux-gnueabihf-2012.07-20120720_src.tar.bz2

cd crosstool-ng-linaro-1.13.1-2012.07-20120720
ln -sf ../gcc-linaro-arm-linux-gnueabihf-2012.07-20120720_src tarballs
make -f contrib/linaro/build.mk

Should be work, still building …

To be continue …

Advertisements

About xlcwu

Self-employed (One-man Company), Developer/Chief Designer/Consultant, Embedded Linux/NAS/Storage/Platform/Devices, Xcode/Cocos2D/Cocoa/Objective-C, at Joe’s Lab – Newland ESP (TM).
This entry was posted in Embedded, Linux, Ubuntu and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s