Build firmware with PYNQ support - SundanceMultiprocessorTechnology/VCS-1 GitHub Wiki

Preparing the Environment

  1. Clone the PYNQ Repositiory
  • git clone https://github.com/Xilinx/PYNQ.git
  1. Download and Install VirtualBox and Vagrant
  • sudo apt install virtualbox && sudo apt install vagrant
  1. Navigate to the root
  • cd <PYNQ repository>
  1. prepare the VM using the following command. This step will prepare a Ubuntu VM called pynq_vm on your Virtual Box.
  • vagrant up

(optionally) To restart the VM without losing the shared folder, in your terminal, run:

  • vagrant reload

5.Now you are ready to install Xilinx tools. You will need PetaLinux, Vivado, and SDx for building PYNQ image. The version of Xilinx tools for each PYNQ release is shown below:

Release version Xilinx Tool Version
v1.4 2015.4
v2.0 2016.1
v2.1 2017.4
v2.2 2017.4
v2.3 2018.2
v2.4 2018.3

Prepare Specification Folder

  1. Create the board folder <BOARD> = Specific board i.e FM191B_4CG
  • mkdir <PYNQ repository>/boards/<BOARD>
  1. Create the Board Specification File <BOARD>.spec
ARCH_${BOARD} := arm
BSP_${BOARD} := <BOARD>.bsp
BITSTREAM_${BOARD} := <BOARD>.bit

Building the Image

  1. run vagrant reload to restart the vm with your board folder inside
  2. Source the appropriate settings files from PetaLinux, Vivado, and SDx.
  3. Navigate to the following directory and run make
cd <PYNQ repository>/sdbuild/
make
  1. The build flow can take several hours.

Return to the build page

⚠️ **GitHub.com Fallback** ⚠️