如何在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卡中便可。