Ultra96 - Pre-built linux image DMA Driver missing

Hi ! I am building a project using the AXI_DMA IP in the PL of the Ultrascale+. I want to use linux on the cortex a53, but for some reason i don’t want to use petalinux to build the image. So I am using the Pre-built Image provided by avnet. I compile all my stuff with VITIS, generate the good device tree, etc…
Problems happen when it comes to create the linux application ( in the Application Project in vitis) :
Xilinx advices to use their Drivers . In my case I need the AXI_DMA Driver. I have the standalone one in Zynqmpfsbl BSP , but not the linux driver ! ( and also I don’t realy know where it should be located , in rootfs ? ).

So here is my question : Is there a way to integrante the Xilinx Linux Drivers from their Kernel in order to have them when I type #Include dmaengine.h ? I tried to call functions or include the dma headers but the buider does not find these files.

The only that can think of now is recompiling the kernel but I am new to linux drivers and I don’t have the right documentation to be able to do that.

Thank you for your time !
regards

@fletch can you help on this?

Hello Gauthier,

I think the header file for the Xilinx DMA Linux driver may not be called “dmaengine.h”. I can tell from my Ultra96-V2 board that the dma driver is present:
image

You may want to look at these Xilinx forum posts:
https://forums.xilinx.com/t5/Processor-System-Design-and-AXI/Using-AXI-DMA-in-petalinux/td-p/811534

https://forums.xilinx.com/t5/Embedded-Linux/Using-axi-dma-in-petalinux/td-p/967182

https://forums.xilinx.com/t5/Processor-System-Design-and-AXI/AXI-DMA-Tutorial-Example-with-Zynq-Running-Linux/td-p/740416

This blog:
https://lauri.võsandi.com/hdl/zynq/xilinx-dma.html

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

Cheers,
Tom