05-08-2019 11:25 AM
I'm using vivado 2018.3 and petalinux 2018.3 for my project.
I have generated sdk/sysroot and use vivado sdk to include it. The header file I need to use is already in serval asm / asm-generic folder(dmaxxx.h)
But the problem is that when I'm trying to build my project, it seems like the toolchain couldn't search all those asm||asm-generic||arch/arm64/asm path automatically, so it always pops an error telling no asm/xxx.h, but it does exist in other asm folder.
I'm using ZCU104 and build app for a53
Thanks!!!
05-13-2019 12:00 AM
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
05-08-2019 11:05 PM
anyone help?.....
05-09-2019 08:30 AM
Can you add the sysroots in the miscellaneous in the C/C++ build settings:
This flow is seen here:
05-09-2019 08:32 AM
I have added but still the same error
but i can compile opencv code
05-13-2019 12:00 AM
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