Skip to content

Instantly share code, notes, and snippets.

@ashriram
Created August 8, 2019 18:11
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashriram/fa69c8737b8ee2aa7a55846d9f2d8026 to your computer and use it in GitHub Desktop.
Save ashriram/fa69c8737b8ee2aa7a55846d9f2d8026 to your computer and use it in GitHub Desktop.
Building Pynq Linux onto the Zedboard

Quick guide to building Pynq v2.3 onto the Zedboard

Prerequisites

  • 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

Steps to build

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment