Git Product home page Git Product logo

kria-pynq's Introduction

This repository contains the install scripts needed to add PYNQ to the official Ubuntu SDCard Image of your:

  • Kria KV260 Vision AI Starter Kit
  • Kria KR260 Robotic Starter Kit
  • Kria KD240 Drives Starter Kit

From that installation, a complete Python and Jupyter environment is installed on the Kria SOM along with multiple programmable logic overlays all ready to use.

Installation

1. Get the Ubuntu SD Card Image

Users of Ubuntu 22.04 LTS

If you wish to run Ubuntu 22.04 LTS, you may need to update the boot firmware to the latest version. For example, 2022.1 boot firmware is recommended for Ubuntu 22.04 LTS user. Ubuntu may not boot with mismatched firmware. The update methods can be found in Kria Wiki.

KV260

Follow the steps to Get Started with Kria KV260 Vision AI Starter Kit until you complete the Booting your Starter Kit section.

KR260

Follow the steps to Get Started with Kria KR260 Robotic Starter Kit until you complete the Booting your Starter Kit section.

KD240

Follow the steps to Get Started with Kria KD240 Drives Starter Kit until you complete the Booting your Starter Kit section.

2. Install PYNQ

Then install PYNQ on your Kria device. Simply clone this repository from your Kria and run the install.sh script specifying the device with the -b flag.

git clone https://github.com/Xilinx/Kria-PYNQ.git
cd Kria-PYNQ/
sudo bash install.sh -b { KV260 | KR260 | KD240 } 

This script will install the required debian packages, create Python virtual environment and configure a Jupyter portal. This process takes around 25 minutes.

3. Open Jupyter

JupyterLab can now be accessed via a web browser <ip_address>:9090/lab or kria:9090/lab. The password is xilinx

Included Overlays

Base Overlay [GitHub]

This overlay includes support for the KV260's Raspberry Pi camera and PMOD interfaces. A Digilent Pcam 5C camera can be attached to the KV260 and controlled from Jupyter notebooks. Additionally, a variety of Grove and PMOD devices are supported on the PMOD interface - all controllable from a Xilinx Microblaze processor in programmable logic.

Supported boards: KV260

DPU-PYNQ (v2.5) [GitHub] [PYPI]

This overlay contains a Vitis-AI 2.5.0 Deep Learning Processor Unit (DPU) and comes with a variety of notebook examples with pre-trained ML models.

Supported boards: KV260, KR260, KD240

Composable Pipeline (v1.1 soft-release) [GitHub]

The Composable pipeline is an overlay with a novel and clever architecture that allow us to adapt how the data flows between a series of IP cores.

Supported boards: KV260

PYNQ-Helloworld [GitHub] [PYPI]

One of PYNQ's first overlays, the PYNQ-Helloworld overlay includes an image resizer block in programmable logic. This overlay demonstrates a simple but powerful use of programmable logic HLS blocks to do image processing.

Supported boards: KV260, KR260

Selftest

A self-test script for each board is generated at the end of the build. This test script runs some of the Overlay tests. For some of the tests specific peripherals need to be connected to the board:

Board Test name Peripherals
KV260 test_apps
  • 1. A monitor connected to either the HDMI or DisplayPort
  • 2. A USB Webcamera

To run the self-test navigate to the Kria-PYNQ install directory and run:

sudo ./selftest.sh

References



Copyright (C) 2021 Xilinx, Inc

SPDX-License-Identifier: BSD-3 License

kria-pynq's People

Contributors

intuity avatar jiegh avatar kamilake avatar mariodruiz avatar schelleg avatar skalade avatar stfleming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kria-pynq's Issues

ERROR: [HLS 200-1715] Encountered problem during source synthesis

I am trying to build base.bit for kria AI starter kit. I have been encountered with "ERROR: [HLS 200-1715] Encountered problem during source synthesis". Does any one have more insights into it.

kindly find the terminal output here ๐Ÿ‘

harish@harish:~/Kria-PYNQ/kv260/base$ make
make -C ../../pynq/boards/ZCU104/base/ hls_ip
make[1]: Entering directory '/home/harish/Kria-PYNQ/pynq/boards/ZCU104/base'
vivado -mode batch -source build_ip.tcl -notrace

****** Vivado v2021.1 (64-bit)
**** SW Build 3247384 on Thu Jun 10 19:36:07 MDT 2021
**** IP Build 3246043 on Fri Jun 11 00:30:35 MDT 2021
** Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.

source build_ip.tcl -notrace
Building color_convert_2 IP

****** Vitis HLS - High-Level Synthesis from C, C++ and OpenCL v2021.1 (64-bit)
**** SW Build 3247384 on Thu Jun 10 19:36:07 MDT 2021
**** IP Build 3246043 on Fri Jun 11 00:30:35 MDT 2021
** Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.

source /tools/Xilinx2021/Vitis_HLS/2021.1/scripts/vitis_hls/hls.tcl -notrace
INFO: [HLS 200-10] Running '/tools/Xilinx2021/Vitis_HLS/2021.1/bin/unwrapped/lnx64.o/vitis_hls'
INFO: [HLS 200-10] For user 'harish' on host 'harish' (Linux_x86_64 version 5.4.0-122-generic) on Sun Aug 14 19:40:10 CEST 2022
INFO: [HLS 200-10] On os Ubuntu 18.04.4 LTS
INFO: [HLS 200-10] In directory '/home/harish/Kria-PYNQ/pynq/boards/ip/hls'
Sourcing Tcl script 'color_convert_2/script.tcl'
INFO: [HLS 200-1510] Running: open_project color_convert_2
INFO: [HLS 200-10] Opening project '/home/harish/Kria-PYNQ/pynq/boards/ip/hls/color_convert_2'.
INFO: [HLS 200-1510] Running: set_top color_convert_2
INFO: [HLS 200-1510] Running: add_files color_convert_2/color_convert.cpp
INFO: [HLS 200-10] Adding design file 'color_convert_2/color_convert.cpp' to the project
INFO: [HLS 200-1510] Running: add_files -tb color_convert_2/color_convert_test.cpp
INFO: [HLS 200-10] Adding test bench file 'color_convert_2/color_convert_test.cpp' to the project
INFO: [HLS 200-1510] Running: open_solution solution1
INFO: [HLS 200-10] Opening solution '/home/harish/Kria-PYNQ/pynq/boards/ip/hls/color_convert_2/solution1'.
INFO: [SYN 201-201] Setting up clock 'default' with a period of 3.3ns.
INFO: [HLS 200-1611] Setting target device to 'xczu7ev-ffvc1156-2-i'
INFO: [HLS 200-1505] Using flow_target 'vivado'
Resolution: For help on HLS 200-1505 see www.xilinx.com/cgi-bin/docs/rdoc?v=2021.1;t=hls+guidance;d=200-1505.html
INFO: [HLS 200-1510] Running: set_part xczu7ev-ffvc1156-2-i
INFO: [HLS 200-1510] Running: create_clock -period 3.3
INFO: [HLS 200-1510] Running: csynth_design
INFO: [HLS 200-111] Finished File checks and directory preparation: CPU user time: 0 seconds. CPU system time: 0 seconds. Elapsed time: 0 seconds; current allocated memory: 251.044 MB.
INFO: [HLS 200-10] Analyzing design file 'color_convert_2/color_convert.cpp' ...
WARNING: [HLS 207-5528] Ignore interface attribute or pragma which is not used in top function: color_convert_2/color_convert.cpp:13:9
WARNING: [HLS 207-5301] unused parameter 'print': /tools/Xilinx2021/Vitis_HLS/2021.1/common/technology/autopilot/ap_int_base.h:792:16
INFO: [HLS 200-111] Finished Source Code Analysis and Preprocessing: CPU user time: 4.52 seconds. CPU system time: 0.29 seconds. Elapsed time: 4.25 seconds; current allocated memory: 252.313 MB.
INFO: [HLS 200-777] Using interface defaults for 'Vivado' flow target.
ERROR: [HLS 200-1715] Encountered problem during source synthesis
INFO: [HLS 200-111] Finished Command csynth_design CPU user time: 7.24 seconds. CPU system time: 0.51 seconds. Elapsed time: 7.3 seconds; current allocated memory: 252.595 MB.
Pre-synthesis failed.
while executing
"source color_convert_2/script.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list source $arg] "

INFO: [HLS 200-112] Total CPU user time: 9.02 seconds. Total CPU system time: 0.89 seconds. Total elapsed time: 8.6 seconds; peak allocated memory: 252.313 MB.
INFO: [Common 17-206] Exiting vitis_hls at Sun Aug 14 19:40:19 2022...
child process exited abnormally
INFO: [Common 17-206] Exiting Vivado at Sun Aug 14 19:40:19 2022...
makefile:10: recipe for target 'hls_ip' failed
make[1]: *** [hls_ip] Error 1
make[1]: Leaving directory '/home/harish/Kria-PYNQ/pynq/boards/ZCU104/base'
Makefile:14: recipe for target 'pynq_hls' failed
make: *** [pynq_hls] Error 2

Kind regards
Harish

install.sh package dependency problem

I set up the Kria Dev kit with the provided ubuntu image, then ran:

sudo apt update
sudo apt upgrade
sudo snap install xlnx-config --classic
xlnx-config.sysinit

I realize that the instructions don't explicitly say to run apt update/upgrade but eth0 didn't connect out of the box, and upgrading somehow resolved that.

I then cloned this repo and ran install.bash, which resulted in:

ubuntu@kria:~/Documents/Kria-PYNQ$ sudo bash install.sh 
Installing PYNQ, this process takes around 25 minutes 
Executing: /tmp/apt-key-gpghome.ZcdrPjTmSn/gpg.1.sh --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 --verbose 803DDF595EA7B6644F9B96B752150A179A9E84C9
gpg: no running Dirmngr - starting '/usr/bin/dirmngr'
gpg: waiting for the dirmngr to come up ... (5s)
gpg: connection to dirmngr established
gpg: data source: http://162.213.33.9:80
gpg: armor header: Comment: Hostname:
gpg: armor header: Version: Hockeypuck ~unreleased
gpg: pub  rsa4096/52150A179A9E84C9 2020-06-07  Launchpad PPA for Ubuntu Xilinx
gpg: key 52150A179A9E84C9: "Launchpad PPA for Ubuntu Xilinx" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
Hit:1 http://oem.archive.canonical.com/updates focal-limerick InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Hit:3 http://ppa.launchpad.net/ubuntu-xilinx/updates/ubuntu focal InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Hit:2 http://ppa.launchpad.net/ubuntu-xilinx/updates/ubuntu focal InRelease
Hit:3 http://oem.archive.canonical.com/updates focal-limerick InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libdrm-xlnx-dev : Depends: libdrm-xlnx-amdgpu1 (= 2.4.102-1ubuntu1~20.04.1xilinx1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

libdrm-xlnx-amdgpu1 is available in the repo but trying to install it with apt will ask to remove other important packages.

ubuntu@kria:~/Documents/Kria-PYNQ$ sudo apt install libdrm-xlnx-amdgpu1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libplymouth5 opencv-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  notification-daemon policykit-1-gnome
The following packages will be REMOVED:
  apturl evolution-data-server gdm3 gir1.2-clutter-1.0 gir1.2-clutter-gst-3.0 gir1.2-cogl-1.0 gir1.2-coglpango-1.0 gir1.2-gst-plugins-base-1.0 gir1.2-gtkclutter-1.0 gir1.2-mutter-6
  gir1.2-webkit2-4.0 gnome-control-center gnome-getting-started-docs gnome-initial-setup gnome-online-accounts gnome-session gnome-session-bin gnome-shell
  gnome-shell-extension-appindicator gnome-shell-extension-desktop-icons gnome-shell-extension-ubuntu-dock gnome-startup-applications gnome-user-docs gstreamer-xilinx1.0-gl
  gstreamer-xilinx1.0-omx-zynqmp gstreamer-xilinx1.0-opencv gstreamer1.0-clutter-3.0 gstreamer1.0-omx-generic libcheese-gtk25 libcheese8 libclutter-1.0-0 libclutter-gst-3.0-0
  libclutter-gtk-1.0-0 libcogl-pango20 libcogl-path20 libcogl20 libdrm-amdgpu1 libedataserverui-1.2-2 libgl1 libgl1-mesa-dri libgl2ps1.4 libglu1-mesa libglx-mesa0 libglx0
  libgoa-backend-1.0-1 libgstreamer-xilinx-gl1.0-0 libmutter-6-0 libopencv-contrib4.2 libopencv-superres4.2 libopencv-viz4.2 libvtk6.3 libwebkit2gtk-4.0-37 libyelp0 mesa-va-drivers
  mesa-vdpau-drivers mesa-vulkan-drivers mutter nautilus-share ubuntu-desktop-minimal ubuntu-docs ubuntu-release-upgrader-gtk ubuntu-session update-manager update-notifier va-driver-all
  vdpau-driver-all x11-utils xorg xserver-xephyr xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-video-all
  xserver-xorg-video-amdgpu xserver-xorg-video-armsoc-endlessm xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-nouveau xserver-xorg-video-radeon xserver-xorg-video-vesa
  xwayland yelp zenity
The following NEW packages will be installed:
  libdrm-xlnx-amdgpu1 notification-daemon policykit-1-gnome
0 upgraded, 3 newly installed, 85 to remove and 0 not upgraded.
Need to get 86.7 kB of archives.
After this operation, 1216 MB disk space will be freed.
Do you want to continue? [Y/n] 

edit: looks like the same problem as this: https://discuss.pynq.io/t/installation-error-in-kria-pynq/3707/7

DNU xmodel not working for Pytorch and Tensorflow

Loading Pytorch and Tensorflow xmodels from Model Zoo don't work. Only loading caffe xmodels seem to work.

I am using Kria KV260 board. The example is from Kria-PYNQ and the notebook is dpu_resnet50.ipynb.

Base Overlay Vivado Build

I've re-built the Vivado build for the base overlay (with the same version of Vivado 2020.2.2) and unfortunately, when replacing the load of the base.bit with my re-built version in the mipi_to_displayport notebook, it errors out when initializing the camera saying PCam 5C cannot be initialized. It does work when the base.bit included with Kria-PYNQ is loaded instead.

I compared the hwh files generated with the build from the git repository vs the base.hwh included with repo (located in /usr/local/share/pynq-venv/lib/python3.8/site-packages/kv260) and found a number of differences, so I've come to the conclusion that the base overlay source files included with this repository does not match the files used to build the base.bit.

With that, I have a couple of follow-up questions:

  1. Have you confirmed the base overlay Vivado source files included with the repository can build a bit (and hwh) file that allows running the mipi_to_displayport.ipynb example?
  2. Could you include the Vivado source files used to build the base overlay that was used to build the base.bit included in the repository?

MIPI Camera Capture Streaks

When capturing frames from the PCAM 5C via the mipi_to_displayport notebook, I'm getting streaks and a partial duplication of the image as shown in the screen capture below.

To me, it appears to be a timing mismatch between the camera configuration and the buffer configuration. I'm using the 'stock' notebook and the 'stock' base.bit overlay in this example. I can dig into this further and sort it out, but figured I would confirm if this is a known issue before spending too much time sorting out the details.

Hoping someone can confirm if they have run the mipi_to_displayport notebook to the point it displays the captured frame and if they were successful or ran into a similar issue.

Thanks!

streaks

Pcam not generating frames

I am currently using Ubuntu 22.04, however I have tested this on the Ubuntu 20.04.3 image and I get the same result.

In the mipi_to_displayport.ipynb notebook, I am unable to get an image out of the Pcam and into the notebook.

These are my observations:

  • I have never been able to get an image into the notebook - VDMA just waits forever, at this line frame = mipi.readframe().
  • When probing the MIPI pins with an oscilloscope, I see that there is nothing coming out of the image sensor, even after the line mipi.start().
  • When I use the same Pcam on PYNQ-ZU board, the same notebook works fine (ie. I get an image in the notebook and when I probe the MIPI pins, I can see data coming out of the image sensor).
  • When I use Adam Taylor's Kria Pcam example on the same Kria board with the same Pcam, it works fine and I get video on the monitor.
  • When I use some custom code to manually configure the Pcam in PYNQ, I can get data to come out of the MIPI pins of the image sensor.

From those tests, I think we can be confident that both my Kria and my Pcam are fine and that they can work together. I think that we can also suspect that the problem is related to the configuration of the Pcam. Perhaps it is not pausing enough between I2C read/writes, perhaps the traces are longer on the Kria vs PYNQ-ZU which creates extra latency that is not accounted for by the driver. I notice that the decoupling cap on the Kria is 1uF whereas it is 10uF + 100nF on the PYNQ-ZU. I notice that the Pcam enable line on the Kria is driven by an open drain with a 10K pullup vs the PYNQ-Z1 which uses a push-pull output driver. Perhaps my flex cable is not so great (it came with the Pcam). These differences might mean that longer delays are necessary, but I'm just guessing at this point. It is already operating at a low frequency (100kHz) so perhaps it's more about the delays between reads/writes. I'll keep debugging this and let you know if I figure it out.

"xilinx.com:hls:pixel_pack_2:1.0" not found when running "make" for regenerating the Vivado pynq base project

I'm trying to recreate the base overlay for Kria-Pynq.
I've got Vivado 2020.2.2 (Windows), which is the only version that should work (as I read here).
When running make (from the base directory), I get the following error:

ERROR: [BD::TCL 103-2012] The following IPs are not found in the IP Catalog:
  xilinx.com:hls:pixel_pack_2:1.0

Step1 of the make process make -C ../../pynq/boards/ZCU104/base/ hls_ip is not giving errors, so seems to be OK.
Step2 of the make process vivado -mode batch -source $(overlay_name).tcl -notrace [$(overlay_name)=base] gives the error of not finding xilinx.com:hls:pixel_pack_2:1.0.

Does anyone have any idea what could be the issue ?

Full log details:

C:\projects\kria\Kria-PYNQ\kv260\base>make
make -C ../../pynq/boards/ZCU104/base/ hls_ip
make[1]: Entering directory 'C:/projects/kria/Kria-PYNQ/pynq/boards/ZCU104/base'
vivado -mode batch -source build_ip.tcl -notrace

****** Vivado v2020.2.2 (64-bit)
  **** SW Build 3118627 on Tue Feb  9 05:14:06 MST 2021
  **** IP Build 3115676 on Tue Feb  9 10:48:11 MST 2021
    ** Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.

source build_ip.tcl -notrace
Building color_convert_2 IP
Checking color_convert_2
Building pixel_pack_2 IP
Checking pixel_pack_2
Building pixel_unpack_2 IP
Checking pixel_unpack_2
HLS IP builds complete
INFO: [Common 17-206] Exiting Vivado at Sun Sep 25 15:00:00 2022...
make[1]: Leaving directory 'C:/projects/kria/Kria-PYNQ/pynq/boards/ZCU104/base'

vivado -mode batch -source base.tcl -notrace

****** Vivado v2020.2.2 (64-bit)
  **** SW Build 3118627 on Tue Feb  9 05:14:06 MST 2021
  **** IP Build 3115676 on Tue Feb  9 10:48:11 MST 2021
    ** Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.

source base.tcl -notrace
INFO: [IP_Flow 19-234] Refreshing IP repositories
INFO: [IP_Flow 19-1700] Loaded user IP repository 'c:/projects/kria/Kria-PYNQ/pynq/boards/ip'.
INFO: [IP_Flow 19-2313] Loaded Vivado IP repository 'C:/Xilinx/Vivado/2020.2/data/ip'.
INFO: [BD::TCL 103-2003] Currently there is no design <base> in project, so creating one...
Wrote  : <C:\projects\kria\Kria-PYNQ\kv260\base\base\base.srcs\sources_1\bd\base\base.bd>
INFO: [BD::TCL 103-2004] Making design <base> as current_bd_design.
INFO: [BD::TCL 103-2005] Currently the variable <design_name> is equal to "base".
INFO: [BD::TCL 103-2011] Checking if the following IPs exist in the project's IP catalog:
user.org:user:address_remap:1.0 xilinx.com:ip:axi_iic:2.0 xilinx.com:ip:axi_intc:4.1 xilinx.com:ip:axi_register_slice:2.1 xilinx.com:ip:xlslice:1.0 xilinx.com:ip:mdm:3.2 xilinx.com:ip:util_ds_buf:2.1 xilinx.com:ip:proc_sys_reset:5.0 xilinx.com:ip:dfx_axi_shutdown_manager:1.0 xilinx.com:ip:xlconcat:2.1 xilinx.com:ip:zynq_ultra_ps_e:3.3 xilinx.com:user:dff_en_reset_vector:1.0 xilinx.com:ip:axi_gpio:2.0 xilinx.com:user:io_switch:1.1 xilinx.com:ip:xlconstant:1.1 xilinx.com:ip:axi_bram_ctrl:4.1 xilinx.com:ip:microblaze:11.0 xilinx.com:ip:axi_quad_spi:3.2 xilinx.com:ip:axi_timer:2.0 xilinx.com:ip:axi_vdma:6.3 xilinx.com:ip:axis_subset_converter:1.1 xilinx.com:ip:v_demosaic:1.1 xilinx.com:ip:v_gamma_lut:1.1 xilinx.com:ip:mipi_csi2_rx_subsystem:5.1 xilinx.com:hls:pixel_pack_2:1.0 xilinx.com:ip:v_proc_ss:2.3 xilinx.com:ip:lmb_v10:3.0 xilinx.com:ip:blk_mem_gen:8.4 xilinx.com:ip:lmb_bram_if_cntlr:4.0  .
WARNING: [Coretcl 2-175] No Catalog IPs found
ERROR: [BD::TCL 103-2012] The following IPs are not found in the IP Catalog:
  xilinx.com:hls:pixel_pack_2:1.0

Resolution: Please add the repository containing the IP(s) to the project.
WARNING: [BD::TCL 103-2023] Will not continue with creation of design due to the error(s) above.

<...log continues, but I guess no relevant info anymore...>

Installing PYNQ first and then other steps error

dpkg: error processing archive /var/cache/apt/archives/vitis-ai-runtime_1.3.2-0
ubuntu520.04.2_arm64.deb (--unpack):
trying to overwrite '/usr/bin/dump_op_weights', which is also in package libva
rt 1.4.0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package vitis-ai-library.
Preparing to unpack .../vitis-ai-library_1.3.2-0ubuntu5
20.04.2_arm64.deb ...
Unpacking vitis-ai-library (1.3.2-0ubuntu520.04.2) ...
dpkg: error processing archive /var/cache/apt/archives/vitis-ai-library_1.3.2-0
ubuntu5
20.04.2_arm64.deb (--unpack):
trying to overwrite '/usr/lib/libvart-runner-assistant.so', which is also in p
ackage libvart 1.4.0
Errors were encountered while processing:
/var/cache/apt/archives/vitis-ai-runtime_1.3.2-0ubuntu520.04.2_arm64.deb
/var/cache/apt/archives/vitis-ai-library_1.3.2-0ubuntu5
20.04.2_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

install.sh fails with โ€˜/home/root/jupyter_notebooks/โ€™ not found

when following instructions to install pynq, when running "sudo bash install.sh KD240", it fails with the following:
โ€œcp: cannot create directory โ€˜/home/root/jupyter_notebooks/โ€™: no such file or directoryโ€

can workaround with manually creating that directory before running install.sh, but thats not part of the instructions right now.

support to mipi sensor in the kria accessory kit

Hello,

It seems that for now PYNQ just support the MIPI sensor from digilent pcam5 and not the one included in the basic accessory pack of the KV260 https://www.xilinx.com/products/som/kria/kv260-vision-starter-kit/basic-accessory-pack.html.
Is there any way to add support to it even with the base overlay?
or it is a completely different hardware design?
Any chance to just implement a new python driver?

Thanks for the help whatever the answer
Best

Davide

More emphasis on device firmware version in Getting start guide

Hi

The wiki pointed out the firmware version of KV260 should match with Ubuntu version.
For example the FW 2021.1 will not boot Ubuntu 22.
This is NOT reflected on the getting to start guide in Xilinx website though it did cover in wiki

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/1641152513#Ubuntu-LTS

I just received a device manufactured in July 2022. But I unable to boot Ubuntu 22.
I later realised the FW need to be updated.

I recommend put more emphasis on the FW version checking step in getting start guide.

Thanks

Unable to install PYNQ

Hi, I was able to install PYNQ before, but I wanted a new clean install.
Unfortunately, it is not working now, these are the steps I am doing after burning the Ubuntu image:

ubuntu@kria:~/Kria-PYNQ$ history
    1  ping 8.8.8.8
    2  sudo snap install xlnx-config --classic
    3  xlnx-config.sysinit
    4  sudo reboot
    5  xlnx-config.sysinit
    6  git clone https://github.com/Xilinx/Kria-PYNQ.git
    7  cd Kria-PYNQ/
    8  sudo bash install.sh
    9  history

and I am getting the following error message:

etting up libavfilter7:arm64 (7:4.2.4-1ubuntu0.1) ...
Setting up gstreamer1.0-libav:arm64 (1.16.2-2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...


Xilinx environment setup is complete



ubuntu@kria:~$ git clone https://github.com/Xilinx/Kria-PYNQ.git
Cloning into 'Kria-PYNQ'...
remote: Enumerating objects: 73, done.
remote: Counting objects: 100% (73/73), done.
remote: Compressing objects: 100% (59/59), done.
remote: Total 73 (delta 18), reused 60 (delta 11), pack-reused 0
Unpacking objects: 100% (73/73), 1.25 MiB | 3.25 MiB/s, done.
ubuntu@kria:~$ cd Kria-PYNQ/
ubuntu@kria:~/Kria-PYNQ$ sudo bash install.sh
[sudo] password for ubuntu:
Installing PYNQ, this process takes around 25 minutes
Submodule 'pynq' (https://github.com/Xilinx/PYNQ.git) registered for path 'pynq'
Cloning into '/home/ubuntu/Kria-PYNQ/pynq'...
Submodule path 'pynq': checked out '59515a9b5de6fad0ff0538bfc50010b16f53c9a8'
Executing: /tmp/apt-key-gpghome.WeKxgK8Oih/gpg.1.sh --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 --verbose 803DDF595EA7B6644F9B96B752150A179A9E84C9
gpg: no running Dirmngr - starting '/usr/bin/dirmngr'
gpg: waiting for the dirmngr to come up ... (5s)
gpg: connection to dirmngr established
gpg: data source: http://162.213.33.9:80
gpg: armor header: Comment: Hostname:
gpg: armor header: Version: Hockeypuck ~unreleased
gpg: pub  rsa4096/52150A179A9E84C9 2020-06-07  Launchpad PPA for Ubuntu Xilinx
gpg: key 52150A179A9E84C9: "Launchpad PPA for Ubuntu Xilinx" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
Hit:1 http://ppa.launchpad.net/ubuntu-xilinx/updates/ubuntu focal InRelease
Hit:2 http://oem.archive.canonical.com/updates focal-limerick InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Get:7 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages [1155 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports focal-updates/main Translation-en [316 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted Translation-en [127 kB]
Fetched 1711 kB in 3s (632 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
170 packages can be upgraded. Run 'apt list --upgradable' to see them.
Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Hit:2 http://oem.archive.canonical.com/updates focal-limerick InRelease
Hit:3 http://ppa.launchpad.net/ubuntu-xilinx/updates/ubuntu focal InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libdrm-xlnx-dev : Depends: libdrm-xlnx-amdgpu1 (= 2.4.102-1ubuntu1~20.04.1xilinx1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ubuntu@kria:~/Kria-PYNQ$

Other steps I tried:

  • Running GUI or command line, same issue
  • Doing apt update/upgrade after or before the installation
  • Trying different SD cards

If I try to install libdrm-xlnx-amdgpu1 individually, then I run into other dependencies errors:

Thanks,
drz

unmet dependencies

Hi Guys

I have KV260 AI Vision Starter Kit.
Boot binary:2021.2_update2_BOOT.BIN
Ubuntu Desktop 20.04.3 LTS

I get following error after sudo bash install.sh

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libopencv-viz4.2 : Depends: libvtk6.3 (>= 6.3.0+dfsg2) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

can someone help me?

Best regards Michael

Kria KV260 sudo bash install.sh -b KV260

Hi everyone,
I am new beginner for Linux OS and Xilinx FPGA, inculde Kria KV260.
I have been following this tutorial, https://www.fpgadeveloper.com/setup-pynq-on-the-kria-kv260-vision-ai-starter-kit/. In order to learn how this Kria working.
Now I am facing the problem while clone from Github, sudo bash install.sh -b KV260
The terminal shows:
image
I also checked the version that is installed, it is
apt-cache policy python3.10-venv:
python3.10-venv:
Installed: 3.10.6-122.04.2
Candidate: 3.10.6-1
22.04.2
Version table:
*** 3.10.6-1~22.04.2 500
500 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 Packages
500 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe arm64 Packages
100 /var/lib/dpkg/status
3.10.4-3 500
500 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 Packages

How can I successfully clone from this github?
best regards,
thitathita

Self test failed

Hi.

I pulled the 992ffc6 version of repo.

I ran some DPU and face recognition, edge detection example with no problems at all.

Then I started the selftest. There are quite some overlays had failed the test, Do I need to worry about this or this is a common thing.
Also how can I see the list of passed overlay test.

ubuntu@kria:~/doc/Kria-PYNQ$ sudo ./selftest.sh
[sudo] password for ubuntu:
/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq_composable/runtime_tests /home/ubuntu/doc/Kria-PYNQ
/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/pl_server/xrt_device.py:325: DeprecationWarning: There is no current event loop
  self._loop = asyncio.get_event_loop()
/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/pl_server/embedded_device.py:660: ResourceWarning: unclosed file <_io.BufferedWriter name='/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/pl_server/_current_metadata.pkl'>
  pickle.dump(parser, open(f"{STATE_DIR}/_current_metadata.pkl", "wb"))
ResourceWarning: Enable tracemalloc to get the object allocation traceback
============================================= test session starts =============================================
platform linux -- Python 3.10.6, pytest-7.2.0, pluggy-1.0.0
rootdir: /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq_composable/runtime_tests
plugins: dependency-0.5.1, timeout-2.1.0, dash-2.6.0, anyio-3.6.1
collected 4 items

test_apps.py FFFF                                                                                       [100%]

================================================== FAILURES ===================================================
_____________ test_diff_gaussians[DifferenceGaussians(pytest.overlay, VSource.OpenCV, VSink.DP)] ______________

obj = 'DifferenceGaussians(pytest.overlay, VSource.OpenCV, VSink.DP)'

    @pytest.mark.parametrize('obj', apps)
    def test_diff_gaussians(obj):
        app = eval(obj)
>       app.start()

test_apps.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../apps.py:127: in start
    self._video.start()
../video.py:563: in start
    self._video.start()
../video.py:465: in start
    self._dp.configure(self.mode, PIXEL_RGB)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pynq_composable.video._DisplayPort object at 0xffff99cead40>
mode = VideoMode: width=1280 height=720 bpp=24 fps=60
pixelformat = <pynq.lib.video.common.PixelFormat object at 0xffffa0bb9c90>

    def configure(self, mode, pixelformat):
        """Configure the display output

        Raises an exception if the initialisation fails.

        Parameters
        ----------
        mode : VideoMode
            The resolution to set the output display to
        pixelformat : PixelFormat
            The pixel format to use - must contain a fourcc

        """
        if mode not in self.modes:
>           raise ValueError("mode: {} is not supported".format(mode))
E           ValueError: mode: VideoMode: width=1280 height=720 bpp=24 fps=60 is not supported

../../pynq/lib/video/drm.py:127: ValueError
_________________ test_diff_gaussians[CornerDetect(pytest.overlay, VSource.OpenCV, VSink.DP)] _________________

obj = 'CornerDetect(pytest.overlay, VSource.OpenCV, VSink.DP)'

    @pytest.mark.parametrize('obj', apps)
    def test_diff_gaussians(obj):
        app = eval(obj)
>       app.start()

test_apps.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../apps.py:127: in start
    self._video.start()
../video.py:563: in start
    self._video.start()
../video.py:465: in start
    self._dp.configure(self.mode, PIXEL_RGB)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pynq_composable.video._DisplayPort object at 0xffff98d711b0>
mode = VideoMode: width=1280 height=720 bpp=24 fps=60
pixelformat = <pynq.lib.video.common.PixelFormat object at 0xffffa0bb9c90>

    def configure(self, mode, pixelformat):
        """Configure the display output

        Raises an exception if the initialisation fails.

        Parameters
        ----------
        mode : VideoMode
            The resolution to set the output display to
        pixelformat : PixelFormat
            The pixel format to use - must contain a fourcc

        """
        if mode not in self.modes:
>           raise ValueError("mode: {} is not supported".format(mode))
E           ValueError: mode: VideoMode: width=1280 height=720 bpp=24 fps=60 is not supported

../../pynq/lib/video/drm.py:127: ValueError
_________________ test_diff_gaussians[ColorDetect(pytest.overlay, VSource.OpenCV, VSink.DP)] __________________

obj = 'ColorDetect(pytest.overlay, VSource.OpenCV, VSink.DP)'

    @pytest.mark.parametrize('obj', apps)
    def test_diff_gaussians(obj):
        app = eval(obj)
>       app.start()

test_apps.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../apps.py:127: in start
    self._video.start()
../video.py:563: in start
    self._video.start()
../video.py:465: in start
    self._dp.configure(self.mode, PIXEL_RGB)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pynq_composable.video._DisplayPort object at 0xffff9707ef50>
mode = VideoMode: width=1280 height=720 bpp=24 fps=60
pixelformat = <pynq.lib.video.common.PixelFormat object at 0xffffa0bb9c90>

    def configure(self, mode, pixelformat):
        """Configure the display output

        Raises an exception if the initialisation fails.

        Parameters
        ----------
        mode : VideoMode
            The resolution to set the output display to
        pixelformat : PixelFormat
            The pixel format to use - must contain a fourcc

        """
        if mode not in self.modes:
>           raise ValueError("mode: {} is not supported".format(mode))
E           ValueError: mode: VideoMode: width=1280 height=720 bpp=24 fps=60 is not supported

../../pynq/lib/video/drm.py:127: ValueError
__________________ test_diff_gaussians[EdgeDetect(pytest.overlay, VSource.OpenCV, VSink.DP)] __________________

obj = 'EdgeDetect(pytest.overlay, VSource.OpenCV, VSink.DP)'

    @pytest.mark.parametrize('obj', apps)
    def test_diff_gaussians(obj):
        app = eval(obj)
>       app.start()

test_apps.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../apps.py:127: in start
    self._video.start()
../video.py:563: in start
    self._video.start()
../video.py:465: in start
    self._dp.configure(self.mode, PIXEL_RGB)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pynq_composable.video._DisplayPort object at 0xffff974b0d30>
mode = VideoMode: width=1280 height=720 bpp=24 fps=60
pixelformat = <pynq.lib.video.common.PixelFormat object at 0xffffa0bb9c90>

    def configure(self, mode, pixelformat):
        """Configure the display output

        Raises an exception if the initialisation fails.

        Parameters
        ----------
        mode : VideoMode
            The resolution to set the output display to
        pixelformat : PixelFormat
            The pixel format to use - must contain a fourcc

        """
        if mode not in self.modes:
>           raise ValueError("mode: {} is not supported".format(mode))
E           ValueError: mode: VideoMode: width=1280 height=720 bpp=24 fps=60 is not supported

../../pynq/lib/video/drm.py:127: ValueError
============================================== warnings summary ===============================================
../../pynqmetadata/frontends/metadata.py:6
  /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynqmetadata/frontends/metadata.py:6: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.command.install_headers import install_headers

test_apps.py::test_diff_gaussians[DifferenceGaussians(pytest.overlay, VSource.OpenCV, VSink.DP)]
  /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/uio.py:74: DeprecationWarning: There is no current event loop
    asyncio.get_event_loop().add_reader(self.uio, functools.partial(

test_apps.py::test_diff_gaussians[DifferenceGaussians(pytest.overlay, VSource.OpenCV, VSink.DP)]
test_apps.py::test_diff_gaussians[CornerDetect(pytest.overlay, VSource.OpenCV, VSink.DP)]
test_apps.py::test_diff_gaussians[ColorDetect(pytest.overlay, VSource.OpenCV, VSink.DP)]
test_apps.py::test_diff_gaussians[EdgeDetect(pytest.overlay, VSource.OpenCV, VSink.DP)]
  /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/lib/video/drm.py:67: DeprecationWarning: There is no current event loop
    self._loop = asyncio.get_event_loop()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================================== short test summary info ===========================================
FAILED test_apps.py::test_diff_gaussians[DifferenceGaussians(pytest.overlay, VSource.OpenCV, VSink.DP)] - ValueError: mode: VideoMode: width=1280 height=720 bpp=24 fps=60 is not supported
FAILED test_apps.py::test_diff_gaussians[CornerDetect(pytest.overlay, VSource.OpenCV, VSink.DP)] - ValueError: mode: VideoMode: width=1280 height=720 bpp=24 fps=60 is not supported
FAILED test_apps.py::test_diff_gaussians[ColorDetect(pytest.overlay, VSource.OpenCV, VSink.DP)] - ValueError: mode: VideoMode: width=1280 height=720 bpp=24 fps=60 is not supported
FAILED test_apps.py::test_diff_gaussians[EdgeDetect(pytest.overlay, VSource.OpenCV, VSink.DP)] - ValueError: mode: VideoMode: width=1280 height=720 bpp=24 fps=60 is not supported
======================================= 4 failed, 6 warnings in 21.70s ========================================
/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/pl_server/xrt_device.py:325: DeprecationWarning: There is no current event loop
  self._loop = asyncio.get_event_loop()
/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/pl_server/embedded_device.py:209: ResourceWarning: unclosed file <_io.BufferedReader name='/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/pl_server/_current_metadata.pkl'>
  parser = pickle.load(open(metadata_state_file, "rb"))
ResourceWarning: Enable tracemalloc to get the object allocation traceback
============================================= test session starts =============================================
platform linux -- Python 3.10.6, pytest-7.2.0, pluggy-1.0.0
rootdir: /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq_composable/runtime_tests
plugins: dependency-0.5.1, timeout-2.1.0, dash-2.6.0, anyio-3.6.1
collected 11 items

test_composable.py ..........F                                                                                                                   [100%]

======================================================================= FAILURES =======================================================================
___________________________________________________________ test_data_movement_lut_negative ____________________________________________________________

create_composable = (<pynq.overlay.Overlay object at 0xffff95f9b700>, <pynq_composable.composable.Composable object at 0xffff91f38f70>)

    @pytest.mark.timeout(60)
    @pytest.mark.dependency(depends=["test_parser"])
    def test_data_movement_lut_negative(create_composable):
        ol, cpipe = create_composable
        cpipe.lut_accel.kernel_type = XvLut.negative
        pipeline = [cpipe.ps_video_in, cpipe.lut_accel, cpipe.ps_video_out]
        cpipe.compose(pipeline)
        """Check if composed correctly"""
        assert cpipe.current_pipeline == pipeline

        mode = VideoMode(_cols, _rows, 24)
        writechannel = ol.video.axi_vdma.writechannel
        readchannel = ol.video.axi_vdma.readchannel
        writechannel.mode = readchannel.mode = mode
        writechannel.start()
        readchannel.start()

        frame = writechannel.newframe()
        golden = np.empty(shape=frame.shape, dtype=np.uint8)
        for c in range(frame.shape[1]):
            value = c % 255
            frame[:, c, :] = value
            golden[:, c, :] = 255 - value
        writechannel.writeframe(frame)
        time.sleep(1)
        res = readchannel.readframe()
        writechannel.stop()
        readchannel.stop()
>       assert np.array_equal(golden, res)
E       assert False
E        +  where False = <function array_equal at 0xffffa02f5510>(array([[[255, 255, 255],\n        [254, 254, 254],\n        [253, 253, 253],\n        ...,\n        [123, 123, 123],\n     ...[253, 253, 253],\n        ...,\n        [123, 123, 123],\n        [122, 122, 122],\n        [121, 121, 121]]], dtype=uint8), PynqBuffer([[[255, 255, 255],\n             [254, 254, 254],\n             [253, 253, 253],\n             ...,\n          ...          ...,\n             [  0,   0,   0],\n             [  0,   0,   0],\n             [  0,   0,   0]]], dtype=uint8))
E        +    where <function array_equal at 0xffffa02f5510> = np.array_equal

test_composable.py:190: AssertionError
=================================================================== warnings summary ===================================================================
../../pynqmetadata/frontends/metadata.py:6
  /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynqmetadata/frontends/metadata.py:6: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.command.install_headers import install_headers

test_composable.py::test_data_movement_fifo
  /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/uio.py:74: DeprecationWarning: There is no current event loop
    asyncio.get_event_loop().add_reader(self.uio, functools.partial(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=============================================================== short test summary info ================================================================
FAILED test_composable.py::test_data_movement_lut_negative - assert False
================================================= 1 failed, 10 passed, 2 warnings in 225.97s (0:03:45) =================================================
/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/pl_server/xrt_device.py:325: DeprecationWarning: There is no current event loop
  self._loop = asyncio.get_event_loop()
/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/pl_server/embedded_device.py:209: ResourceWarning: unclosed file <_io.BufferedReader name='/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/pl_server/_current_metadata.pkl'>
  parser = pickle.load(open(metadata_state_file, "rb"))
ResourceWarning: Enable tracemalloc to get the object allocation traceback
================================================================= test session starts ==================================================================
platform linux -- Python 3.10.6, pytest-7.2.0, pluggy-1.0.0
rootdir: /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq_composable/runtime_tests
plugins: dependency-0.5.1, timeout-2.1.0, dash-2.6.0, anyio-3.6.1
collected 15 items

test_mmio_partial_bitstreams.py ...............                                                                                                  [100%]

=================================================================== warnings summary ===================================================================
../../pynqmetadata/frontends/metadata.py:6
  /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynqmetadata/frontends/metadata.py:6: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.command.install_headers import install_headers

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
====================================================== 15 passed, 1 warning in 318.27s (0:05:18) =======================================================
/home/ubuntu/doc/Kria-PYNQ
================================================================= test session starts ==================================================================
platform linux -- Python 3.10.6, pytest-7.2.0, pluggy-1.0.0
rootdir: /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq_dpu/tests
plugins: dependency-0.5.1, timeout-2.1.0, dash-2.6.0, anyio-3.6.1
collected 9 items

../../../../usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq_dpu/tests/test_vart.py .....                                             [ 55%]
../../../../usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq_dpu/tests/test_xrt.py ....                                               [100%]

=================================================================== warnings summary ===================================================================
../../../../usr/local/share/pynq-venv/lib/python3.10/site-packages/pynqmetadata/frontends/metadata.py:6
  /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynqmetadata/frontends/metadata.py:6: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.command.install_headers import install_headers

test_vart.py::test_dpu_overlay
  /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/pl_server/xrt_device.py:325: DeprecationWarning: There is no current event loop
    self._loop = asyncio.get_event_loop()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================================ 9 passed, 2 warnings in 14.47s ============================================================

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.