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: 
Participant ohmmaxma007
Participant
1,300 Views
Registered: ‎06-23-2019

DPU Tutorial 2019.1

Jump to solution

I'm use petalinux 2019.1 & Vivado 2019 on Ubuntu 18.04 i'm try to test yocto project on Avnet ultra96-v2 from

(Link)

but i'm create hdf file from vivado and edit ip dpu for setting in my work

In build step it's error because recipe-support opencv3.1 cannot run on petalinux 2019.1 

[INFO] building project
[INFO] generating Kconfig for project
[INFO] silentconfig project
[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
[INFO] generating machine configuration
[INFO] generating bbappends for project . This may take time ! 
[INFO] generating u-boot configuration files
[INFO] generating kernel configuration files
[INFO] generating user layers
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating petalinux-user-image.bb
INFO: bitbake petalinux-user-image
WARNING: /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/project-spec/meta-user/recipes-support/opencv/opencv_3.1.bb: Exception during build_dependencies for cmake_do_configure
WARNING: /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/project-spec/meta-user/recipes-support/opencv/opencv_3.1.bb: Error during finalise of /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/project-spec/meta-user/recipes-support/opencv/opencv_3.1.bb
ERROR: ExpansionError during parsing /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/project-spec/meta-user/recipes-support/opencv/opencv_3.1.bb
Traceback (most recent call last):
bb.data_smart.ExpansionError: Failure expanding variable EXTRA_OECMAKE, expression was -DOPENCV_EXTRA_MODULES_PATH=/home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/aarch64-xilinx-linux/opencv/3.1+gitAUTOINC+92387b1ef8-r0/contrib/modules     -DWITH_1394=OFF     -DCMAKE_SKIP_RPATH=ON     -DOPENCV_ICV_PACKAGE_DOWNLOADED=808b791a6eac9ed78d32a7666804320e     -DOPENCV_ICV_PATH=/home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/aarch64-xilinx-linux/opencv/3.1+gitAUTOINC+92387b1ef8-r0/ippicv_lnx     ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1", "", d)}     ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.1", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1", "", d)}     ${@bb.utils.contains("TARGET_CC_ARCH", "-msse4.2", "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1 -DENABLE_SSE41=1 -DENABLE_SSE42=1", "", d)}     ${@base_conditional("libdir", "/usr/lib64", "-DLIB_SUFFIX=64", "", d)}     ${@base_conditional("libdir", "/usr/lib32", "-DLIB_SUFFIX=32", "", d)}   -DWITH_OPENCLAMDBLAS=OFF -DWITH_OPENCLAMDFFT=OFF -DBUILD_opencv_dnn=OFF -DWITH_EIGEN=ON -DWITH_GPHOTO2=ON -DWITH_GSTREAMER=ON -DWITH_GTK=ON -DWITH_JASPER=OFF -DWITH_JPEG=ON -DWITH_FFMPEG=OFF -DWITH_LIBV4L=ON -DWITH_OPENCL=OFF -DWITH_PNG=ON -DPYTHON3_NUMPY_INCLUDE_DIRS:PATH=/home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/aarch64-xilinx-linux/opencv/3.1+gitAUTOINC+92387b1ef8-r0/recipe-sysroot/usr/lib/python3.5/site-packages/numpy/core/include -DBUILD_EXAMPLES=ON -DINSTALL_PYTHON_EXAMPLES=ON -DWITH_TBB=ON -DBUILD_opencv_text=OFF -DWITH_TIFF=ON -DWITH_V4L=ON which triggered exception NameError: name 'base_conditional' is not defined


Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to build project

Then i fix theproblem i copy openCV from .../petalinux/2019.1/components/yocto/source/arm/layers/meta-petalinux/recipes-support to {PROJ ADDR}/projectspec/metauser

and it's work can build until last process it isn't work

[INFO] building project
[INFO] generating Kconfig for project
[INFO] silentconfig project
[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
[INFO] generating machine configuration
[INFO] generating bbappends for project . This may take time ! 
[INFO] generating u-boot configuration files
[INFO] generating kernel configuration files
[INFO] generating user layers
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating petalinux-user-image.bb
INFO: bitbake petalinux-user-image
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:01:08
Parsing of 2780 .bb files complete (0 cached, 2780 parsed). 3815 targets, 150 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
  /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/project-spec/meta-user/recipes-devtools/protobuf/protobuf_3.4.1.bbappend
NOTE: Resolving any missing task queue dependencies
NOTE: preferred version 3.1+% of opencv not available (for item opencv)
NOTE: versions of opencv available: 3.4.3+gitAUTOINC+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4
NOTE: preferred version 3.1+% of opencv not available (for item libopencv-ml)
NOTE: versions of opencv available: 3.4.3+gitAUTOINC+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4
NOTE: preferred version 3.1+% of opencv not available (for item libopencv-core)
NOTE: versions of opencv available: 3.4.3+gitAUTOINC+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4
NOTE: preferred version 3.1+% of opencv not available (for item opencv-dev)
NOTE: versions of opencv available: 3.4.3+gitAUTOINC+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4
NOTE: preferred version 3.1+% of opencv not available (for item libopencv-objdetect)
NOTE: versions of opencv available: 3.4.3+gitAUTOINC+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4
NOTE: preferred version 3.1+% of opencv not available (for item libopencv-calib3d)
NOTE: versions of opencv available: 3.4.3+gitAUTOINC+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4
NOTE: preferred version 3.1+% of opencv not available (for item libopencv-highgui)
NOTE: versions of opencv available: 3.4.3+gitAUTOINC+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4
NOTE: preferred version 3.1+% of opencv not available (for item opencv)
NOTE: versions of opencv available: 3.4.3+gitAUTOINC+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4
NOTE: preferred version 3.1+% of opencv not available (for item libopencv-imgproc)
NOTE: versions of opencv available: 3.4.3+gitAUTOINC+b38c50b3d0_1f6d6f0626_bdb7bb85f3_34e4206aef_fccf7cd6a4
Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:08
Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:35
Sstate summary: Wanted 1983 Found 1356 Missed 1254 Current 0 (68% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
Currently  8 running tasks (5512 of 6372)  86% |################################################################################################################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/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=debug -y -c /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/oe-rootfs-repo --installroot=/home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs --setopt=logdir=/home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/temp --nogpgcheck install packagegroup-petalinux-opencv parted-dbg parted watchdog-init dnndk shadow parted-dev pciutils udev-extraconf canutils hellopm bridge-utils packagegroup-core-ssh-dropbear kernel-modules packagegroup-core-boot dpu packagegroup-petalinux-matchbox mtd-utils run-postinsts autostart packagegroup-petalinux-x11 base-passwd openssh-sftp-server packagegroup-petalinux-v4lutils libmali-xlnx tcf-agent' returned 1:
DNF version: 2.7.5
cachedir: /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_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 Thu 25 Jul 2019 06:56:05 AM UTC.
Last metadata expiration check: 0:00:00 ago on Thu 25 Jul 2019 06:56:06 AM UTC.
--> Starting dependency resolution
--> Finished dependency resolution
Error: 
 Problem: conflicting requests
  - nothing provides libopencv_core.so.3.1()(64bit) needed by dnndk-1.0-r0.plnx_zynqmp

ERROR: petalinux-user-image-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/temp/log.do_rootfs.10749
ERROR: Task (/home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6316 tasks of which 4039 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/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.

i'm checking package of petalinux 2019.1 on ubuntu 18.04 ,i'm installed all file

Anyone can fix this problem or how to edit invoke dnf ?

 

 

1 Solution

Accepted Solutions
Participant ohmmaxma007
Participant
676 Views
Registered: ‎06-23-2019

Re: DPU Tutorial 2019.1

Jump to solution

Thank for reply me 

I found the solution for use petalinux 2019.1 with dpu setting from your hdf file

You must download zcu102 version 2019.1 in dpu trd topic from this <link>

After you extract file to your location 

1. cd to you place project

2. create your project by BSP  file petalinux-create -t project -s...[Location you extract file]/zcu102-dpu-trd-2019-1-timer/apu/dpu_petalinux_bsp/xilinx-dpu-trd-zcu102-v2019.1.bsp

3. cd [to your BSPproject]/project-spec/meta-user

4.follow from this step

cp -r recipes-apps/dnndk/ [Your petalinux-project-v2019.1 path ]/project-spec/meta-user/recipes-apps/
cp -r recipes-modules [Your petalinux-project-v2019.1 path ]/project-spec/meta-user
cp -r recipes-apps/autostart [Your petalinux-project-v2019.1 path ]/project-spec/meta-user/recipes-apps/
cp -r recipes-core/base-files/ [Your petalinux-project-v2019.1 path ]/project-spec/meta-user/recipes-core/

After that Follow from DPU-Integration Generating the Linux Platform in PetaLinux...step 3

View solution in original post

11 Replies
Observer stephen_lim
Observer
1,220 Views
Registered: ‎11-09-2016

Re: Petalinux-build error Can't not invoke dnf

Jump to solution

Why don't you refer to the below link?

http://lists.openembedded.org/pipermail/openembedded-devel/2018-January/116590.html

As for the contents, I think you need to try to  use @bb.utils.contains instead of @base_conditional.

-                ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)} \
+                ${@bb.utils.contains('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)} 

 

Good luck~

Contributor
Contributor
1,178 Views
Registered: ‎06-20-2018

Re: DPU Tutorial 2019.1

Jump to solution

I followed DPU Integration Tutoial on ZCU102 with Vivado & Petalinux v2018.2 and seeing the same issue.

Chris

ERROR: petalinux-user-image-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/chris/FPGA/l2_zcu102/l2_zcu102.peta/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /home/chris/FPGA/l2_zcu102/l2_zcu102.peta/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/chris/FPGA/l2_zcu102/l2_zcu102.peta/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/home/chris/FPGA/l2_zcu102/l2_zcu102.peta/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/oe-rootfs-repo --installroot=/home/chris/FPGA/l2_zcu102/l2_zcu102.peta/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs --setopt=logdir=/home/chris/FPGA/l2_zcu102/l2_zcu102.peta/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/temp --nogpgcheck install hellopm openssh-sftp-server tcf-agent packagegroup-petalinux-opencv dnndk bridge-utils packagegroup-petalinux-x11 run-postinsts packagegroup-core-boot mtd-utils libmali8 kernel-modules dpu udev-extraconf pciutils canutils shadow autostart packagegroup-core-ssh-dropbear packagegroup-petalinux-matchbox packagegroup-petalinux-v4lutils base-passwd' returned 1:
Added oe-repo repo from /home/chris/FPGA/l2_zcu102/l2_zcu102.peta/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/oe-rootfs-repo
Last metadata expiration check: 0:00:01 ago on Thu 01 Aug 2019 09:21:22 PM UTC.
Error:
Problem: conflicting requests
- nothing provides libopencv_core.so.3.1()(64bit) needed by dnndk-1.0-r0.plnx_zynqmp

0 Kudos
Observer stephen_lim
Observer
1,155 Views
Registered: ‎11-09-2016

Re: DPU Tutorial 2019.1

Jump to solution

Hello Chris!

Did you add the opencv 3.1 recipe in recipes-support? In order to use DPU v1.3.0, you should use opencv 3.1 instead of 3.3 in petalinux 2018.2.

1. Add the opencv 3.1 recipe

cp -rp ../files/recipes-support project-spec/meta-user

2. Append the below into petalinuxbsp.conf

PREFERRED_VERSION_opencv ?= "3.1+%"

OPENCV_PACKAGES_remove = " \
libopencv-ccalib \
"

I hope that you would be good.

Stephen

0 Kudos
Participant ohmmaxma007
Participant
1,142 Views
Registered: ‎06-23-2019

Re: DPU Tutorial 2019.1

Jump to solution

Hello Stephen

the document updated Link , it's doesn't use openCV 3.1 

I try to build project on Petalinux2019.1 again later I'm update chaged

[INFO] building project
[INFO] generating Kconfig for project
[INFO] silentconfig project
[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
[INFO] generating machine configuration
[INFO] generating bbappends for project . This may take time ! 
[INFO] generating u-boot configuration files
[INFO] generating kernel configuration files
[INFO] generating user layers
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating petalinux-user-image.bb
INFO: bitbake petalinux-user-image
Parsing recipes: 100% |##########################################| Time: 0:01:06
Parsing of 2780 .bb files complete (0 cached, 2780 parsed). 3815 targets, 150 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:00:08
Checking sstate mirror object availability: 100% |###############| Time: 0:00:35
Sstate summary: Wanted 1977 Found 1356 Missed 1242 Current 0 (68% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
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/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=debug -y -c /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/oe-rootfs-repo --installroot=/home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs --setopt=logdir=/home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/temp --nogpgcheck install watchdog-init shadow canutils kernel-modules packagegroup-core-ssh-dropbear base-passwd packagegroup-core-boot run-postinsts pciutils packagegroup-petalinux-opencv openssh-sftp-server packagegroup-petalinux-v4lutils autostart packagegroup-petalinux-x11 dpu bridge-utils packagegroup-petalinux-matchbox udev-extraconf hellopm tcf-agent dnndk mtd-utils libmali-xlnx' returned 1:
DNF version: 2.7.5
cachedir: /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_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 Thu 01 Aug 2019 08:06:58 AM UTC.
Last metadata expiration check: 0:00:00 ago on Thu 01 Aug 2019 08:06:58 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.plnx_zynqmp

ERROR: petalinux-user-image-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/build/tmp/work/plnx_zynqmp-xilinx-linux/petalinux-user-image/1.0-r0/temp/log.do_rootfs.27955
ERROR: Task (/home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6297 tasks of which 4040 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/ohm/vam_bael/petalinux_2019_1/petalinux_dpu_ultra96/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

I think it's want openCV3.3 but I'm not have recipes 

 

 

0 Kudos
Observer stephen_lim
Observer
1,130 Views
Registered: ‎11-09-2016

Re: DPU Tutorial 2019.1

Jump to solution

If you use DPU v2.0(arch v1.4.0), opencv 3.3 is required by DNNDK. 

I'm attaching a oencv 3.3 recipe in recipe-support.

And, you should add the below into petalinuxbsp.conf in order to use open 3.3 instead of 3.4 because petalinux 2019.1 uses opencv 3.4 basically.

in petalinuxbsp.conf

PREFERRED_VERSION_opencv ?= "3.3+%"

I think you need to modify the opencv 3.3 recipe for Petalinux 2019.1.

Good luck~

0 Kudos
Contributor
Contributor
1,117 Views
Registered: ‎06-20-2018

Re: DPU Tutorial 2019.1

Jump to solution

Thanks Stephen! I got passed the opencv 3.1 errors but now I have protobuf and protobuf-native errors. Any suggestion?

Chris.

WARNING: protobuf-3.4.1+gitAUTOINC+b04e5cba35-r0 do_fetch: Failed to fetch URL git://github.com/google/protobuf.git;branch=3.4.x, attempting MIRRORS if available
ERROR: protobuf-3.4.1+gitAUTOINC+b04e5cba35-r0 do_fetch: Fetcher failure: Unable to find revision b04e5cba356212e4e8c66c61bbe0c3a20537c5b9 in branch 3.4.x even from upstream
ERROR: protobuf-3.4.1+gitAUTOINC+b04e5cba35-r0 do_fetch: Fetcher failure for URL: 'git://github.com/google/protobuf.git;branch=3.4.x'. Unable to fetch URL from any source.
ERROR: protobuf-3.4.1+gitAUTOINC+b04e5cba35-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/chris/FPGA/l2_zcu102/l2_zcu102.peta/build/tmp/work/aarch64-xilinx-linux/protobuf/3.4.1+gitAUTOINC+b04e5cba35-r0/temp/log.do_fetch.19316
ERROR: Task (/home/chris/Tools/Petalinux/2018.2/components/yocto/source/aarch64/layers/meta-openembedded/meta-oe/recipes-devtools/protobuf/protobuf_3.4.1.bb:do_fetch) failed with exit code '1'
WARNING: protobuf-native-3.4.1+gitAUTOINC+b04e5cba35-r0 do_fetch: Failed to fetch URL git://github.com/google/protobuf.git;branch=3.4.x, attempting MIRRORS if available
ERROR: protobuf-native-3.4.1+gitAUTOINC+b04e5cba35-r0 do_fetch: Fetcher failure: Unable to find revision b04e5cba356212e4e8c66c61bbe0c3a20537c5b9 in branch 3.4.x even from upstream
ERROR: protobuf-native-3.4.1+gitAUTOINC+b04e5cba35-r0 do_fetch: Fetcher failure for URL: 'git://github.com/google/protobuf.git;branch=3.4.x'. Unable to fetch URL from any source.
ERROR: protobuf-native-3.4.1+gitAUTOINC+b04e5cba35-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/chris/FPGA/l2_zcu102/l2_zcu102.peta/build/tmp/work/x86_64-linux/protobuf-native/3.4.1+gitAUTOINC+b04e5cba35-r0/temp/log.do_fetch.19351
ERROR: Task (virtual:native:/home/chris/Tools/Petalinux/2018.2/components/yocto/source/aarch64/layers/meta-openembedded/meta-oe/recipes-devtools/protobuf/protobuf_3.4.1.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6546 tasks of which 6511 didn't need to be rerun and 2 failed.


0 Kudos
Contributor
Contributor
1,105 Views
Registered: ‎06-20-2018

Re: DPU Tutorial 2019.1

Jump to solution
0 Kudos
Participant ohmmaxma007
Participant
928 Views
Registered: ‎06-23-2019

Re: DPU Tutorial 2019.1

Jump to solution

Thank you stephen_lim &  chrischan  for your guidance

Now DPU Integration update It's not has protobuf problem

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)

Don't forget chaged base condition when you down version from stephen_lim comment http://lists.openembedded.org/pipermail/openembedded-devel/2018-January/116590.html

I think it's work ,While build version opencv changed

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

ERROR log

I prove to check recipe when i selected ,it's will error

It's dnndk from DPU-Itegration .Inside that libraries opencv version 3.3

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

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

ERROR log

I prove to check recipe when i selected ,it's will error

It's dnndk from DPU-Itegration .Inside that libraries opencv version 3.3

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

0 Kudos
Participant lucc1
Participant
767 Views
Registered: ‎01-23-2019

Re: DPU Tutorial 2019.1

Jump to solution

Experiencing all similar problems on my side,

Just want to check,

Did the DPU integration tutorial mentioned has been validated on 2019.1,

I had it working before on 2018.3

Anyone have build a petalinux 2019.1 with the DPU and made it work on a xilinx board?

Does the tutorial needs some update specific for 2019.1?

side note: working with  DNNDK3.1, DPU3.0, vivado 2019.1

 

--
Luc Chouinard
FPGA Architect & AI Specialist
Teledyne Imaging
Teledyne Lumenera
0 Kudos
Participant lucc1
Participant
740 Views
Registered: ‎01-23-2019

Re: DPU Tutorial 2019.1

Jump to solution

Quick Reply to:
ohmmaxma007
Observer
‎08-01-2019 07:28 PM - edited ‎08-01-2019 07:29 PM
###
I think it still uses openCV3.1, and there might be good reasons for that as we try other version but had problems, ...  cannot elaborate more on this.

Following the link mentionned by ohmmaxma007 above and going down the hierchy you would find:

https://github.com/Xilinx/Edge-AI-Platform-Tutorials/tree/master/docs/DPU-Integration/reference-files/files/recipes-support/opencv

and see that opencv_3.1.bb is there.

###

--
Luc Chouinard
FPGA Architect & AI Specialist
Teledyne Imaging
Teledyne Lumenera
0 Kudos
Participant ohmmaxma007
Participant
677 Views
Registered: ‎06-23-2019

Re: DPU Tutorial 2019.1

Jump to solution

Thank for reply me 

I found the solution for use petalinux 2019.1 with dpu setting from your hdf file

You must download zcu102 version 2019.1 in dpu trd topic from this <link>

After you extract file to your location 

1. cd to you place project

2. create your project by BSP  file petalinux-create -t project -s...[Location you extract file]/zcu102-dpu-trd-2019-1-timer/apu/dpu_petalinux_bsp/xilinx-dpu-trd-zcu102-v2019.1.bsp

3. cd [to your BSPproject]/project-spec/meta-user

4.follow from this step

cp -r recipes-apps/dnndk/ [Your petalinux-project-v2019.1 path ]/project-spec/meta-user/recipes-apps/
cp -r recipes-modules [Your petalinux-project-v2019.1 path ]/project-spec/meta-user
cp -r recipes-apps/autostart [Your petalinux-project-v2019.1 path ]/project-spec/meta-user/recipes-apps/
cp -r recipes-core/base-files/ [Your petalinux-project-v2019.1 path ]/project-spec/meta-user/recipes-core/

After that Follow from DPU-Integration Generating the Linux Platform in PetaLinux...step 3

View solution in original post