当前位置:网站首页>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
边栏推荐
- [MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)
- Technology dry goods | luxe model for the migration of mindspore NLP model -- reading comprehension task
- Analysis of the ninth Blue Bridge Cup single chip microcomputer provincial competition
- Iterm2设置
- 【MySQL 13】安装MySQL后第一次修改密码,可以可跳过MySQL密码验证进行登录
- Microsoft Security Response Center
- Go language foundation ----- 01 ----- go language features
- Pat class a 1028 list sorting
- Go language foundation ----- 09 ----- exception handling (error, panic, recover)
- Go language foundation ----- 03 ----- process control, function, value transfer, reference transfer, defer function
猜你喜欢
![[mindspire paper presentation] summary of training skills in AAAI long tail problem](/img/34/9c9ec1b94edeecd4a3e7f20fdd8356.png)
[mindspire paper presentation] summary of training skills in AAAI long tail problem

Screenshot tool snipaste

技术干货|昇思MindSpore NLP模型迁移之LUKE模型——阅读理解任务

技术干货|AI框架动静态图统一的思考

EtherCAT state machine transition (ESM)

创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03

技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估

Pat class a 1030 travel plan

PAT甲级 1028 List Sorting

PAT甲级 1031 Hello World for U
随机推荐
Go language foundation ------ 12 ------ JSON
技术干货|关于AI Architecture未来的一些思考
Lucene introduces NFA
Screenshot tool snipaste
Analysis of the ninth Blue Bridge Cup single chip microcomputer provincial competition
GoLang之结构体
Technology dry goods | luxe model for the migration of mindspore NLP model -- reading comprehension task
Project experience sharing: handwritten Chinese character recognition based on Shengsi mindspire
技术干货|昇思MindSpore可变序列长度的动态Transformer已发布!
技术干货|昇思MindSpore NLP模型迁移之LUKE模型——阅读理解任务
Go language foundation ----- 11 ----- regular expression
HarmonyOS第三次培训笔记
技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估
Epoll related references
技术干货|百行代码写BERT,昇思MindSpore能力大赏
Worldview satellite remote sensing image data / meter resolution remote sensing image
LwIP learning socket (application)
Pat grade a 1027 colors in Mars
Lucene hnsw merge optimization
yarn link 是如何帮助开发者对 NPM 包进行 debug 的?