当前位置:网站首页>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
边栏推荐
- thymeleaf th:value 为null时报错问题
- Single chip microcomputer serial port data processing (2) -- ucosiii + cyclic queue receiving data
- C语言常用字符串处理函数
- VHDL语言实现32位二进制数转BCD码
- 【ICCV 2019】MAP-VAE:Multi-Angle Point Cloud-VAE: Unsupervised Feature Learning for 3D Point Clouds..
- 【Echart】echart 入門
- [mapping program design] coordinate inverse artifact v1 0 (with C / C / VB source program)
- 中国移动日赚2.85亿很高?其实是5G难带来更多利润,那么钱去哪里了?
- The whole process of connecting the newly created unbutu system virtual machine with xshell and xftp
- 针对NFT的网络钓鱼
猜你喜欢
基于英飞凌MCU GTM模块的无刷电机驱动方案开源啦
【测绘程序设计】坐标方位角推算神器(C#版)
指纹Key全国产化电子元件推荐方案
[BIM introduction practice] wall hierarchy and FAQ in Revit
VSCode配置之Matlab极简配置
Xiaomi, which has set the highest sales record of domestic mobile phones in overseas markets, paid renewed attention to the domestic market
matlab读取多张fig图然后合并为一张图(子图的形式)
洛谷P1858 【多人背包】 (背包求前k优解)
【论文阅读】【3d目标检测】Voxel Transformer for 3D Object Detection
【ICCV 2019】MAP-VAE:Multi-Angle Point Cloud-VAE: Unsupervised Feature Learning for 3D Point Clouds..
随机推荐
【Pytorch基础】torch.split()用法
MYSQL查询至少连续n天登录的用户
The latest price trend chart and trading points of London Silver
上海航芯技术分享 | ACM32 MCU安全特性概述
Second kill all interval related problems
一个函数秒杀2Sum 3Sum 4Sum问题
递归调用--排列的穷举
創下國產手機在海外市場銷量最高紀錄的小米,重新關注國內市場
Set经典小题目
[BIM introduction practice] wall hierarchy and FAQ in Revit
Nature medicine reveals individual risk factors of coronary artery disease
记录一下盲注脚本
[echart] démarrer avec echart
Xiaomi, which has set the highest sales record of domestic mobile phones in overseas markets, paid renewed attention to the domestic market
HMS Core Discovery第14期回顾长文|纵享丝滑剪辑,释放视频创作力
Gut liver axis: host microbiota interaction affects hepatocarcinogenesis
Leetcode->1 两数之和
[AI vision · quick review of NLP natural language processing papers today, issue 31] Fri, 15 APR 2022
Effects of antibiotics on microbiome and human health
【NeurIPS 2019】Self-Supervised Deep Learning on Point Clouds by Reconstructing Space