当前位置:网站首页>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
边栏推荐
- Go language foundation ----- 13 ----- file
- Project experience sharing: Based on mindspore, the acoustic model is realized by using dfcnn and CTC loss function
- Go language foundation ----- 16 ----- goroutine, GPM model
- Technical dry goods Shengsi mindspire dynamic transformer with variable sequence length has been released!
- 技术干货|昇思MindSpore算子并行+异构并行,使能32卡训练2420亿参数模型
- go语言-循环语句
- [mindspire paper presentation] summary of training skills in AAAI long tail problem
- 【LeetCode】2. Valid parentheses · valid parentheses
- 【MySQL 13】安装MySQL后第一次修改密码,可以可跳过MySQL密码验证进行登录
- opensips与对方tls sip trunk对接注意事项
猜你喜欢

Project experience sharing: handwritten Chinese character recognition based on Shengsi mindspire

Technical dry goods Shengsi mindspire dynamic transformer with variable sequence length has been released!

Pat class a 1031 Hello world for u

PAT甲级 1028 List Sorting

UA camouflage, get and post in requests carry parameters to obtain JSON format content

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

Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!

【MySQL 12】MySQL 8.0.18 重新初始化

Partage de l'expérience du projet: mise en œuvre d'un pass optimisé pour la fusion IR de la couche mindstore

【LeetCode】2. Valid Parentheses·有效的括号
随机推荐
技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建
Redis配置文件
Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward
基于RNA的新型癌症疗法介绍
Go language foundation ------ 14 ------ gotest
Pat class a 1030 travel plan
Project experience sharing: Based on mindspore, the acoustic model is realized by using dfcnn and CTC loss function
Enter three times and guess a number
Pat grade a 1029 median
【MySQL 13】安装MySQL后第一次修改密码,可以可跳过MySQL密码验证进行登录
技术干货|AI框架动静态图统一的思考
Precautions for opensips and TLS SIP trunk docking
Redis view client connection
Technology dry goods | Roberta of the migration of mindspore NLP model - emotion analysis task
項目經驗分享:實現一個昇思MindSpore 圖層 IR 融合優化 pass
技术干货|昇思MindSpore算子并行+异构并行,使能32卡训练2420亿参数模型
opensips与对方tls sip trunk对接注意事项
PHP common sorting algorithm
Huawei switches are configured with SSH login remote management switches
【LeetCode】3. Merge two sorted lists · merge two ordered linked lists