258901 views|4 replies

6822

Posts

11

Resources
The OP
 

[Zhengdian Atom Alpha IMX6ULL Linux Development Board] Install the cross compiler [Copy link]

1. We need to copy the cross-compilation tool to Ubuntu first. We create a folder named "linux" in the current user's root directory, and then create a folder named "tool" in this linux folder to store some development tools:

xxx@xxx-virtual-machine:~$ mkdir linux
xxx@xxx-virtual-machine:~$ cd linux/
xxx@xxx-virtual-machine:~/linux$ mkdir tool
xxx@xxx-virtual-machine:~/linux$ cd tool
xxx@xxx-virtual-machine:~/linux/tool$ 

2. Download the cross compiler from 5. Development Tools -> 1. Cross Compiler. Copy the cross compiler to the newly created "tool" folder in Ubuntu. The operation is as shown below:

3. Create a directory in Ubuntu: /usr/local/arm, and run the following command:

xxx@lugl-virtual-machine:~/linux/tool$ sudo mkdir /usr/local/arm
[sudo] xxx 的密码: 

4. Then copy the compiler file we just copied to the /usr/local/arm/ directory we just created:

lugl@lugl-virtual-machine:~/linux/tool$ sudo cp gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz /usr/local/arm/
lugl@lugl-virtual-machine:~/linux/tool$ cd /usr/local/arm/
lugl@lugl-virtual-machine:/usr/local/arm$ ls
gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz

5. Then we decompress:

lugl@lugl-virtual-machine:/usr/local/arm$ sudo tar -vxf gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz 

6. We generated the cross-compilation tool chain of gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.

lugl@lugl-virtual-machine:/usr/local/arm$ ls
gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf
gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz

7.

Modify the environment variables and use VI to open the /etc/profile file. The command is as follows:
sudo vi /etc/profile
After opening /etc/profile, enter the following at the end:
export PATH=$PATH:/usr/local/arm/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin

After adding, save and exit, restart Ubuntu, and the cross tool key will be installed.

After installation, you can start your hello world journey.

This post is from ARM Technology

Latest reply

After reading the explanation of the OP, I found that a folder named "linux" was created, and the rest of the steps were to copy the cross compiler to the newly created folder in Ubuntu.   Details Published on 2023-4-30 08:54
 

7171

Posts

195

Resources
2
 

Is the system using the version recommended by Zhengdian Atom?

This post is from ARM Technology

Comments

Installing the system consumes too much disk space, so I used the Ubuntu 20 that I had already created and installed myself.  Details Published on 2023-4-30 06:10
 
 
 

6822

Posts

11

Resources
3
 
Common Ze 1 posted on 2023-4-29 23:54 Is the system using the version recommended by Zhengdian Atom?

Installing the system consumes too much disk space, so I used the Ubuntu 20 that I had already created and installed myself.

This post is from ARM Technology
 
 
 

1663

Posts

0

Resources
4
 

After reading the explanation of the OP, I found that a folder named "linux" was created, and the rest of the steps were to copy the cross compiler to the newly created folder in Ubuntu.

This post is from ARM Technology

Comments

Yes, first, unzip it to the specified directory, then unzip it, and then add the path to /etc/profile so that the system can find it. Of course, you can also specify an absolute path, but it is more troublesome.  Details Published on 2023-4-30 09:58
 
 
 

6822

Posts

11

Resources
5
 
Hot Ximi Show posted on 2023-4-30 08:54 After reading the explanation of the host, basically a folder named "linux" was created, and the rest of the rest basically copied the cross compiler...

Yes, first, unzip it to the specified directory, then unzip it, and then add the path to /etc/profile so that the system can find it. Of course, you can also specify an absolute path, but it is more troublesome.

This post is from ARM Technology
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
sensortile box source code

Can ST provide the source code of the demo firmware that comes with the sensorimo box?

[Prizes sent out]: Prize live broadcast: ADI's smoke detector integrated solution based on ADPD188BI is now awarding prizes~

【Prizes sent】 If you have any questions, please contact the administrator QQ: 375277221 Award-winning live broadcast: ...

Research on the difference between left and right channel signals of audio

This post was last edited by bqgup on 2020-9-18 14:31 # Exploration of the difference between left and right channel s ...

Motor Control Basics - Principle of Timer Capturing Single Input Pulse

This post was last edited by DDZZ669 on 2021-2-28 14:58 The previous article (https://en.eeworld.com/bbs/thread-11570 ...

OpenHarmony 3.0 porting to Raspberry Pi 4B - learning record

This post was last edited by hazhuzhu on 2021-12-29 00:13 Preface The following is a detailed process record of learnin ...

[Analysis of College Student Electronics Contest Topic] —— 2021 Topic A "Signal Distortion Measurement Device"

1. Mission Design and manufacture a signal distortion measurement device to collect and analyze the periodic signal (her ...

[Infineon XENSIV PAS CO2 sensor] Unboxing

Unboxing The epidemic is not over yet, but new innovative products have arrived. This time, the product involved in the ...

42 "Wanli" Raspberry Pi car - ROS learning (Android uses ROSBridge to control the little turtle)

This post was last edited by lb8820265 on 2022-11-8 23:14 Previously, we used ROSBridge to control the little turtle ...

Let's read together: read classic books on power supply and learn about power supply knowledge

Some books only need to be read in part, some books can be read in full, but not too carefully; and some books should be ...

[Ultra-small Linux development kit Quantum Tiny Linux] Based on Framebuffer test display (TFT is broken?)

22200c24a3969ece8a1d63c6860136c3 We conduct display tests on the onboard small screen based on Framebuffer. code show a ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list