当前位置:网站首页>zynq平台交叉编译器的安装
zynq平台交叉编译器的安装
2022-04-23 04:27: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://acmer.blog.csdn.net/article/details/124339773
边栏推荐
- Xiaomi, qui a établi le plus grand volume de ventes de téléphones portables domestiques sur le marché d'outre - mer, se concentre de nouveau sur le marché intérieur
- 指纹Key全国产化电子元件推荐方案
- Express中间件②(中间件的分类)
- Mysql出现2013 Lost connection to MySQL server during query
- Introduction to Cortex-M3 register set, assembly language and C language interface
- 【ICCV 2019】MAP-VAE:Multi-Angle Point Cloud-VAE: Unsupervised Feature Learning for 3D Point Clouds..
- Go反射—Go语言圣经学习笔记
- C语言常用字符串处理函数
- 国外LEAD,联盟经理常见问答
- MySQL 2013 lost connection to MySQL server during query
猜你喜欢
洛谷P1858 【多人背包】 (背包求前k优解)
/etc/bash_completion.d目录作用(用户登录立刻执行该目录下脚本)
秒杀所有区间相关问题
Express middleware ② (classification of Middleware)
STM32 upper μ C / shell transplantation and Application
VSCode配置之Matlab极简配置
Single chip microcomputer serial port data processing (2) -- ucosiii + cyclic queue receiving data
A function second kill 2sum 3sum 4sum problem
小红书被曝整体裁员20%,大厂之间内卷也很严重
【BIM+GIS】ArcGIS Pro2. 8 how to open Revit model, Bim and GIS integration?
随机推荐
[AI vision · quick review of NLP natural language processing papers today, issue 31] Fri, 15 APR 2022
Hard core chip removal
[echart] Introduction to echart
现货黄金操作技巧_估波曲线
229. 求众数 II
基于PHP的代步工具购物商城
[BIM introduction practice] Revit building wall: detailed picture and text explanation of structure, envelope and lamination
Shopping mall for transportation tools based on PHP
【论文阅读】【3d目标检测】point transformer
【BIM+GIS】ArcGIS Pro2. 8 how to open Revit model, Bim and GIS integration?
Qt程序集成EasyPlayer-RTSP流媒体播放器出现画面闪烁是什么原因?
Introduction to Cortex-M3 register set, assembly language and C language interface
华为机试--高精度整数加法
C语言 字符常量
The latest price trend chart and trading points of London Silver
win10, mysql-8.0.26-winx64.zip 安装
在AWS控制台创建VPC(无图版)
伦敦银最新价格走势图与买卖点
【测绘程序设计】坐标反算神器V1.0(附C/C#/VB源程序)
Cause analysis of incorrect time of AI traffic statistics of Dahua Equipment Development Bank