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: 
Visitor filzasaleem
Visitor
971 Views
Registered: ‎11-03-2017

petalinux module

Hi
I want to transfer data from PL to PS via DMA. I am using zedboard. I am using petalinux in the PS. i have created a module for the DMA called "axidma".  i have a header file in the module named axidma.h where i have defined some macros. axidma.h and axidma.c are in the same directory.
Now i want to use those macros in user space applicatiion but i cannot access them. I know it is possible by changing the makefile of the module but i am not an expert in makefiles so i dont know how to do that.
Any help will be appreciated

0 Kudos
4 Replies
Moderator
Moderator
961 Views
Registered: ‎12-04-2016

Re: petalinux module

Hi

 

You can find Zynq DMAC example code in this forum link, which might help you to kick start:-

https://forums.xilinx.com/t5/Zynq-All-Programmable-SoC/Using-Zynq-DMAC-to-transfer-data-from-PL-to-PS/td-p/661309

 

Best Regards

Shabbir

0 Kudos
Visitor filzasaleem
Visitor
955 Views
Registered: ‎11-03-2017

Re: petalinux module

i already have checked many examples.  and i have learned from them how to make a kernel module but non tell then about make file or any other method through which i can access header files of the kernel from user application.

0 Kudos
Explorer
Explorer
931 Views
Registered: ‎10-04-2017

Re: petalinux module

If you look at the headers_install rule in the top level Makefile you will see which directories are being exported.  Exported headers are found somewhere in the top level include directory.  Header files that are somewhere under the drivers directory are not going to be exported and so not accessible to a userspace app.

 

jeff

0 Kudos
Visitor filzasaleem
Visitor
923 Views
Registered: ‎11-03-2017

Re: petalinux module

i tried to use the headers_install and but it was giving me error, may be i was using it wrong or i it is not acceptable, i am not sure.

can you please tell me how to use headers_install.

0 Kudos