The most commonly used build version is arm-linux-gcc-3.4.1 and arm-linux-3.3.2, now embedded development basically use these, 3.4.1 is used to compile 2.6 kernel, and 3.3.2 is commonly used to compile busybox, if the compilation version does not work well with bootloader (u-boot), errors may occur. Therefore, you must select a compiled version. If this version does not work, try other versions, arm-elf-tools-20030314 is usually used in uClinux.
Http://www.handhelds.org/download/projects/toolchain/arm-linux-gcc-3.4.1.tar.bz2
Http://www.handhelds.org/download/projects/toolchain/arm-linux-gcc-3.3.2.tar.bz2
If versions 3.4.1 and 3.3.2 are installed in the system. in bashrc, set path to specify the default version gcc3.4.1, and then open a new terminal. If 3.3.2 is required, you can specify the path (/usr/local/ARM/3.3.2/bin/ARM-Linux -).
In ~ /. Bashrc: Export Path = $ path:/usr/local/ARM/3.4.1/bin
If you specify version 3.3.2 when compiling U-boot or busybox:
Cross_compile =/usr/local/ARM/3.3.2/bin/ARM-Linux-
3.4.1 you can simply use arm-Linux.
Arm-linux-gcc-4.2.1 version in http://ftp.snapgear.org: 9981/pub/snapgear/tools/ARM-Linux/here can be downloaded, arm-linux-tools-20070808.tar.gz this may be 4.2.1 version, because below there is a way to compile 4.2.1 there are corresponding code packages, build-arm-linux-4.2.1, this version was too large and I didn't download it.
The following is an official download link for ARM 4.2.1 at http://www.codesourcery.com/gnu_toolchains/arm/download.html. Then, select host32 GNU/Linux and click Download. However, the prefix is arm-None-Eabi-instead of arm-Linux-a little depressing.
Compiling a cross-compiling environment by yourself is a very difficult process, and some software depends on different versions. Therefore, it is quite time-consuming and laborious to maintain a self-built environment, the main difference between ARM-elf-toochain is that the C library used during compilation is different. Arm-Linux uses glibc, arm-elf uses newlibc, and ulibc, you can collect specific information on the Internet. Generally, arm-Linux-is used for compiling ARM + LINUX, while arm-elf-is used for compiling uClinux-
This is some websites I found on the Internet that download the cross-compilation environment.
1. http://ftp.arm.linux.org.uk/pub/armlinux/toolchain
[] Cross-2.95.3.tar.bz2 20-jul-2001 m
[] Cross-3.0.tar.bz2 20-jul-2001 m
[] Cross-3.2.tar.bz2 23-aug-2002 81 m
[] Cross-3.2.tar.gz 23-aug-2002 93 m
1. http://opensrc.sec.samsung.com/download.html
GCC 3.4.0 based:
Arm-uclinux-tools-base-gcc3.4.0-20040713.sh (binutil-2.15 based)
Arm-uClinux-tools-C ++-gcc3.4.0-20040713.sh
Arm-uclinux-tools-gdb-20040713.sh
GCC 2.95.3 based:
Arm-elf-tools-20040427.sh by hyok, APR 27,200 4. (binutil-2.14/linux-2.6.5 based)
Arm-elf-tools-20040305.sh by hyok, Mar 5, 2004. (binutil-2.14 based)
2. http://www.handhelds.org/download/projects/toolchain/
[]Arm-linux-gcc-3.3.2.tar.bz2 03-nov-2003 m
[]Arm-linux-gcc-3.4.1.tar.bz2 29-jul-2004 41 m
3. http://linux.omap.com/pub/toolchain/
[Export obsolete-gcc-3.3.2.tar.bz2 15-may-2004 M
4. http://ftp.snapgear.org: 9981/pub/snapgear/tools/ARM-Linux/
5. http://www.uclinux.org/pub/uClinux/arm-elf-tools/
6. http://www.w-ww.org /~ Rmoravcik/sbc2410/toolchains/arm-linux-gcc-4.1.2-moko.
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/chenzhixin/archive/2007/05/15/1609315.aspx