当前位置:网站首页>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
边栏推荐
- 项目经验分享:基于昇思MindSpore,使用DFCNN和CTC损失函数的声学模型实现
- 华为交换机Console密码重置、设备初始化、默认密码
- Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!
- Go language foundation ----- 01 ----- go language features
- Go language foundation ----- 05 ----- structure
- Pat grade a 1027 colors in Mars
- [MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)
- OSPF protocol summary
- 华为交换机:配置telnet和ssh、web访问
- Go language - loop statement
猜你喜欢

Go language foundation ------17 ----- channel creation, read-write, security shutdown, multiplexing select
![[MySQL 12] MySQL 8.0.18 reinitialization](/img/e1/9874df18bbc8d80c3c5c5fe39aefc9.png)
[MySQL 12] MySQL 8.0.18 reinitialization

Technical dry goods Shengsi mindspire lite1.5 feature release, bringing a new end-to-end AI experience

Analysis of the problems of the 12th Blue Bridge Cup single chip microcomputer provincial competition

Redis batch startup and shutdown script

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

項目經驗分享:實現一個昇思MindSpore 圖層 IR 融合優化 pass

密西根大学张阳教授受聘中国上海交通大学客座教授(图)

【LeetCode】4. Best Time to Buy and Sell Stock·股票买卖最佳时机

【LeetCode】3. Merge two sorted lists · merge two ordered linked lists
随机推荐
s7700设备如何清除console密码
技术干货|关于AI Architecture未来的一些思考
技术干货|AI框架动静态图统一的思考
Iterm2设置
Differences between tp3.2 and tp5.0
Es writing fragment process
How does yarn link help developers debug NPM packages?
【踩坑系列】mysql 修改root密码失败
PAT甲级 1031 Hello World for U
华为交换机配置ssh登录远程管理交换机
Technical dry goods | alphafold/ rosettafold open source reproduction (2) - alphafold process analysis and training Construction
输入三次猜一个数字
[MySQL 11] how to solve the case sensitive problem of MySQL 8.0.18
Go language foundation ----- 19 ----- context usage principle, interface, derived context (the multiplexing of select can be better understood here)
Precautions for opensips and TLS SIP trunk docking
Go language foundation ----- 02 ----- basic data types and operators
GoLang之结构体
Go language foundation ----- 15 ----- reflection
Structure of golang
Go language foundation ----- 03 ----- process control, function, value transfer, reference transfer, defer function