bperez77 / xilinx_axidma

A zero-copy Linux driver and a userspace interface library for Xilinx's AXI DMA and VDMA IP blocks. These serve as bridges for communication between the processing system and FPGA programmable logic fabric, through one of the DMA ports on the Zynq processing system. Distributed under the MIT License.
MIT License
464 stars 227 forks source link

function "of_dma_configure" undefined #42

Closed sk2046 closed 6 years ago

sk2046 commented 6 years ago

when i use: petalinux-build,error,the log say function "of_dma_configure" undefined.i use petalinux 2015.4. Thanks.

sk2046 commented 6 years ago

Hi,and where the function "of_dma_configure" is defined?

bperez77 commented 6 years ago

That function is defined on line 88 of drivers/of/device.c. Note, that this is on the latest version of the Xilinx fork of Linux.

I'm not sure what version of Linux PetaLinux 2015.4 uses, but since you cannot find of_dma_configure, it is most likely a 3.x version of Linux. The driver only supports 4.x versions of Linux. The other possibility is that is a 4.x version, but an old enough version that they didn't yet backport all of the new Linux kernel's DMA inteface.

In either case, I would recommend upgrading to a newer version of PetaLinux, unless you have a good reason for using 2015.4.

Issue #37 is a similar issue.

sk2046 commented 6 years ago

Thank you very much!I will try again.

bperez77 commented 6 years ago

Closing this issue due to inactivity.