Build firmware with PYNQ support - SundanceMultiprocessorTechnology/VCS-1 GitHub Wiki
- Clone the PYNQ Repositiory
git clone https://github.com/Xilinx/PYNQ.git
- Download and Install VirtualBox and Vagrant
sudo apt install virtualbox && sudo apt install vagrant
- Navigate to the root
cd <PYNQ repository>
- 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 |
- Create the board folder
<BOARD> = Specific board i.e FM191B_4CG
mkdir <PYNQ repository>/boards/<BOARD>
- Create the Board Specification File
<BOARD>.spec
ARCH_${BOARD} := arm
BSP_${BOARD} := <BOARD>.bsp
BITSTREAM_${BOARD} := <BOARD>.bit
- All files needed can be found in https://github.com/SundanceMultiprocessorTechnology/VCS-1/tree/master/Hardware/Xilinx/Petalinux/2018.3
- run
vagrant reloadto restart the vm with your board folder inside - Source the appropriate settings files from PetaLinux, Vivado, and SDx.
- Navigate to the following directory and run make
cd <PYNQ repository>/sdbuild/
make
- The build flow can take several hours.