Installation Tools for arm + linux bare metal environment setup (gcc and gdb)

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.