The host environment for this article is Ubuntu6.06-1 Desktop Edition
Kernel: 2.6.15-26
gcc:4.0.3
---------------------------------------------------Reprint Please specify: xiaobin_hlj80----
Z. Pre-Preparation 1. Set up a virtual machine
installing with ISO files
(1) Installing the live system
Select the text installation option, "Start or install Ubuntu".
(2) Install to Local
After entering the live desktop, click "Install" to complete the installation.
2. Installing GCC
System CD Installation
Choose Binutils and Build-essential
First, the host environment
1. Update source (1) Modify Source Address
#sudo gedit/etc/apt/sources.list
Will http://cn.archive.ubuntu.com
Change to
Http://old-releases.ubuntu.com
(2) Update Source Address
#sudo apt-get Update
2. Installing Gawk
#sudo Apt-get Install Gawk
Change awk to Gawk
#sudo update-alternatives--config awk
3. Installing dependent Packages
#sudo Apt-get Install Bison Flex
Y. Install Crosstool 1. Unzip
#tar ZXVF crosstool-0.4.3.tar.gz
2. Configuration directory
The following actions are in the user root directory
(1) Create a target folder
#sudo Mkdir/opt/crosstool
#sudo chown $USER/opt/crosstool
(2) Create a download folder
New Downloads Directory
#mkdir Downloads
Copy the following files to downloads
A) glibc-2.3.6.tar.bz2
b) binutils-2.15.tar.bz2
c) gcc-3.4.5.tar.bz2
D) linux-2.6.8.tar.bz2
e) linux-libc-headers-2.6.12.0.tar.bz2
f) glibc-linuxthreads-2.3.6.tar.bz2
3. Performing the installation
#./demo-arm-softfloat.sh
Reference article: Crosstool-howto
Making Arm cross-compilation toolchain using Crosstool