# PYNQ custom image v2.7 for Zedboard no device found error

**URL:** <https://discuss.pynq.io/t/pynq-custom-image-v2-7-for-zedboard-no-device-found-error/3937>\
**Category:** Support\
**Created:** [March 31, 2022, 6:21am UTC](https://discuss.pynq.io/t/pynq-custom-image-v2-7-for-zedboard-no-device-found-error/3937 "2022-03-31T06:21:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bala\_Dhinesh](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/bala_dhinesh/32/2972_2.png) [@Bala\_Dhinesh](https://discuss.pynq.io/u/Bala_Dhinesh)\
**Post date:** [March 31, 2022, 6:21am UTC](https://discuss.pynq.io/t/pynq-custom-image-v2-7-for-zedboard-no-device-found-error/3937/1 "2022-03-31T06:21:55Z")

</div>

Hello,

I am trying to load an Overlay file inside Jupyter Notebook. However I get this error: **UserWarning: No devices found, is the XRT environment sourced?** Please help me with where I am going wrong.

 ![pynq_error](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/a/ae396c432fa43291821b04031bc51e3bd17abdcd.png)

**Steps I used for building custom PYNQ image for Zedboard:**

For making the custom PYNQ image(version 2.7), I used Ubuntu 18.04 Virtualbox with Vivado, Vitis and Petalinux version 2020.2.

This is the Zedboard.spec file:

```auto
ARCH_Zedboard := arm
BSP_Zedboard := avnet-digilent-zedboard-v2020.2-final.bsp
STAGE4_PACKAGES_Zedboard := boot_leds ethernet pynq jupyter

```

I downloaded the BSP from the Xilinx Vivado website. [Link](https://www.xilinx.com/member/forms/download/xef.html?filename=avnet-digilent-zedboard-v2020.2-final.bsp)

I generated the Zedboard pynq image inside sdbuild folder using  
`make PREBUILT=./focal.arm.2.7.0_2021_11_17.tar.gz BOARDS=Zedboard PYNQ_SDIST=./pynq-2.7.0.tar.gz`

PYNQ\_SDIST file was taken from here: [link](https://github.com/Xilinx/PYNQ/releases)

Thanks

---

<div class="post-metadata">

**Author:** ![Bala\_Dhinesh](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/bala_dhinesh/32/2972_2.png) [@Bala\_Dhinesh](https://discuss.pynq.io/u/Bala_Dhinesh)\
**Post date:** [March 31, 2022, 6:25pm UTC](https://discuss.pynq.io/t/pynq-custom-image-v2-7-for-zedboard-no-device-found-error/3937/2 "2022-03-31T18:25:18Z")

</div>

I tried following [this](https://discuss.pynq.io/t/accessing-an-overlay-from-multiple-python-interpreters/3438/6) solution of sourcing the appropriate venv but still the problem persists.

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [April 13, 2022, 7:29am UTC](https://discuss.pynq.io/t/pynq-custom-image-v2-7-for-zedboard-no-device-found-error/3937/3 "2022-04-13T07:29:48Z")

</div>

Can you check this?

> [@An Attempt to Install PYNQ on Ubuntu for ZCU102](https://discuss.pynq.io/t/an-attempt-to-install-pynq-on-ubuntu-for-zcu102/3809/14):
>
> Hi, Please, let us know how that goes. If you run xbutil dump in a JupyterLab terminal, what do you get as output? I think that we may need to insert the device tree overlay to be able to fully operate with PYNQ. Your experiments with FINN will tell. Mario

---

<div class="post-metadata">

**Author:** ![Bala\_Dhinesh](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/bala_dhinesh/32/2972_2.png) [@Bala\_Dhinesh](https://discuss.pynq.io/u/Bala_Dhinesh)\
**Post date:** [April 13, 2022, 8:40am UTC](https://discuss.pynq.io/t/pynq-custom-image-v2-7-for-zedboard-no-device-found-error/3937/4 "2022-04-13T08:40:03Z")

</div>

When I run xbutil dump in the terminal, **I get bash: xbutil: command not found**

Here is the output:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/4/45c5c1b0ddf8e3853279263a8e3d539cf1974778.png)

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [April 13, 2022, 8:42am UTC](https://discuss.pynq.io/t/pynq-custom-image-v2-7-for-zedboard-no-device-found-error/3937/5 "2022-04-13T08:42:15Z")

</div>

Hi @Bala_Dhinesh,

Is xrt included in your STAGE4\_PACKAGES? Something like this [PYNQ/Pynq-Z2.spec at master · Xilinx/PYNQ · GitHub](https://github.com/Xilinx/PYNQ/blob/master/boards/Pynq-Z2/Pynq-Z2.spec#L6)

If not, add it and rebuild the image.

---

<div class="post-metadata">

**Author:** ![Bala\_Dhinesh](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/bala_dhinesh/32/2972_2.png) [@Bala\_Dhinesh](https://discuss.pynq.io/u/Bala_Dhinesh)\
**Post date:** [April 13, 2022, 8:43am UTC](https://discuss.pynq.io/t/pynq-custom-image-v2-7-for-zedboard-no-device-found-error/3937/6 "2022-04-13T08:43:59Z")

</div>

It is not included in the image. I will rebuild the image, Thanks!

---

<div class="post-metadata">

**Author:** ![Annew](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/annew/32/2944_2.png) [@Annew](https://discuss.pynq.io/u/Annew)\
**Post date:** [April 28, 2022, 12:13am UTC](https://discuss.pynq.io/t/pynq-custom-image-v2-7-for-zedboard-no-device-found-error/3937/7 "2022-04-28T00:13:07Z")

</div>

Have you solved it ? Do you have a .hwh file in the same directory？

---

<div class="post-metadata">

**Author:** ![Bala\_Dhinesh](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/bala_dhinesh/32/2972_2.png) [@Bala\_Dhinesh](https://discuss.pynq.io/u/Bala_Dhinesh)\
**Post date:** [May 4, 2022, 11:04am UTC](https://discuss.pynq.io/t/pynq-custom-image-v2-7-for-zedboard-no-device-found-error/3937/8 "2022-05-04T11:04:37Z")

</div>

Sorry for the late reply. Yes, it works. I need to include xrt in STAGE4\_PACKAGES while creating the PYNQ image.
