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

vivado sdk cross compile tool chain asm path not include

Jump to solution

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!!!

 

0 Kudos
1 Solution

Accepted Solutions
1,023 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
4 Replies
1,064 Views
Registered: ‎07-05-2018

anyone help?.....

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

Can you add the sysroots in the miscellaneous in the C/C++ build settings:

This flow is seen here:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/70254659/Creating+Linux+application+targeting+the+RFDC+driver+in+SDK+2018.3

0 Kudos
1,045 Views
Registered: ‎07-05-2018

I have added but still the same error 

but i can compile opencv code

0 Kudos
1,024 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