Adding PYNQ to an existing Petalinux build on a new board without BSP

Hi @crispy245

You will need to use the BSP for the AXU15EGB board. Either use the one supplied by Alinx, or make your own one using Petalinux (you will need to look through the Petalinux documentation on instructions on how to do this). If Alinx don’t supply a BSP, I would contact them directly to ask for one. Making your own BSP can be difficult, especially if you don’t have any experience with device trees.

To make your PYNQ board folder, you should follow the file structure of the other PYNQ boards. The ZCU111 is a good example as it doesn’t contain a base overlay.

Your file structure should look something like this:

AXU15EGB/
    - AXU15EGB.bsp
    - petalinux_bsp/
    - AXU15EGB.spec

Your AXU15EGB.spec file will look something like this

ARCH_AXU15EGB := aarch64
BSP_AXU15EGB := AXU15EGB.bsp
FPGA_MANAGER_AXU15EGB  := 1

STAGE4_PACKAGES_AXU15EGB  := xrt pynq ethernet

If there are any device-tree or u-boot options you need to use, these go into the petalinux_bsp/ directory (see the ZCU111 board directory for an example of what should be in there).

Once you have all this, you can place your AXU15EGB board directory within the PYNQ/boards directory and build the image by running:

cd PYNQ/sdbuild
make boards=AXU15EGB

The latest version of PYNQ (v3.1) uses Vivado and Petalinux version 2024.1. You will need to use this version in order to build an image.

Hopefully this will get you moving along. More details of what I’ve explained here are in the documentation.

2 Likes