Quick guide to building Pynq v2.3 onto the Zedboard
- Create a Ubuntu 16.04 x64 VM -- 60gb Disk Size, 6gb Ram
- Install Petalinux 2018.2 onto the VM in your home directory; add it to your PATH variable
- Download the "Pynq rootfs arm v2.3" image avialble here
- Download the zedboard 2018.2 BSP file from xilinx
I have created a fork of the PYNQ repository here. It includes a Zedboard base overlay and adds LED flash on boot like the PYNQ board. Clone this repository into your home folder
- run the script to instll prerequistses
<pynq-home/sdbuild/scripts/setup_hosts.sh
- Change the default shell to bash and log out/login for this change to take effect
chsh -s /bin/bash
- Set petalinux variables
source ~/petalinux/settings.sh
- cd to the sdbuild directory
cd <pynq-dir>/sdbuild
- run the build script
./scripts/image_from_prebuilt.sh Zedboard <path-to-bsp-file> arm <path-to-arm-rootfs img> <pynq-dir>/boards/Zedboard/base/base.bit
Wait for the image to build. Typically takes 1 hour. If it fails, check to make sure that your default shell is set to /bin/bash and check the build output to make sure you are not missing any install packages. More details are listed in the README in pynq/sdbuild directory