Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vitis Vision Library 2021.2- colorcorrectionmatrix not working #113

Open
kapoor7997 opened this issue Feb 25, 2022 · 2 comments
Open

Vitis Vision Library 2021.2- colorcorrectionmatrix not working #113

kapoor7997 opened this issue Feb 25, 2022 · 2 comments

Comments

@kapoor7997
Copy link

Hi vt-lib-support,

Linking it to this issue(#80) as the 2020.2 is also failing.

I have been working on getting the Vitis Vision Library 2021.2 working to show a demo to our clients(OUR COMPANY's WHOLE FUNDING IS BASED ON THIS WORKING).

My setup:
Board: ZCU102
Vivado: 2021.2
Vitis: 2021.2
Petalinux: 2021.2

Step I did:

  1. I cloned the Master branch on Vitis_Libraries(https://github.com/Xilinx/Vitis_Libraries)
  2. I followed the Vision README
  3. I DONT have an ALveo card. I want to build for Embedded Platform(ZCU102)
  4. Downloaded ZCU102 Base 2021.2 base image and ZYNQMP common image for 2021.1 from here(https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-platforms.html)
  5. I created a sysroot from the ZYNQMP common image for 2021.1
  6. I want to build for ZCU102 so was working with L2/examples/colorcorrection/matrix and followed this README(https://github.com/Xilinx/Vitis_Libraries/blob/master/vision/L2/README.md)
  7. I used following commands for compiling
  • source /tools/Xilinx/Vitis/2021.2/settings64.sh
  • export DEVICE=/home/dev64/Downloads/ThisPc_Petali/xilinx_zcu102_base_202120_1/xilinx_zcu102_base_202120_1.xpfm
  • export SYSROOT=/home/dev64/Downloads/ThisPc_Petali/xilinx-zynqmp-common-v2021.2/sysroots/sysroots/cortexa72-cortexa53-xilinx-linux/
  • export EDGE_COMMON_SW=/home/dev64/Downloads/ThisPc_Petali/xilinx-zynqmp-common-v2021.2/
  • export PERL=/usr/bin/perl
  • make host xclbin TARGET=hw HOST_ARCH=aarch64
  1. This generated the sd_card folder in the package_hw folder.
  2. To prepare my board, I made two partitions in the my board's SD card- 1.boot and 2.root. I copied the contents of sd_card folder into the boot partition of the Board's Sd Card. I extracted the rootfs.tar.gz from the common Image into the root partition of the SD card
  3. I booted this and I was seeing the console ERROR shown in the PIC(libvideoioError.png). I could not see the libopencv libraries in the running linux on board. PIC(2_noOpencvLibraries.png). I found that the /usr/lib of running linux did not have the libopencv libraries. The libraries exist into the root partition /usr/lib but not in the running linux.
  4. If you notice carefully, I built it on 2021.2 but it still shows 2020.2 on the command line.
  5. Then I found that sd_card folder did not have the system.dtb.
    13.I copied the system.dtb from the base image to the board's SD card's boot partition. Booted again.
  6. Now I could see the libraries in the running linux. Also now I could see the board was showing that it was running on 2021 petalinux. (Pic 3_2021petalinuxNowShowing.png)
  7. Then I exported the XCl_BINDIR on the board.
    export XCL_BINDIR=/mnt/sd-mmcblk0p1/
  8. Then ran the script and I got this (Pic Attached 4_finalHangingError.png):

root@zynqmp-common-2021_2:/media/sd-mmcblk0p1# export XCL_BINDIR=/mnt/sd-mmcblk0p1/
root@zynqmp-common-2021_2:/media/sd-mmcblk0p1#
root@zynqmp-common-2021_2:/media/sd-mmcblk0p1#
root@zynqmp-common-2021_2:/media/sd-mmcblk0p1# sh run_script.sh
INFO: Running OpenCL section.
Found Platform
Platform Name: Xilinx
INFO: Device found - edge
XCLBIN File Name: krnl_ccm
INFO: Importing ./krnl_ccm.xclbin
Loading: './krnl_ccm.xclbin'

  1. It goes up to the point of Loading the xclbin kernel and then hangs up.

I have been working on vitis vision libraries for a while just trying to get them working and I had a errors in the 2020.2 environment (#80 )and after I confirmed that Xilinx's own common image and base embedded platform of 2020.2 is failing to run successfully I have not received any comment from Xilinx after that.

Now I have confirmed that Xilinx's 2021.2 vitis libraries are also hanging.

I need help with this as OUR FUNDING IS 100% DEPENDENT ON THIS DEMO.
4_finalHangingError
3_2021petalinuxNowShowing
2_noOpencvLibraries
1_libvideoioError

Thanks,
Kapoor7997

@kapoor7997
Copy link
Author

I saw that there was an error but the sd_card folder still got created. We already know from my previous comment that it didnt have system.dtb in the sd_card folder.

Please look at the file, ConsoleHostSide_LD_ibrary.txt

Console had this error:
"LD_LIBRARY_PATH=:/home/dev64/Downloads/ThisPc_petali/visionlibrary2021.2_project/xilinx-zynqmp-common-v2021.2/sysroots/cortexa72-cortexa53-xilinx-linux//usr/lib :/lib
/bin/sh: :/lib: No such file or directory"

NOW:
Attached is the console output of the board. Filename is: boarSide_run_Script_dmesg_intterrupts.txt
Look for following tags in the file:
D-MESSEGE
ZOCL_Intterrupts1
ZOCL_Intterrupts2
run_Scipt_Hangs

Looks like zocl interrupt is never coming.

boarSide_run_Script_dmesg_intterrupts.txt
ConsoleHostSide_LD_ibrary.txt

@vt-lib-support
Copy link
Collaborator

Hi @kapoor7997 ,

In the environment setup, the SYSROOT should point to aarch64-xilinx-linux instead of cortexa72.....
However, this looks like some issue with the hardware setup and not with the library code. (Please run software emulation and hardware emulation to confirm on your end too)

We suggest you to create a ticket in the forum where you can get the technical assistance to debug your stall issue on the board. This page has the info on the process.

vmayoral pushed a commit to vmayoral/Vitis_Libraries that referenced this issue Mar 17, 2022
db743e9 updat url in README.md and doc (Xilinx#113)
5d6466a Revert "nistp256 draft (Xilinx#107)" (Xilinx#112)
1d98667 nistp256 draft (Xilinx#107)
dec7844 Merge pull request Xilinx#109 from changg/test_timelimit
96f8c42 add memlimit

Co-authored-by: sdausr <[email protected]>
vt-lib-support pushed a commit that referenced this issue Apr 27, 2022
f7d1abc Merge pull request #122 from tuol/disable_2_case
ae62691 disable 2 case due to U250 platform change
3af143e Merge pull request #118 from tuol/fix_cr_1122542
3e7f919 temporally disable L3/tests/mlp, due to U250 platform change
1728d13 update opts.cfg
98d3f3f Merge pull request #117 from yuanqian/next
8639708 remove email from Jenkinsfile:https://jira.xilinx.com/browse/CR-1124831
18a7458 Merge pull request #116 from changg/wa_u280_201920
86e28ef WA for xilinx_u280_xdma_201920_3
07abe54 Merge pull request #114 from liyuanz/replace_cflags
7cb157c replace cflags with clflags
0196ded Merge pull request #113 from changg/cov_fix
fc100b4 cov fix
b201f43 cov fix
14067e6 Merge pull request #110 from liyuanz/next
bbe42e9 fix bug
257677d Merge pull request #109 from changg/pr_108
79db50c fix makefiles
984a71c update Makefile and utils
daf9820 Merge pull request #106 from liyuanz/replace_blacklist
28fe2ed replace whiltelist/blacklist to allowlist/blocklist
981b5a2 Merge pull request #105 from changg/pr_104
2f45a63 add time for hw_build
a21b8db add time
7256e35 add time
5f2c36a Merge pull request #102 from changg/add_extraflags
acce305 fix utils.mk
74536af fix utils.mk
3c0647e Merge pull request #101 from liyuanz/next
fc26744 increase mem
7a1b220 Merge pull request #99 from changg/fix_mks
055c521 fix typ
44ff7b9 fix utils.mk
4050d17 Merge pull request #98 from liyuanz/replace_targets
b0157d6 update targes
e41fc60 Merge pull request #96 from changg/metadata
f6d1e26 draft metadata
0bbb982 change 2021.2_stable_latest to 2022.1_stable_latest

Co-authored-by: sdausr <[email protected]>
vt-lib-support pushed a commit that referenced this issue Oct 24, 2022
1b75f16 Merge pull request #117 from liyuanz/add_m
cfc460f update
1b1fd0c Merge pull request #116 from tuol/cr_1138695
990951d remove connectivity from opts.cfg
fcff114 Merge pull request #112 from liyuanz/next
3c583c5 Merge branch 'next' into next
d148b7e Merge pull request #115 from tuol/1135042_2
517ab80 fix description.json
875ee0b Merge pull request #114 from tuol/cr_1135042_1
66a513b fix description.json
818c768 Merge pull request #113 from tuol/cr_1138695
0dd07e2 add missing app.bin
246611d update mk
be55cf9 Merge pull request #111 from tuol/cr_1138321_1
0a3d580 fix --nk option in connectivity setup
c48114c Merge pull request #110 from tuol/cr_1138321
35c48bc fix makefile, description.json and connectivity setup of cscmv and cscmvSingleHBM
651be1e Merge pull request #109 from tuol/cr_1135042
e4becb4 remove un-allowed properties from description.json
370087d Merge pull request #107 from yuanqian/update_doc_next_portal
b4d95f0 Merge pull request #108 from liyuanz/add_mem
5fb26ce add mem
90fb7b8 update
24b1d5e add memory
f454c44 update doc in next branch for portal
0ea11e4 Merge pull request #105 from yuanqian/update_hls_pragma
3491287 Merge pull request #106 from liyuanz/next
4c5d9a3 update
f81ca5a update hls pragma
ab89f67 change 2022.1_stable_latest to 2022.2_stable_latest
20d34e9 Merge pull request #103 from tuol/fix_conf_py
5b45226 update conf.py
eb29003 Update Jenkinsfile

Co-authored-by: sdausr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants