1. Install arm-linux-gcc-4.3.2
1. Download the installation package arm-linux-gcc-4.3.2.tgz
2. Run the following command to install
Tar-ivzxf arm-linux-gcc-4.3.2.tgz-C/(install to the specified root directory C represents change)
3. Run gedit/root/. bashrc or vim/etc/profile to modify the environment variable.
Add the last line in the Open File
Export PATH = $ PATH:/usr/local/arm/4.3.2/bin
4. Make the change take effect immediately: source/root/. bashrc or source/etc/profile
5. Check whether the environment variable echo $ PATH has been added
6. Check whether arm-linux-gcc-v is successfully installed. The corresponding version number is output.
Note: If you have installed the cross-compilation chain, we recommend that you delete the previous version before installation.
Rm-rf/usr/local/arm
Install arm-linux-gdb-7.5.tar.gz
1、download the installation package arm-linux-gdb-7.5.tar.gz
2. Run the following command to install
Tar-ivzxf arm-linux-gdb-7.5.tar.gz-C/usr/local (install to the specified root directory C Indicates change)
3. Run the tar-ivzxf command.
Gdb-7.5.tar.gz
4. Go to the gdb-7.5 folder and configure
Run the command:./configure -- target = arm-linux -- prefix =/usr/local/arm-linux.
Target = arm-linux indicates that the target platform for debugging is arm-linux;
Prefix =/usr/local/arm-linux indicates the installation path of the client.
3. Execute the command: make may encounter this error during compilation.
No termcap library found
This is because the ncurses-devel package is not installed. There are two ways to solve this problem.
A. Execute yum install
Ncurses-devel, but I don't know why I couldn't find this package while using it,
It should be a database source problem, but I do not understand it.
B. Method 2: copy the files in the disk directly.
Then execute the installation command rpm-ivh ncurses-devel-5.7-3.2009.2.8.el6.i686.rpm on the line
4. Execute make to compile
5. Run make install!
Here, we have installed the cross-compilation link and debugging tool.