cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
3,411 Views
Registered: ‎11-28-2017

Using AXI DMA in petalinux

Hello!
I am starting to use Xilinx SoC, Zynq-7000 on ZC702 for now and will migrate to Zynq ultrascale+ on ZCU102 in near future.
And I went to trouble when trying to create project with AXI DMA in PL and Petalinux app working with it on PS side.
I have made PL project as described in http://www.fpgadeveloper.com/2014/08/using-the-axi-dma-in-vivado.html
Then I have created petalinux project with this design, both in BSP-way and Custom-Hardware ways, as described in UG1156(Petalinux tools workflow tutorial)
Then I created app, the helloworld one appeared
Then i added it using petalinux-config -c rootfs and added AXI DMA test using petalinux-config
Then I built, packaged everything, filled boot.bin and image.ub to sdcard and booted the board.
Linux started, app worked
-> BUT i couldnot start neither axidmatest nor modprobe axidmatest - nothing was found!!
Then i tried to replace code in app with code found in post from Linnj in https://forums.xilinx.com/t5/Embedded-Linux/AXI-DMA-with-Zynq-Running-Linux/td-p/522755
But trying to build app it couldn't find includes "linux/***"

So, I ask you 
1) how to include "linux/***" to make app in petalinux project?
2) how to run standard AXI DMA tests in petalinux?
3) how to build petalinux apps using Xilinx SDK running in Windows (I use mainly Windows and run linux only for petalinux tools operation)?

 

0 Kudos
3 Replies
Highlighted
Contributor
Contributor
3,294 Views
Registered: ‎06-21-2017

1)I think you can't include it in application, it's linux driver

 

2)check this tutorial

https://lauri.xn--vsandi-pxa.com/hdl/zynq/xilinx-dma.html 

 

3)You can download virtualbox and install Ubuntu on it, they are all free.

Highlighted
Observer
Observer
2,907 Views
Registered: ‎07-14-2017

Hi, @ken_ho!

Tutorial not found :(

Highlighted
Observer
Observer
2,570 Views
Registered: ‎07-05-2018

@shustik, @akhvostov:

Link is live, I think he included an extra trailing space... try this:
https://lauri.xn--vsandi-pxa.com/hdl/zynq/xilinx-dma.html