Attached the two pre-rebuilt files here.
- BOOT.BIN
- image.ub
Download Petalinux and Vivado SDK and install them.
mkdir build_pynq_ultra96v2
cd build_pynq_ultra96v2
git clone https://github.com/Xilinx/PYNQ.git
git clone https://github.com/Avnet/Ultra96-PYNQ.git
Change the branches to "image_v2.5".
cd PYNQ
git checkout image_v2.5
cd ../
cd Ultra96-PYNQ
git checkout image_v2.5
Install some required softwares by using the setup_host.sh script.
source /opt/Xilinx/SDK/2019.1/settings64.sh
source /opt/Xilinx/petalinux/2019.1/settings.sh
cd PYNQ/sdbuild
bash scripts/setup_host.sh
Edit "CONFIG_CMA_SIZE_MBYTES=128" in "PYNQ/sdbuild/boot/meta-pynq/recipes-kernel/linux/linux-xlnx/pynq.cfg". In this example, the CMA size is increased to 512MB.
CONFIG_CMA_SIZE_MBYTES=512
At "PYNQ/sdbuild/sdbuild", do "make boot_files" to update the boot files. Note that the "Ultra96-PYNQ" location must be correctly specified via the "BOARDDIR" option.
source /opt/Xilinx/SDK/2019.1/settings64.sh
source /opt/Xilinx/petalinux/2019.1/settings.sh
export PATH=/opt/qemu/bin:/opt/crosstool-ng/bin:$PATH
cd PYNQ/sdbuild
make boot_files BOARDDIR=/home/yourname/build_pynq_ultra96v2/Ultra96-PYNQ
You can find two generated files, "BOOT.BIN" and "image.ub" at "PYNQ/sdbuild/output/boot/Ultra96/". Please copy them to the first partition of the SD card with the pre-built SD image.