cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
563 Views
Registered: ‎07-05-2018

How to use sdk/sysroots in vivado sdk to cross compile xilinx/dma code

Jump to solution

I'm using petalinux 2018.3 to build my image

Now, SDK has been generated and some library such as opencv can be cross-compiled in SDK

But, when i'm trying to use dam API mentioned in this DOC https://www.kernel.org/doc/Documentation/DMA-API.txt

There are some errors occur.

The SDK setting and error is like this

01.png02.png

Is there any advice or tutorial I can follow?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
498 Views
Registered: ‎07-05-2018

This method is wrong 

In order to use dma in userspace the first thing you should do is build a kernel module for dma driver then compile your userspace code

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842418/Linux+DMA+From+User+Space

Chapter 4 in the above link is the right example, not Chapter 3

View solution in original post

0 Kudos
5 Replies
Highlighted
Xilinx Employee
Xilinx Employee
549 Views
Registered: ‎10-12-2018

Hi eleicoto@outlook.com ,

Please check this forum post. Hope it helps you.

https://forums.xilinx.com/t5/Embedded-Linux/no-includes-for-linux-application/td-p/726294

Thanks & Regards

Anil B

Thanks & Regards
Anil B
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Moderator
Moderator
538 Views
Registered: ‎09-12-2007
0 Kudos
Highlighted
522 Views
Registered: ‎07-05-2018

Yes I can, but the problem is that some file seems missing

0 Kudos
Highlighted
518 Views
Registered: ‎07-05-2018

I think this may not be my situation because the image & SDK build process has been completed successfully.

And I can compile OpenCV code using sysroots

0 Kudos
Highlighted
499 Views
Registered: ‎07-05-2018

This method is wrong 

In order to use dma in userspace the first thing you should do is build a kernel module for dma driver then compile your userspace code

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842418/Linux+DMA+From+User+Space

Chapter 4 in the above link is the right example, not Chapter 3

View solution in original post

0 Kudos