Hi,
I’ve just created a custom PYNQ v3.0.1 image for Zybo-010 and I’ve found some troubles programing the FPGA with a .xsa file.
In particular, the following piece of code:
from pynq import Overlay
overlay = Overlay("design_1_wrapper.xsa")
The result is:
/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/pl_server/device.py:56: UserWarning: No devices found, is the XRT environment sourced?
warnings.warn(
More information about the image:
-
The image has been created with the
image_from_prebuilt.sh
from PYNQ repository and I’ve used the v3.0.1 agnostic rootfs and distribution files. -
Moreover, I’ve tested what devices are detected by the xbutil and the results are:
root@pynq:/home/xilinx# xbutil examine
System Configuration
OS Name : Linux
Release : 5.15.19-xilinx-v2022.1
Version : #1 SMP PREEMPT Mon Apr 11 17:52:14 UTC 2022
Machine : armv7l
CPU Cores : 2
Memory : 1000 MB
Distribution : PynqLinux, based on Ubuntu 22.04
GLIBC : 2.35
Model : unknown
XRT
Version : 2.13.0
Branch : temp
Hash : f5505e402c2ca1ffe45eb6d3a9399b23a0dc8776
Hash Date : 2022-10-21 17:40:17
ZOCL : 2.13.0, f5505e402c2ca1ffe45eb6d3a9399b23a0dc8776
Devices present
0 devices found
BDF : Shell Platform UUID Device ID Device Ready*
- Nonetheless, if I export the variable XILINX_XRT (as read on the forum) before executing the previous Python code from the terminal:
export XILINX_XRT=/usr
The FPGA is programmed but the following error is shown:
XRT build version: 2.13.0
Build hash: f5505e402c2ca1ffe45eb6d3a9399b23a0dc8776
Build date: 2022-10-21 17:40:17
Git branch: temp
PID: 899
UID: 0
[Sat Mar 4 01:04:01 2023 GMT]
HOST:
EXE: /usr/bin/python3.10
[XRT] ERROR: boost::filesystem::directory_iterator::construct: No such file or directory: "/dev/dri/by-path/"
[XRT] ERROR: boost::filesystem::directory_iterator::construct: No such file or directory: "/dev/dri/by-path/"
Load Xclbin Failed
Traceback (most recent call last):
File "/home/xilinx/jupyter_notebooks/debug/test.py", line 8, in <module>
overlay = Overlay("design_1_wrapper.xsa")
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/overlay.py", line 348, in __init__
self.download()
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/overlay.py", line 428, in download
super().download(self.parser)
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/bitstream.py", line 168, in download
self.device.download(self, parser)
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/pl_server/embedded_device.py", line 686, in download
self._xrt_download(parser.xclbin_data)
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/pl_server/xrt_device.py", line 529, in _xrt_download
raise RuntimeError(
RuntimeError: Programming Device failed: ENODEV (19) No such device
I’d appreciate any piece of advice. Thanks!!
Regards,
Dave.