How to run DPU examples custom platform


After following the tutorials, I have successfully built and ran some DPU example notebooks on my ZCU104, image version v2.7.0, DPU-PYNQ v1.4.0.

Now I am going to make it working on PYNQ-ZU. After rebuilding the DPU, I copied it and installed it by using pip3 install /home/xilinx/DPU-PYNQ, without any error.

But I don’t understand how the command pynq get-notebooks pynq-dpu -p . works. I tried the command then it showed:

root@pynq:/home/xilinx/jupyter_notebooks# pynq get-notebooks pynq-dpu -p .
Delivering notebooks './pynq-dpu'...
The notebooks module 'pynq-dpu' could not be delivered. The module has no notebooks, or no valid overlays were found

Then I tried to copy the notebooks from my ZCU104 to my PYNQ-ZU, ran it, and it showed

FileNotFoundError                         Traceback (most recent call last)
<ipython-input-1-3ccc182fbd36> in <module>
      1 from pynq_dpu import DpuOverlay
----> 2 overlay = DpuOverlay("dpu.bit")

/usr/local/share/pynq-venv/lib/python3.8/site-packages/pynq_dpu/ in __init__(self, bitfile_name, dtbo, download, ignore_version, device)
     89             abs_bitfile_name = os.path.join(OVERLAY_PATH, bitfile_name)
     90         else:
---> 91             raise FileNotFoundError('Cannot find {}.'.format(bitfile_name))
     92         super().__init__(abs_bitfile_name,
     93                          dtbo=dtbo,

FileNotFoundError: Cannot find dpu.bit.

How to make my PYNQ-ZU running DPU examples?

Thank you in advance.

The problem is solved by copying the bitstream

# on PYNQ-ZU, or custom platform
cd /home/xilinx/DPU-PYNQ/boards/Pynq-ZU
sudo cp dpu.bit dpu.hwh ../vitis_platform/dpu/dpu.tcl binary_container_1/dpu.xclbin /usr/local/share/pynq-venv/lib/python3.8/site-packages/pynq_dpu