当前位置:网站首页>Install cross compiler arm none liunx gnueabihf
Install cross compiler arm none liunx gnueabihf
2022-07-03 07:49:00 【Seven demons 71】
arm-none-liunx-gnueabihf install
Preface
This tutorial is for ubuntu Installation under system arm Cross compiler .
Cross compiler version :9.2-2019.12-x86_64
ubuntu Compilation :18.04
Download cross compiler
GNU Official website There is the latest gcc compiler , There are already 2021.07 Version of , But our project still uses 2019.12 Version of compiler , So I still installed the old , The installation steps are the same .
GNU The official website server is slow to download abroad , So here you can download from Tsinghua mirror
wget https://mirrors.tuna.tsinghua.edu.cn/armbian-releases/_toolchain/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz
decompression
First create a directory to store the cross compiler ( You can also put it elsewhere , The last step is to set the environment variable correctly )
sudo mkdir /usr/local/arm
Move to the directory where you downloaded the compressed package , Copy the downloaded compressed package to /usr/local/arm/
Under the table of contents , Pay attention to the need to use sudo
sudo cp gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz /usr/local/arm/ -f
Move to this directory /usr/local/arm/
cd /usr/local/arm/
Decompress the package :
Method 1 :
Look at the package suffix xxx.tar.xz It is a two-level compressed package , have access to xz
Decompress the instructions to get .tar
, Reuse tar
Command decompression .
xz Instruction syntax :
sudo xz -d gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz
sudo tar -xvf gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar
Method 2 :
Use it directly tar decompression
sudo tar -vxf gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz
Get the unzipped directory in blue
Add environment variables :
Use cd The command moves to gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/bin
Under the table of contents , Use pwd You can get the absolute path , You can paste it directly later .
Use this instruction to modify the file and add environment variables
sudo vi /etc/profile
Add... At the end of the text
export PATH=$PATH:/usr/local/arm/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/bin
notes :/usr/local/arm/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/bin
Is the absolute address just obtained .
And then restart linux Otherwise, it will prompt that the instruction cannot be found
Input query gcc Version of the directive :
arm-none-linux-gnueabihf-gcc -v
So the installation is successful .
Install related libraries
sudo apt-get update
sudo apt-get install lsb-core lib32stdc++6
Mainly, our computers are 64 Bit , then arm Mostly 32 The lack of dependent libraries
Reference material
TVM Study ( Four ) Record Install cross compiler arm-none-liunx-gnueabihf
The punctual atoms STM32MP157 The embedded Linux Drive development guide V2.0 The first 4.3 Section
边栏推荐
- Technical dry goods Shengsi mindspire operator parallel + heterogeneous parallel, enabling 32 card training 242 billion parameter model
- Microsoft Security Response Center
- 创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
- Analysis of the problems of the 12th Blue Bridge Cup single chip microcomputer provincial competition
- Es writing fragment process
- 【MindSpore论文精讲】AAAI长尾问题中训练技巧的总结
- Lucene hnsw merge optimization
- [MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)
- 技术干货|百行代码写BERT,昇思MindSpore能力大赏
- Lucene merge document order
猜你喜欢
Technical dry goods Shengsi mindspire dynamic transformer with variable sequence length has been released!
技术干货|AI框架动静态图统一的思考
Iterm2 setting
EtherCAT state machine transition (ESM)
【LeetCode】2. Valid parentheses · valid parentheses
密西根大学张阳教授受聘中国上海交通大学客座教授(图)
Go language foundation ----- 16 ----- goroutine, GPM model
PAT甲级 1030 Travel Plan
【LeetCode】3. Merge Two Sorted Lists·合并两个有序链表
What to do after the browser enters the URL
随机推荐
static关键字
Iterm2设置
Go language foundation ----- 10 ----- string related operations (operation function, string conversion)
EtherCAT state machine transition (ESM)
微软安全响应中心
Screenshot tool snipaste
What to do after the browser enters the URL
项目经验分享:基于昇思MindSpore,使用DFCNN和CTC损失函数的声学模型实现
[at] ABC 258g - Triangle triples reachable - violence
Huawei switch console password reset, device initialization, default password
Structure of golang
PHP common sorting algorithm
The difference between hdmi2.1 and hdmi2.0 and the conversion of PD signals.
技术干货|昇思MindSpore算子并行+异构并行,使能32卡训练2420亿参数模型
Redis view client connection
Precautions for opensips and TLS SIP trunk docking
[at] abc 258G - Triangle 三元組可達-暴力
OSPF protocol summary
Client server model
Project experience sharing: Based on mindspore, the acoustic model is realized by using dfcnn and CTC loss function