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: 
Contributor
Contributor
526 Views
Registered: ‎09-18-2018

Failed to run SDSoC application on linux

Hi all,

I have created a Linux application on SDSoC using the Matrix-multiplication template, all build process was successful but when testing on the board i get the following error:

ubuntu@arm:~$ ./my_app.elf
ERROR: /dev/mem can't be opened
Failed to map accelerator device @83c00000. Aborting
ERROR: Counter physical addresses not mapped yet!

but when run it with root access the board is no longer responding

ubuntu@arm:~$ sudo su
root@arm:/home/ubuntu# ./my_app.elf  ... i get no response, then i turn off the board

Note:

- I have included APF drivers : Device Drivers → Staging drivers → Xilinx APF Accelerator driver (ON)

- I have included APF DMA driver:: Device Drivers → Staging drivers → Xilinx APF Accelerator driver → Xilinx APF DMA engines support (ON)

- /dev/xlnk exists

ubuntu@arm:~$ dmesg | grep 'xlnk'
[ 1.861668] xlnk xlnk: Major 242
[ 1.863674] xlnk xlnk: xlnk driver loaded
[ 1.866297] xlnk xlnk: xlnk_pdev is not null
ubuntu@arm:~$

- I have tested a hello_world application (without hw acceleration), it worked fine.

ubuntu@arm:~$ sudo ./helloworld.elf
Hello world !

Please i need help to know if it misses some step to run my application.

Regards

0 Kudos
6 Replies
Explorer
Explorer
477 Views
Registered: ‎06-03-2015

Re: Failed to run SDSoC application on linux

Hi

Based  on Error log:

ubuntu@arm:~$ ./my_app.elf
ERROR: /dev/mem can't be opened
Failed to map accelerator device @83c00000. Aborting
ERROR: Counter physical addresses not mapped yet!

Looks like issue is in the Driver file , it not supporting to open device node file of "/dev/mem" by default

check the driver commo templete for open device node files

 

Thanks & Regards

Satish G 

G Satish Kumar
0 Kudos
Contributor
Contributor
456 Views
Registered: ‎09-18-2018

Re: Failed to run SDSoC application on linux

Hi @gsatish10, thanks for your help,

I did as you indicated, i noticed that there are some differences in driver files comparing with driver files of linux-xlnx kernel, so i have replaced them with driver files found on linux-xlnx. then i have made another array partition SDSoC application. but the problem isn't solved

linaro@linaro-ubuntu-desktop:~$ ./my_tmp_app.elf
ERROR: /dev/mem can't be opened
ERROR: unable to open xlnk
ERROR: Counter physical addresses not mapped yet!
linaro@linaro-ubuntu-desktop:~$

is there some other workaround to solve this problem ?

thanks

0 Kudos
Contributor
Contributor
433 Views
Registered: ‎09-18-2018

Re: Failed to run SDSoC application on linux

i have generated an SDSoC application using official xilinx linux kernel and it worked fine, so i'm thinking about two ways :

- Is there some branch in the ADI linux kernel that is close to the official xilinx one so that i can use to create my SDSoC application ?

- Is there a method to include ad9361 linux driver in Xilinx official kernel ?

Thanks

0 Kudos
Participant tianfangk
Participant
161 Views
Registered: ‎08-28-2019

回复: Failed to run SDSoC application on linux

Did you solve the problem? I have a same problem with my xc7z010 platform. Could you give me some ideas to solve this problem? Thanks for your help.

0 Kudos
Scholar watari
Scholar
140 Views
Registered: ‎06-16-2013

回复: Failed to run SDSoC application on linux

Hi @gsatish10 

 

Would you use strace command to debug your application ?

 

Best regards,

0 Kudos
Explorer
Explorer
64 Views
Registered: ‎06-03-2015

回复: Failed to run SDSoC application on linux

Hi 

 

Yes, I use strace to trace application

 

Regards

Satish G

G Satish Kumar
0 Kudos