当前位置:网站首页>zynq平臺交叉編譯器的安裝
zynq平臺交叉編譯器的安裝
2022-04-23 04:31:00 【MangataTS】
一、創建工作目錄
新建工作目錄 zynq,並進入該目錄。新建 packs 目錄,目的是存儲源碼安裝包,拷貝相關文件到該目錄。
mkdir zynq
cd zynq
mkdir packs
二、解壓文件
解壓 Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux.tar.gz
文件到 packs
的上級目錄下,即工作目錄 z y n q zynq zynq 目錄裏。
tar -zxvf Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux.tar.gz -C ../
為了方便後續操作,我們對這個文件夾重命名:
mv Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux xilinx-tools
三、編寫激活脚本並激活
創建env_z7.sh
並向其中輸入以下內容,最好就放在zynq
目錄下
#!/bin/sh
export PATH=/home/mangata/zynq/xilinx-tools/bin:${
PATH}
ARCH=arm
CROSS_COMPILE=arm-linux
激活脚本:
source env_z7.sh
四、測試編譯器版本
一般來說會報錯:
mangata@mangata:~/zynq$ arm-linux-gcc -v
-bash: /home/mangata/zynq/xilinx-tools/bin/arm-linux-gcc: 沒有那個文件或目錄
說命令沒有找到,這個是因為這個編譯器是 32 32 32 比特,而我們的系統是 64 64 64 比特的,需要安裝 32 b 32b 32b 比特的庫。我們繼續輸入安裝命令即可:
sudo apt install libc6-i386 lib32z1
如果這裏安裝報錯:
錯誤:1 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 lib32z1 amd64 1:1.2.11.dfsg-2ubuntu1.2
404 Not Found [IP: 91.189.91.38 80]
E: 無法下載 http://cn.archive.ubuntu.com/ubuntu/pool/main/z/zlib/lib32z1_1.2.11.dfsg-2ubuntu1.2_amd64.deb 404 Not Found [IP: 91.189.91.38 80]
E: 有幾個軟件包無法下載,要不運行 apt-get update 或者加上 --fix-missing 的選項再試試?
那麼我們只需要輸入:
sudo apt-get update
再進行安裝即可
然後再次查看版本號:
至此關於zynq
平臺的交叉編譯器安裝完成
版权声明
本文为[MangataTS]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230426566939.html
边栏推荐
- 阿里十年技术专家联合打造“最新”Jetpack Compose项目实战演练(附Demo)
- 基于英飞凌MCU GTM模块的无刷电机驱动方案开源啦
- VSCode配置之Matlab极简配置
- PHP export excel table
- AWS EKS 部署要点以及控制台与eksctl创建的差异
- [echart] démarrer avec echart
- [echart] Introduction to echart
- Xshell、Xftp连接新创建的Unbutu系统虚拟机全流程
- Matlab reads multiple fig graphs and then combines them into one graph (in the form of sub graph)
- 用D435i录制自己的数据集运行ORBslam2并构建稠密点云
猜你喜欢
Chlamydia infection -- causes, symptoms, treatment and Prevention
Apache Bench(ab 压力测试工具)的安装与使用
用D435i录制自己的数据集运行ORBslam2并构建稠密点云
Difference between LabVIEW small end sequence and large end sequence
Does China Mobile earn 285 million a day? In fact, 5g is difficult to bring more profits, so where is the money?
第四章 --- 了解标准设备文件、过滤器和管道
Set经典小题目
[echart] démarrer avec echart
Matlab reads multiple fig graphs and then combines them into one graph (in the form of sub graph)
Why recommend you to study embedded
随机推荐
520.检测大写字母
KVM error: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock‘
IEEE Transactions on Systems, Man, and Cybernetics: Systems(TSMC)投稿须知
一个函数秒杀2Sum 3Sum 4Sum问题
[AI vision · quick review of robot papers today, issue 32] wed, 20 APR 2022
TreeSet课后练习
Xiaohongshu was exposed to layoffs of 20% as a whole, and the internal volume among large factories was also very serious
Jetpack 之 LifeCycle 组件使用详解
三十六计是什么
【ICCV 2019】MAP-VAE:Multi-Angle Point Cloud-VAE: Unsupervised Feature Learning for 3D Point Clouds..
229. 求众数 II
IDE Idea 自动编译 与 On Upate Action 、 On Frame Deactivation 的配置
针对NFT的网络钓鱼
Express中间件①(中间件的使用)
C语言常用字符串处理函数
Microbial neuroimmune axis -- the hope of prevention and treatment of cardiovascular diseases
PHP export excel table
[BIM introduction practice] wall hierarchy and FAQ in Revit
Matlab reads multiple fig graphs and then combines them into one graph (in the form of sub graph)
用D435i录制自己的数据集运行ORBslam2并构建稠密点云