Petalinux介绍及其使用
前言
本文章主要介绍的是Petainux的介绍、安装和配置。一、Petalinux是什么?
PetaLinux工具提供在Xilinx处理系统上定制、构建和调配嵌入式Linux 解决方案所需的所有组件。该解决方案旨在提升设计生产力,可与Xilinx 硬件设计工具配合使用,以简化针对Versal、ZynqUltraScale MPSoC、Zynq7000SoC和MicroBlaze的Linux系统开发。
二、下载及其安装
1.下载
可以到Xilinx的官方网站https://china.xilinx.com/进行下载安装包
2.安装
(1)先新建一个文件夹:mkdir。
(2)执行安装命令:输入命令行
./petalinux-v2018.3-final-installer.run /opt/pkg/petalinux/2018.3
(3)修改bash:sudo dpkg-reconfigure dash
(4)设置环境变量:sourcesettings.sh
三、Petalinux的使用
(1)搭建vivado工程,导出hdf文件。
(2)创建一个petalinux工程
使用petalinux-create-t project命令。
(3)将vivado文件导入到petalinux工程
使用petalinux-config --get-hw-description命令。
(4)配置petalinux工程
使用petalinux-config -c命令,分别配置U-boot、内核、rootfs。
(5)编译petalinux工程
使用petalinux-build命令。
总结
petalinux的使用中还是有很多操作需要去牢记的,熟能生巧,多加练习才能更加熟练。