cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
yhy.xilinx
Adventurer
Adventurer
1,181 Views
Registered: ‎06-20-2019

No card is found issue while running an application

Jump to solution

Hello,

I am having issue while running an application on my card. After connecting to my device and using "./host.exe krnl.xcbin" command, I am seeing the following:

HOST: petalinux
EXE: /mnt/working_dir.exe
[XRT] WARNING: No devices found
[XRT] ERROR: No devices found

../libs/xcl2/xcl2.cpp:40 Error calling err = cl::Platform::get(&platforms), error code is: -1

 I used "sudo /opt/xilinx/xrt/bin/xbmgmt flash --scan" command to check, it also states this error: "no card is found!".

How am i supposed to let it recognize the card?

Is the problem sourced from the platform generation process? If so, which step must have been skipped? I utilized many different source while generating it because the info about this topic is so distributed.

Thanks.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
yhy.xilinx
Adventurer
Adventurer
895 Views
Registered: ‎06-20-2019

I had used those links and actually they were working properly. I was generating the platfrom as it must be. The reason of the problem was the outdated rootfs partition of the sdcard. It was not updated properly with sysroot.

Thanks for your replies.

View solution in original post

0 Kudos
11 Replies
stephenm
Xilinx Employee
Xilinx Employee
1,127 Views
Registered: ‎09-12-2007

what device are you using; Alveo, Zynq Ultrascale?

0 Kudos
yhy.xilinx
Adventurer
Adventurer
1,117 Views
Registered: ‎06-20-2019
zynq ultrascale/ zcu104
0 Kudos
stephenm
Xilinx Employee
Xilinx Employee
1,106 Views
Registered: ‎09-12-2007
yhy.xilinx
Adventurer
Adventurer
1,089 Views
Registered: ‎06-20-2019

I tried different ways.
1) I used this link(https://github.com/Xilinx/XRT/tree/master/src/platform) and created my platform and build a platform project by the use generated xsa file. It was built without a problem. However, I got the error. I utilized the tcl command and created xsa first and then I used peta-build.sh to create using petalinux.
2) I followed this link: https://www.xilinx.com/html_docs/xilinx2019_2/vitis_doc/Chunk375818786.html#hog1570652702356 (and this https://www.xilinx.com/html_docs/xilinx2019_2/vitis_doc/Chunk356017304.html#jvn1570652701832) . It shows how to create hw and sw platform and build the project. I got the same error after building implementation and running it on the card.
3) The only difference of my implementation with the link you provide is that I am creating a platform based on linux instead of standalone option because the link I provide above guided me so.

0 Kudos
stephenm
Xilinx Employee
Xilinx Employee
1,063 Views
Registered: ‎09-12-2007

can you share your xsa file please?

yhy.xilinx
Adventurer
Adventurer
1,048 Views
Registered: ‎06-20-2019
I attached two of the xsa files I am using above(to the first post message).
0 Kudos
stephenm
Xilinx Employee
Xilinx Employee
979 Views
Registered: ‎09-12-2007

Can you try the script here to generate the XSA:

https://github.com/Xilinx/XRT/tree/master/src/platform/zcu104_base

For example:

Launch Vivado, and source the zcu102_base_xsa.tcl

To create the Linux Image, use the steps here:

https://www.xilinx.com/html_docs/xilinx2019_2/vitis_doc/Chunk375818786.html#hog1570652702356

yhy.xilinx
Adventurer
Adventurer
949 Views
Registered: ‎06-20-2019
I have used these links and attempted a lot, it did not work for me. After sending the files from my computer to the board, i am running init.sh file which must set the XRT but it doesn't. I do not know why. Therefore I am writing the "export XILINX_XRT=/usr" command by my hand and set the XRT. Later, when I run with "./sth.exe and krnl_name.xclbin", I get this error. They did not work. Do i have a problem with the .xsa generation? If so, how did you realize it? by looking at what?
0 Kudos
stephenm
Xilinx Employee
Xilinx Employee
942 Views
Registered: ‎09-12-2007

I generated the XSA by using the script here:

https://github.com/Xilinx/XRT/tree/master/src/platform/zcu104_base

Launch Vivado 2019.2, and source the zcu104_base_xsa.tcl 

The Petalinux project steps are seen here:

https://www.xilinx.com/html_docs/xilinx2019_2/vitis_doc/Chunk375818786.html#hog1570652702356

 

The same steps are seen here (with added screenshots):

https://www.hackster.io/news/microzed-chronicles-vitis-sw-platform-fd3921137bcf

 

yhy.xilinx
Adventurer
Adventurer
896 Views
Registered: ‎06-20-2019

I had used those links and actually they were working properly. I was generating the platfrom as it must be. The reason of the problem was the outdated rootfs partition of the sdcard. It was not updated properly with sysroot.

Thanks for your replies.

View solution in original post

0 Kudos
stephenm
Xilinx Employee
Xilinx Employee
883 Views
Registered: ‎09-12-2007

Ok great. can you mark this as solved then?