vitis2024.1创建Linux应用

环境安装

软件下载路径

环境

vitis 2024.1

ubutnu 22.04

简介

一般使用pretalinux编译后的文件,制作为文件系统后,在/usr/bin/找到编译后的可执行程序。

首先我的开发板已经使用petalinux 2024.1制作好了系统,硬件层面也使用vivado2024.1做好了配置,网络连接没有问题,后续的程序烧录是通过网络连接,我的开发板制作了自启动。

安装 vitis 2024.1,选择Vitis Embedded Development

vitis

lnstals Vitis Core Development Kit for embedded software and application acceleration development on AMD platforms. Vitisinstallation includes Vivado Design Suite, Users can also install Vitis Model Composer to design for Al Engines and ProgrammableLogic in MATLAB and Simulink, There is an option to install Power Design Manager for power estimation of Versal, Ultrascale+.and Kria products.

内置 Vitis Core 开发套件,用于在 AMD 平台上进行嵌入式软件和应用加速开发。Vitis安装包括 Vivado Design Suite,用户还可以安装 Vitis Model Composer 以在 MATLAB 和 Simulink 中为 Al 引擎和 ProgrammableLogic 进行设计,还可以选择安装 Power Design Manager,用于 Versal、Ultrascale+ 和 Kria 产品的功耗估算。

Vivado

includes the full complement of Vivado Design Suite tools for design, including C-based design with Vitis High-evel synthesis,implementation, verification and device programming. Complete device support, cable driver, and Document Navigator included.Users can also install vitis Model Composer to design for Al Engines and Programmable Logic in MATLAB and simulink. Users canselect to installthe vitis =mbedded pevelonment which is an embedded sotware develonment nackade, here is an ontion toinstall Power Desian Manager for power estimation of Versal, UitraScale+, and Kria products.

包括用于设计的全套 Vivado Design Suite 工具,包括基于 C 语言的 Vitis High-evel 综合、实现、验证和器件编程。包括完整的设备支持、电缆驱动程序和 Document Navigator。用户还可以安装 vitis Model Composer,以便在 MATLAB 和 Simulink 中针对 Al 引擎和可编程逻辑进行设计。用户可以选择安装 vitis =mbedded pevelonment,这是一个嵌入式软件开发工具,这是一个安装 Power Desian Manager 的工具,用于 Versal、UitraScale+ 和 Kria 产品的功耗估算。

Vitis Embedded Development

The Vitis Embedded Development is a standalone embedded software development package for creating, building. debugging.optimizing, and downloading software applications for AMD FPGA processors, it includes a new Vitis iDE with its new backend vitisServer, as well as the classic command line utilities such as hw server, bootgen and program flash

Vitis 嵌入式开发是一款独立的嵌入式软件开发包,用于创建、构建。调试、优化和下载面向 AMD FPGA 处理器的软件应用程序,它包括一个新的 Vitis iDE 及其新的后端 vitisServer,以及经典的命令行实用程序,如硬件服务器、bootgen 和程序闪存

平台工程

创建平台工程

选择对应XXX.xsa文件

选择linux

点击编译

应用工程

参考例子创建工程



我的是这个目录:

/opt/pkg/vitis/2024.1/Vitis/2024.1/gnu/aarch32/lin/gcc-arm-linux-gnueabi/cortexa9t2hf-neon-xilinx-linux-gnueabi

配置clangd path

没有配置会找不头文件!!!

点击编译

下载验证

首先将开发板启动起来,保证开发板和ubuntu 在同一网段下

配置好开发板网络


1、是点击设计图标

2、是选择连接板子

3、是选择编译好的文件

4、是选择一个板子上的路径

5、是点击运行

最后在板子的/run/media/boot-mmcblk0p1目录项目会有一个可执行文件linux_hello_world.elf,可以直接运行。

相关推荐
深度Linux1 小时前
Linux网络编程中的零拷贝:提升性能的秘密武器
linux·linux内核·零拷贝技术
Terasic友晶科技2 小时前
第26篇 基于ARM A9处理器用C语言实现中断<二>
c语言·fpga开发·中断·de1-soc开发板
chian-ocean4 小时前
从理论到实践:Linux 进程替换与 exec 系列函数
linux·运维·服务器
拎得清n4 小时前
UDP编程
linux
敖行客 Allthinker5 小时前
从 UTC 日期时间字符串获取 Unix 时间戳:C 和 C++ 中的挑战与解决方案
linux·运维·服务器·c++
夏尔Gaesar6 小时前
Vim安装与配置教程(解决软件包Vim没有安装可候选)
linux·编辑器·vim
hunter2062066 小时前
如何监控ubuntu系统某个程序的运行状态,如果程序出现异常,对其自动重启。
linux·chrome·ubuntu
慕雪华年7 小时前
【Linux】opencv在arm64上提示找不到libjasper-dev
linux·运维·opencv
s_little_monster9 小时前
【Linux】从硬件到软件了解进程
linux·运维·服务器·经验分享·笔记·学习·学习方法
Q168496451510 小时前
基于VMware的ubuntu与vscode建立ssh连接
vscode·ubuntu·ssh