UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer miaoush
Observer
582 Views
Registered: ‎07-01-2019

DPU TRD v2.0 Integration using 2019 tools ZCU102

Hello,

Has anyone tried implementing DPU TRD v2.0 on 2019.1 package tools for the ZCU102 board?

I tried following the DPU Integration tutorial. But I get the following error when I run petalinux-build:

ERROR: petalinux-user-image-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=debug -y -c /home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/oe-rootfs-repo --installroot=/home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs --setopt=logdir=/home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/temp --nogpgcheck install dpu dnndk mtd-utils libmali-xlnx udev-extraconf bridge-utils hellopm packagegroup-core-ssh-dropbear watchdog-init packagegroup-petalinux-v4lutils base-passwd packagegroup-petalinux-opencv tcf-agent autostart packagegroup-petalinux-matchbox shadow kernel-modules packagegroup-core-boot pciutils run-postinsts openssh-sftp-server packagegroup-petalinux-x11 canutils' returned 1:
DNF version: 2.7.5
cachedir: /home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/oe-rootfs-repo
repo: using cache for: oe-repo
not found deltainfo for: oe-repo
not found updateinfo for: oe-repo
oe-repo: using metadata from Wed 31 Jul 2019 07:38:23 AM UTC.
Last metadata expiration check: 0:00:00 ago on Wed 31 Jul 2019 07:38:24 AM UTC.
--> Starting dependency resolution
--> Finished dependency resolution
Error: 
 Problem: conflicting requests
  - nothing provides libopencv_core.so.3.3()(64bit) needed by dnndk-1.0-r0.zcu102_zynqmp

ERROR: petalinux-user-image-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/temp/log.do_rootfs.6564
ERROR: Task (/home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs) failed with exit code '1'

I suspect that the problem lies in "nothing provides libopencv_core.so.3.3()(64bit)". I checked yocto library in my petalinux directory and the opencv version was 3.4.3. Maybe thats the issue? So I thought maybe I could edit the 'petalinuxbsp.conf' file so that the preferred version of opencv is opencv 3.3, but I can't find the recipe for opencv 3.3. 

Instead I decided to try using recipes-support/opencv/opencv_3.1.bb (old dpu integration tutorial tells you how to implement opencv 3.1), but that requires protobuf. The problem with protobuf is that I get the following error:

[INFO] building project
[INFO] sourcing bitbake
[INFO] generating user layers
INFO: bitbake petalinux-user-image
Loading cache: 100% |##########################################################| Time: 0:00:00
Loaded 1163 entries from dependency cache.
Parsing recipes: 100% |########################################################| Time: 0:01:06
Parsing of 2781 .bb files complete (853 cached, 1928 parsed). 3816 targets, 148 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#####################################################| Time: 0:00:15
Checking sstate mirror object availability: 100% |#############################| Time: 0:00:12
Sstate summary: Wanted 339 Found 22 Missed 634 Current 1674 (6% match, 84% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: protobuf-3.6.1+gitAUTOINC+48cb18e5c4-r0 do_fetch: Failed to fetch URL git://github.com/google/protobuf.git;branch=3.6.x, attempting MIRRORS if available
WARNING: dnndk-1.0-r0 do_package_qa: QA Issue: dnndk: found library in wrong location: /usr/local/lib/libn2cube.so [libdir]
ERROR: petalinux-user-image-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=debug -y -c /home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/oe-rootfs-repo --installroot=/home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs --setopt=logdir=/home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/temp --nogpgcheck install bridge-utils kernel-modules libmali-xlnx run-postinsts watchdog-init packagegroup-petalinux-opencv canutils dnndk dpu base-passwd openssh-sftp-server mtd-utils autostart pciutils tcf-agent packagegroup-core-ssh-dropbear packagegroup-petalinux-v4lutils packagegroup-petalinux-matchbox shadow packagegroup-petalinux-x11 udev-extraconf packagegroup-core-boot hellopm' returned 1:
DNF version: 2.7.5
cachedir: /home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/oe-rootfs-repo
repo: using cache for: oe-repo
not found deltainfo for: oe-repo
not found updateinfo for: oe-repo
oe-repo: using metadata from Wed 31 Jul 2019 09:23:28 AM UTC.
Last metadata expiration check: 0:00:00 ago on Wed 31 Jul 2019 09:23:29 AM UTC.
--> Starting dependency resolution
--> Finished dependency resolution
Error: 
 Problem: conflicting requests
  - nothing provides libopencv_core.so.3.3()(64bit) needed by dnndk-1.0-r0.zcu102_zynqmp

ERROR: petalinux-user-image-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/build/tmp/work/zcu102_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/temp/log.do_rootfs.7767
ERROR: Task (/home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6425 tasks of which 6254 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/user/Downloads/zcu102-dpu-trd-2018-2-190531/apu/dpu_petalinux_bsp/xilinx-zcu102-2019.1/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project

There have been previous issues about protobuf 3.4.x branch not existing, but 3.6.x exists if you check their github. Any possible ideas on how to workaround this?

 

Thanks in advance,

miaoush

5 Replies
Participant ohmmaxma007
Participant
544 Views
Registered: ‎06-23-2019

Re: DPU TRD v2.0 Integration using 2019 tools ZCU102

I have same ploblem like you but I'm suspect

repo: using cache for: oe-repo
not found deltainfo for: oe-repo
not found updateinfo for: oe-repo

 and it's not work

You try to check tutorial link https://github.com/Xilinx/Edge-AI-Platform-Tutorials/tree/master/docs/DPU-Integration ,it's changed,

It's not have opencv and some recipes

I think because i used ubuntu 2018.2 and vivado 2019.1 for create hdf and build by petalinux 2019.1 (I create my hdf on vivado 2019.1) but version recommend of tutorial is 2018.2

Can anyone find to fix this problem

 

0 Kudos
Xilinx Employee
Xilinx Employee
518 Views
Registered: ‎01-21-2014

Re: DPU TRD v2.0 Integration using 2019 tools ZCU102

To use 2019.1, you will need to down-rev openCV - it's possible, but I haven't done it yet,  so I can't recommed everything that needs to be done.  I would suggest sticking with 2018.2/3 until a new 2019.1 TRD is released. 

 

Terry

 

Participant ohmmaxma007
Participant
408 Views
Registered: ‎06-23-2019

Re: DPU TRD v2.0 Integration using 2019 tools ZCU102

Thank you for your guidance 

I try to down version opencv in petalinux 2019.1 from 3.4.2 to 3.3 (I'm copy openCV 3.3 from petalinux 2018.2 /opt/pkg/petalinux/2018.2/components/yocto/source/aarch64/layers/meta-petalinux/recipes-support/opencv to same directory but different version)

I think it's work and build 

But it's call libraries from opencv 3.4.2 ,I'm confussing (version opencv while build chaged)

ERROR log

then , I think i'm waiting dnndk version update on DPU Integration

Althought,DPU version chaged support for petalinux 2019.1

0 Kudos
Observer basaro
Observer
389 Views
Registered: ‎01-26-2016

Re: DPU TRD v2.0 Integration using 2019 tools ZCU102

Hello.

I can run DPU Integration Tutorial using 2019 on Ultra96.

Deffelent of DPU Integration Lab is that I use bsp file in the zcu102-dpu-trd-2019-1-190809.zip file, not use Edge-AI-Platform-Tutorials-master.zip.

When make project of petalinux, It command is "petalinux-create -t projcect --name zcu102example -s zcu102-dpu-trd-2019-1-timer/apu/dpu_petalinux_bsp/xilinx-dpu-trd-zcu102-v2019.1.bsp"

petaliux-config -> petalinux-build -> patalinux-package  and makeing sd card image.

v2019.1 is using opencv 3.4  . so I can run resnet50 on Ultra96.

 

Participant ohmmaxma007
Participant
276 Views
Registered: ‎06-23-2019

Re: DPU TRD v2.0 Integration using 2019 tools ZCU102

I'm found solution 

How to fix this by mysolve <My link> 

0 Kudos