如何在ZedBoard上实现PYNQ(PYNQ Linux on ZedBoard)

一、参考xilinx官方方案:https://github.com/Xilinx/PYNQ/tree/master/sdbuild  配置所需环境(petaliunx的版本最好与其它所需软件配套)html

该方案采用github中此段内容的方法linux

Porting to a new board

There are two flows for porting to a new board. The simplest approach is to take a pre-existing PetaLinux BSP and our pre-built board-agnostic imagea appropriate to the architecture - arm for Zynq-7000 and aarch64 for Zynq UltraScale+. The scripts/image_from_prebuilt.sh script will take these two components and create an image without needing to run the whole image creation flow. See that script for the details of the arguments that are needed.git

二、在https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools/2017-4.html下载对应版本所需的BSP文件github

三、在http://www.pynq.io/board下载otherboard的img(zedboard是:PYNQ rootfs arm v2.3web

四、运行image_from_prebuilt.sh脚本,将两个文件合成所需文件app

sh image_from_prebuilt.sh zed /home/bsp/mybsp.bsp arm /home/bionic.arm.2.3.imgionic

 

分割线如下内容仅供参考,建议按照上述步骤操做工具

---------------------------------------------------我是分割线------------------------------------------------------------------ui

本文主要参考此篇文章:https://superuser.blog/pynq-linux-on-zedboard/spa

PYNQ官方手册:https://pynq.readthedocs.io/en/latest/index.html(主要从官方手册上下载资源)

一、参考官方手册,下载image文件。

官方只为三个开发板提供了示例镜像,没有为其余板子提供镜像,例如咱们手中的这块儿ZedBoard。

咱们能够下载PYNQ-Z1的镜像做为母版:http://www.pynq.io/board.html

二、将镜像写入SD卡中(必需要8G以上)

按照官方指导手册下载Win32DiskImager utility from the Sourceforge Project page工具(下载连接在官方文档)。

官方指导手册地址:https://pynq.readthedocs.io/en/latest/appendix.html#writing-the-sd-card

三、替换BOOT相关文件

能够详细参考这篇文章的教程:https://superuser.blog/pynq-linux-on-zedboard/

我已经把那位仁兄的BOOT文件下载到本地,若是下载不顺利,能够经过如下连接访问。

BOOT文件备用连接: https://pan.baidu.com/s/1sBUHtX5BwdCAevP1M-j-Ow 提取码: fuua

替换操做方法:待第二步中写入完成后,直接打开SD卡,将原有的俩个文件删除,把BOOT压缩包的文件所有复制到SD卡中便可。