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

Using axi dma in petalinux

Jump to solution

I have already build my petalinux system and it can run on my ZCU104 successfully.

Also, I have packed sdk/sysroot, and in vivado sdk, I can use it to do cross compiler successfully(opencv)

Now I'm trying to call DMA API in Vivado SDK follow the method mention in this page

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

In 3.3 Linux kernel APIs, it mentions that 

To get the dma_API, you must #include <linux/dma-mapping.h>.  This
provides dma_addr_t and the interfaces described below.

 But I can't find those files or directory, is it should be generated during petalinux-build --sdk? 

Right now, I can't find them in sdk/sysroots.

Can anyone give me some hint? thanks

0 Kudos
1 Solution

Accepted Solutions
1,839 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 a right example not Chapter 3

View solution in original post

0 Kudos
1 Reply
1,840 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 a right example not Chapter 3

View solution in original post

0 Kudos