当前位置:网站首页>arm交叉编译
arm交叉编译
2022-08-04 05:30:00 【Btobk】
1.为何要进行程序的交叉编译
1)程序在嵌入式开发板上运行,
2)交叉编译就是在一个平台上编译另一个平台上的程序,在pc上的linux是基于X86平台,在嵌入式开发板上的linux是基于Arm平台(安卓和pc也是一样)。一般来说,不会在嵌入式开发板上进行程序开发,所以利用pc上的开发工具进行开发,然后进行交叉编译,就可以在其他平台上进行运,。
2.交叉编译需要都什么工具
1)平台不同是指什么
1)硬件平台(CPU的构架)
2)操作系统平台(win,linux)
2)针对ARm平台的专用交叉编译工具链
1)arm-liunx-gcc来代替gcc进行
2)
3.如何安装交叉编译工具链
1)网站上下载:www.arm.net

2)使用tar -zxvf -C / 解压到根目录,为opt

Opt-第三方软件安装目录

2)配置linux下的搜索路径,PATH变量是搜索路径
bin,sbin,user/bin,user/sbin
这些目录都会搜索执行(echo P A T H 会打印出来;变量要加 PATH会打印出来;变量要加 PATH会打印出来;变量要加)
1)手动导出
export PATH=opt/bin: P A T H ( : PATH(: PATH(:PATH–加上原来的)
Echo $path一下
但是!这个命令一重启就i不在了,所以要编辑一个文件。
2)配置文件方式,把路径添加到文件里~/bash_proflie(cenos),environment(ubt)
把路径加后面,用:隔开
重启或者source ./etcenvironment
Arm-linux-gcc 是一个连接文件

https://blog.csdn.net/gybwq/article/details/115842756?utm_medium=distribute.pc_feed_404.none-task-blog-2defaultBlogCommendFromBaiduRate-3-115842756-blog-null.pc_404_mixedpudn&depth_1-utm_source=distribute.pc_feed_404.none-task-blog-2defaultBlogCommendFromBaiduRate-3-115842756-blog-null.pc_404_mixedpud
编译出来的文件无法在电脑上系统操作,板子上可以运行
4.交叉编译工具的版本
1)针对嵌入开发板linux内核版本改变,2.4以下选择2版本的,2.6以上的选3或者4
2)在开发ban或者pc中,uname -r查看版本
2.4-2.6中变化特别大所以1)最好不要用低版本的交叉工具编译高版本内核的程序,反依然
边栏推荐
- TensorFlow2 study notes: 5. Common activation functions
- The use of the attribute of the use of the animation and ButterKnife
- Data reading in yolov3 (1)
- Transformer
- Copy Siege Lion 5-minute online experience MindIR format model generation
- tensorRT教程——tensor RT OP理解(实现自定义层,搭建网络)
- 软著撰写注意事项
- 在AWS-EC2中安装Minikube集群
- 【CV-Learning】Convolutional Neural Network
- TensorFlow2 study notes: 7. Optimizer
猜你喜欢

"A minute" Copy siege lion log 】 【 run MindSpore LeNet model

【论文阅读】Multi-View Spectral Clustering with Optimal Neighborhood Laplacian Matrix

fuser 使用—— YOLOV5内存溢出——kill nvidai-smi 无pid 的 GPU 进程

MNIST handwritten digit recognition, sorted by from two to ten

【Copy攻城狮日志】飞浆学院强化学习7日打卡营-学习笔记
![[Deep Learning 21 Days Learning Challenge] Memo: What does our neural network model look like? - detailed explanation of model.summary()](/img/99/819ccbfed599ffd52307235309cdc9.png)
[Deep Learning 21 Days Learning Challenge] Memo: What does our neural network model look like? - detailed explanation of model.summary()
![[CV-Learning] Convolutional Neural Network Preliminary Knowledge](/img/7d/58d9649b06e78eeb019d63615a90c4.png)
[CV-Learning] Convolutional Neural Network Preliminary Knowledge

How to get started with MOOSE platform - an example of how to run the official tutorial

MAE 论文《Masked Autoencoders Are Scalable Vision Learners》

动手学深度学习_softmax回归
随机推荐
Thunderbolt turns off automatic updates
Deep Learning Theory - Initialization, Parameter Adjustment
【论文阅读】Multi-View Spectral Clustering with Optimal Neighborhood Laplacian Matrix
MNIST手写数字识别 —— 从感知机到卷积神经网络
[CV-Learning] Semantic Segmentation
中国联通、欧莱雅和钉钉都在争相打造的秘密武器?虚拟IP未来还有怎样的可能
Use of double pointers
[Deep Learning Diary] Day 1: Hello world, Hello CNN MNIST
详解近端策略优化
[Go language entry notes] 13. Structure (struct)
2020-10-29
TypeError: load() missing 1 required positional argument: ‘Loader‘
No matching function for call to ‘RCTBridgeModuleNameForClass‘
Jupyter Notebook installed library;ModuleNotFoundError: No module named 'plotly' solution.
MNIST手写数字识别 —— 基于Mindspore快速构建感知机实现十分类
Thoroughly understand box plot analysis
Learning curve learning_curve function in sklearn
PCL1.12 解决memory.h中EIGEN处中断问题
打金?工作室?账号被封?游戏灰黑产离我们有多近
lstm pipeline 过程理解(输入输出)