Get the App
SLTechnology News&Howtos  ›  Servers  › 

Construction of embedded ARM development environment

Shulou Source: shulou.com Published: 2022-06-03 09:01:56 10月02日 Update

First, select the appropriate cross-compilation tool chain

Find a cross-compilation tool chain (arm-linux-gcc) that matches your target development platform (Soc) as much as possible

For example, arm-2009q3 can be used to develop programs related to the S5PV210 platform, because Samsung officially uses this version of the cross-compilation tool chain when developing S5pv210, so the choice is to match as much as possible to avoid potential problems caused by tools in the development process.

II. Installation of cross-compilation tool chain

1. Choose the appropriate installation path

In the virtual machine, create a folder arm under the / usr/local/ path, which installs the cross-compilation tool chain under the / usr/local/arm path.

This path is selected for the general installation path, reasonable placement, easy to find and use, theoretically installed in other places is also possible.

Note: the / bin directory places some applications used by users that come with the system.

In the / sbin directory are the system management applications that come with the system.

2. Installation

Put the installation package arm-2009q3.tar.bz2 under the / usr/local/arm path, and type tar-jxvf arm-2009q3.tar.bz2 to decompress it. After the decompression is completed, the installation is completed. At this point, the complete installation path is in the / usr/local/arm/arm-2009q3/bin directory.

After the installation is completed, the test is carried out by entering the installation directory (/ usr/local/arm/arm-2009q3/bin), typing. / arm-none-linux-gnueabi-gcc-v, and then there will be some information output, see "gcc version 4.4.1", that is, the installation is successful.

3. In the course of use, you can:

1. Export the tool chain to the environment variable export PATH=/usr/local/arm/arm-2009q3/bin:$PATH

2. Create an arm-linux-xxx symbolic link for the tool chain ln arm-none-linux-gnueabi-addr2line-s arm-linux-addr2line

Easy to use.

Tags: Tools paths crossover compilation development directories selection programs systems appropriate as far as possible platform application version process application input environment success information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft NVidia vpn Xiaomi Shulou Information