Talk:Setting up the codesourcery toolchain for X86 to ARM9 cross compiling

echo "##########################################" echo "#     Script for setting up all         #" echo "#   Codesourcery arm9 crosstoolchains   #" echo "#           by mindbender               #" echo "##########################################" echo " " echo "Creating folder for CROSSCOMPILING-Enviroment....."
 * 1) !/bin/sh

mkdir CROSSCOMPILING cd CROSSCOMPILING

echo " " echo ".... done" echo " " echo "Creating ./CROSSTOOLCHAINS for storing all toolchains....."

mkdir CROSSTOOLCHAINS cd CROSSTOOLCHAINS

echo " " echo "..... done" echo " " echo "Downloading Toolchains....."

wget http://downloads.nas-central.org/ALL_ARM9/DevelopmentTools/CrossToolchains/CodeSourcery/arm-2005q3-2-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 wget http://downloads.nas-central.org/ALL_ARM9/DevelopmentTools/CrossToolchains/CodeSourcery/arm-2007q1-21-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 wget http://downloads.nas-central.org/ALL_ARM9/DevelopmentTools/CrossToolchains/CodeSourcery/arm-2007q3-53-arm-none-eabi-i686-pc-linux-gnu.tar.bz2

echo " " echo "..... done" echo " " echo "Creating subfolders for the toolchains....."

echo "./CROSSCOMPILING/CROSSTOOLCHAINS/arm-2005q3" mkdir arm-2005q3

echo "./CROSSCOMPILING/CROSSTOOLCHAINS/arm-2007q1" mkdir arm-2007q1

echo "./CROSSCOMPILING/CROSSTOOLCHAINS/arm-2007q3" mkdir arm-2007q3

echo " " echo "..... done" echo " " echo "Untaring the toolchains....."

cd arm-2005q3 tar -xjvf ../arm-2005q3-2-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 cd .. cd arm-2007q1 tar -xjvf ../arm-2007q1-21-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 cd .. cd arm-2007q3 tar -xjvf ../arm-2007q3-53-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 cd ..

echo "..... done" echo " " echo "Downloading mkimage-binary....."

cd arm-2005q3 wget http://downloads.nas-central.org/ALL_ARM9/DevelopmentTools/CrossToolchains/mkimage cp mkimage ../arm-2007q1 cp mkimage ../arm-2007q3

echo " " echo "..... done" echo " " echo "Creating a symlink called USED_TOOLCHAIN pointing to the bin directory of the 2005q3 toolchain (default)"

cd .. ln -s ./CROSSTOOLCHAINS/arm-2005q3 USED_TOOLCHAIN

echo " " echo "..... done" echo " " echo Adding the folder to the path..... echo 'export PATH=~/CROSSCOMPILING/USED_TOOLCHAIN/bin:$PATH' >> ~/.bashrc echo " " echo "..... done" echo " " echo "Creating folder CROSSCOMPILING/COMPILING....."

mkdir COMPILING

echo " " echo "..... done" echo " " echo "Creating folder ./CROSSCOMPILING/COMPILING/KERNELS....."

mkdir COMPILING/KERNELS

echo " " echo "..... done" echo " " echo "FINISHED." echo " " echo "INFO: You need to open a new terminal for the enhanced PATH to come into effect." echo "Download the sourcecode to ./CROSSCOMPILING/COMPILING and compile it there :D" echo "ENJOY!"

exit 0;