8 Development Tools
User Manual 285/374
How to install the toolchain
1. Download the toolchain "powerpc-gcc-4.4.3-uclib.tar.gz" from STW FTP - 32-/64-Bit
URL:ftp://stw-connectivity.net/ (see ftp://stw-connectivity.net/ - ftp://stw-connectivity.net/)
TC1/DeploymentPackage_vX_XXrX/devkit_vX_XXrX/toolchain/linux/ (see example image below)
Example:
2. Unzip the compressed toolchain "powerpc-gcc-4.4.3-uclib.tar.gz" - 32-/64-Bit
3. Configure shell to use the toolchain - 32-/64-Bit
To use the toolchain under the shell, set the environmental variables. Open the ".bashrc" file
~$ sudo gedit ~/.bashrc
4. Add the following lines at the end of file:
# Export the Environment variable for the ppc
export CROSS_COMPILE=powerpc-stw-linux-uclibc-
export PATH="/opt/powerpc-gcc-4.4.3-uclib/bin/:"/opt/powerpc-gcc-4.4.3-
uclib/bin/:${PATH}
export ARCH=powerpc
Save the changes and close the terminal. After reopening the cross compiler is available.
5. Optional step, when a 64 bit operating system is used:
Activate an i386 architecture on the 64 bit system with
sudo apt-get install libc6-i386