当前位置:网站首页>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
边栏推荐
- RuntimeError: output with shape [4, 1, 512, 512] doesn‘t match the broadcast shape[4, 4, 512, 512]
- 【BIM+GIS】ArcGIS Pro2.8如何打开Revit模型,BIM和GIS融合?
- 递归调用--排列的穷举
- mysql ,binlog 日志查询
- 383. 赎金信
- The latest price trend chart and trading points of London Silver
- Shopping mall for transportation tools based on PHP
- 【NeurIPS 2019】Self-Supervised Deep Learning on Point Clouds by Reconstructing Space
- Mysql出现2013 Lost connection to MySQL server during query
- C语言 字符常量
猜你喜欢

STM32 upper μ C / shell transplantation and Application

Bridge between ischemic stroke and intestinal flora: short chain fatty acids

LabVIEW 小端序和大端序区别

Matlab reads multiple fig graphs and then combines them into one graph (in the form of sub graph)

【BIM入门实战】Revit中的墙体层次以及常见问题解答

优麒麟 22.04 LTS 版本正式发布 | UKUI 3.1开启全新体验

指纹Key全国产化电子元件推荐方案

Cortex-M3寄存器组、汇编语言与C语言的接口介绍

【论文阅读】【3d目标检测】Voxel Transformer for 3D Object Detection

Hard core chip removal
随机推荐
[BIM introduction practice] wall hierarchy and FAQ in Revit
TreeSet课后练习
Set classic topics
Gut liver axis: host microbiota interaction affects hepatocarcinogenesis
智能电子秤全国产化电子元件推荐方案
IEEE Transactions on Industrial Informatics(TII)投稿须知
Interaction of diet gut microbiota on cardiovascular disease
【测绘程序设计】坐标方位角推算神器(C#版)
What is software acceptance testing? What are the benefits of acceptance testing conducted by third-party software testing institutions?
华为机试--高精度整数加法
指纹Key全国产化电子元件推荐方案
【Pytorch基础】torch.split()用法
从MySQL数据库迁移到AWS DynamoDB
[AI vision · quick review of today's sound acoustic papers, issue 2] Fri, 15 APR 2022
重剑无锋,大巧不工
上海航芯技术分享 | ACM32 MCU安全特性概述
[BIM introduction practice] Revit building wall: detailed picture and text explanation of structure, envelope and lamination
win10, mysql-8.0.26-winx64.zip 安装
为什么推荐你学嵌入式
在AWS控制台创建VPC(无图版)