Error no device found when loading overlay

I am following the step of from Overlay Tutorial — Python productivity for Zynq (Pynq) v1.0

Currently I’m using Jupyter Notebook on the Ultra96 v2 through ssh tunnel and I encountered the following error when trying to load the overlay.

RuntimeError                              Traceback (most recent call last)
<ipython-input-4-6407a7cc4fde> in <module>()
      1 from pynq import Overlay
----> 2 ol = Overlay('/home/xilinx/pynq/overlays/adder/adder.bit')

/usr/local/lib/python3.6/dist-packages/pynq/ in __init__(self, bitfile_name, dtbo, download, ignore_version, device)
    336         """
--> 337         super().__init__(bitfile_name, dtbo, partial=False, device=device)
    339         self._register_drivers()

/usr/local/lib/python3.6/dist-packages/pynq/ in __init__(self, bitfile_name, dtbo, partial, device)
    109         if device is None:
    110             from .pl_server.device import Device
--> 111             device = Device.active_device
    112         self.device = device

/usr/local/lib/python3.6/dist-packages/pynq/pl_server/ in active_device(cls)
     94         if not hasattr(cls, '_active_device'):
     95             if len(cls.devices) == 0:
---> 96                 raise RuntimeError("No Devices Found")
     97             cls._active_device = cls.devices[0]
     98         return cls._active_device

RuntimeError: No Devices Found

Does anyone know how do I fix this?

1 Like

This error is usually a result of /dev/xlnk not existing. Can you check if the device is there? What image are you running?


Hi peter,

I am facing the same issue as well, I have check and dev/xink is there, how do I proceed?

Hello. Im having the same issue on my Zybo using pynq 2.6 as base.

from pynq.overlays.base import BaseOverlay
ol = BaseOverlay("base.bit")

RuntimeError: No Devices Found
xilinx@pynq:~$ ls /dev/xlnk
ls: cannot access '/dev/xlnk': No such file or directory
xilinx@pynq:~$ ls /sys/class/fpga_manager/
ls: cannot access '/sys/class/fpga_manager/': No such file or directory

Any ideas @PeterOgden ? I used this files (kernel) to the boot partition of the sd.

The board appears to boot correctly but cant load any bitfile.

Some extra info, not sure if relevant:

xilinx@pynq:~$ sudo systemctl start  xilinx-apf-driver.service
[sudo] password for xilinx: 
Job for xilinx-apf-driver.service failed because the control process exited with error code.
See "systemctl status xilinx-apf-driver.service" and "journalctl -xe" for details.
xilinx@pynq:~$ systemctl status xilinx-apf-driver.service
● xilinx-apf-driver.service - Xilinx APF Driver Service.
   Loaded: loaded (/etc/systemd/system/xilinx-apf-driver.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2021-10-11 22:37:24 UTC; 7s ago
  Process: 1632 ExecStart=/sbin/modprobe xlnk-eng (code=exited, status=1/FAILURE)
 Main PID: 1632 (code=exited, status=1/FAILURE)
xilinx@pynq:~$ sudo depmod
depmod: ERROR: could not open directory /lib/modules/3.17.0-xilinx-dirty: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
1 Like