Get arm's cross-compilation toolchain under Linux

Please indicate the article when reprinting: Obtaining arm's cross-compilation toolchain under Linux  Source: Multi-blog blog

Here, we will introduce the cross-compilation toolchain for arm under Linux, such as arm-linux-gnueabihf-gcc, arm-linux-gneabihf-gcc, etc.

foreword

Here is a special statement:

"arm-linux-gnueabihf-gcc is an ARM cross-compilation tool launched by Linaro based on GCC. It can be used to cross-compile all the codes in the ARM system, including bare metal programs, u-boot, Linux kernel, filesystem and App applications. .When used, depending on the host platform, one of the following versions can be downloaded with the same result:

  1. Linux decompression version: It can be used directly after decompression on Linux hosts (such as Ubuntu, RedHat, etc.). Recommended way!
  2. Windows installation version: Use after installation under Windows system.
  3. Source version: cross compiler source code, generally rarely used.

arm-linux-gneabihf-gcc is similar to CodeSourcery's arm-none-linux-gnueabi-gcc, and can be used to compile all links based on the ARM platform. CodeSourcery's cross-compilation tool was released earlier, from 2005 to the present. Linaro is a non-profit company jointly developed by ARM, Freescale, IBM, Samsung, ST-Ericsson and TI and other manufacturers to develop common software for system-on-chip (SoC) platforms of different semiconductor companies. Linaro was established in 2010 and released the first version of the software tool for performance optimization of SoCs with ARM Cortex-A as the core in November of that year.

The download address of arm-none-linux-gnueabi-gcc is as follows, which are directly transferred from the Linaro official website to the address of the domestic cloud disk, which is convenient for domestic users to choose and download. Since there are so many versions, it may be difficult to choose, but we recommend that you use the latest version"

download link

First of all, don't compile the cross-compilation toolchain yourself under linux, there is a place to make this:

http://www.linaro.org/downloads/

More direct download address:

http://releases.linaro.org/

Specific subdirectories:

http://releases.linaro.org/14.04/components/toolchain/binaries/

The middle 14.04 is the month

Go to this URL, after opening, there will be the latest gcc compilation chain at the bottom:

This is the latest 5.1. If you don't want this, you can practice with previous tools like 4.9:

Click on "Click here for past releases" on the right to continue:

Select a month such as 15.09, which is September 2015, click in, and scroll to the bottom to see the old compilation toolchain, such as 4.9:

Tree Plum Pie uses 32-bit little-endian compilation, so you need to download little-endian, because the latter Aarch64 represents 64-bit, so you need to download the linux version of the first entry.

 

http://doocr.com/articles/58f775abebe98d4b49fec2f6

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324661028&siteId=291194637