Step 1:
Copy the arm-linux-gcc-4.3.2.tgz file to the/forlinx directory of Ubuntu, which is located in the user base
In the "utility" folder of the basic data disk. Create a new terminal in Ubuntu and enter the following command to install the cross
Compiler:
# Cd/forlinx
(Go to the/forlinx directory)
# Mkdir/usr/local/arm
(Create a directory. If the directory already exists, an error will be prompted. skip this step)
# Tar zxvf arm-linux-gcc-4.3.2.tgz-C/usr/local/arm
Compressed compiler package
The "4.3.2" Directory will be generated under the/usr/local/arm/directory.
Compiler
In this way, the kernel or other applications are/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc
To specify the cross compiler. For example, we can view the version of this compiler and run
#/Usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc
If the compiler is correctly installed, information such as the version of the compiler will be displayed ,:
Step 2:
1. Copy the cross-4.2.2-eabi.tar.bz2 file to the/forlinx directory of Ubuntu.
2. Run the command #: cd/forlinux to enter the forlinux directory.
3 # mkdir/usr/local/arm
(Create a directory. If the directory already exists, an error will be prompted. skip this step)
4 # tar-xv-f arm-linux-gcc-4.3.2.tgz-C/usr/local/arm
(Decompress it to the/usr/local/arm directory)
From sunstars2009918