Simple arrangement of installing and configuring ARM cross compiler (tool chain) under Ubuntu of Linux

Simple arrangement of installing and configuring ARM cross compiler (tool chain) under Ubuntu of Linux

Table of contents

Simple arrangement of installing and configuring ARM cross compiler (tool chain) under Ubuntu of Linux

1. Brief introduction

2. Download the arm cross-compilation installation toolkit and install it into the virtual machine


1. Brief introduction

Organize some knowledge developed by Linux/Ubuntu, so that you can consult and use it in time if you encounter similar problems later.

This section introduces the sorting out of problems encountered in configuring shared files in Ubuntu, mainly the solution to the problem of not displaying shared folders under the installation of VMware Tools and the mnt/hgfs folder, including how to configure shared files The steps are simple to organize. If there are deficiencies, welcome to point out, or if you have a better method, please leave a message.
 

Linux, the full name of GNU/Linux, is a free-to-use and freely disseminated UNIX-like operating system. Its kernel was first released by Linus Benedict Torvalds on October 5, 1991. It is mainly influenced by Inspired by Minix and Unix ideas, it is a POSIX-based multi-user, multi-tasking, multi-threading and multi-CPU operating system. It can run major Unix utilities, applications and network protocols. It supports 32-bit and 64-bit hardware. Linux inherits Unix's network-centric design idea and is a multi-user network operating system with stable performance. There are hundreds of different distributions of Linux, such as debian and archlinux based on community development, and Red Hat Enterprise Linux, SUSE, Oracle Linux and so on based on commercial development.

Ubuntu is a Linux operating system mainly based on desktop applications. Its name comes from the word "ubuntu" in Zulu or Hausa in southern Africa, which means "humanity" and "I exist because everyone exists". A traditional value. Ubuntu is based on the Debian distribution and the Gnome desktop environment, and from version 11.04, the Ubuntu distribution has abandoned the Gnome desktop environment and changed to Unity. In the past, people thought that Linux was difficult to install and difficult to use. After the emergence of Ubuntu, these have become history. Ubuntu also has a huge community power, and users can easily get help from the community. [1] Since Ubuntu 18.04 LTS, the Ubuntu distribution has returned to using the GNOME3 desktop environment.

Case operating environment:

1、windows 10

2、ubuntu 16.04

2. Download the arm cross-compilation installation toolkit and install it into the virtual machine

1. Download the relevant arm cross-compilation installation toolkit from the Linaro official website

官网:Accelerating deployment of Arm-based solutions | Linaro

2. Expand the Resources - Downloads on the official website, click to enter

3. Click to enter the download interface, and search for the corresponding download

Website: Builds & Downloads | Linaro

 4. Or download the release version according to the following website. The 4.9-2017.01 downloaded here installs 64-bit Ubuntu, so choose x86_64 to download

Release URL: Linaro Releases

 Download URL for version 4.9-2017.01: Linaro Releases

 

 

 5. Add the downloaded file to Ubuntu, first put it in the shared folder

Here is the VMware Tools shared folder method, refer to the blog post: Ubuntu configuration shared folder implementation steps for Linux problems, and a simple solution to the problem that the folder is empty/shared files are not displayed when VMware Tools is installed

 6. Then, open the virtual machine, and you can see the arm cross-compilation installation package in mnt/hgfs/_VMWareSharedFiles

7. Check if there is an arm folder in the usr/local directory

 8. If there is no arm folder, create a new arm folder

Instruction: sudo mkdir /usr/local/arm

 9. Copy the arm cross-compilation installation package to the /usr/local/arm folder

For example: sudo cp gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz /usr/local/arm/

 10. Switch the folder to /usr/local/arm, unzip the arm cross-compilation installation package under the /usr/local/arm folder

Folder switching command: cd /usr/local/arm/

Decompression command: sudo tar -vxf gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz

 

11. Add the decompressed bin folder path to /etc/profile, the purpose is to add the command of the cross compiler to the global variable, you can open the add in the terminal, or open the folder with gedit to add

Added contents: export PATH=$PATH:/usr/local/arm/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin

 

12. If there is no permission to modify, you can modify the permission, and then modify it

Modify file read and write permissions: sudo chmod 777 profile

Modify the read and write permissions of the file to take effect immediately: source profile

 13. Restart the virtual machine

 14. After restarting, press Ctrl+Alt+T to open the terminal, and enter the command arm-linux-gnueabihf-gcc -v, as follows, the surface installation is successful

 

Guess you like

Origin blog.csdn.net/u014361280/article/details/127902486