AnsweredAssumed Answered

s there any changes I need to do in the Makefiles to compile the iio drivers that AD provides in the Xilinx 4.6.0 kernel?

Question asked by jgm on Dec 20, 2016
Latest reply on Jan 9, 2017 by larsc

Is there any changes I need to do in the Makefiles to compile the iio drivers that AD provides in the Xilinx 4.6.0 kernel?

 

I copy the files from the AD linux package to the Xilinx kernel and I get the following error:

 

[ALL ] LD vmlinux.o
[ALL ] MODPOST vmlinux.o
[ALL ] GEN .version
[ALL ] CHK include/generated/compile.h
[ALL ] UPD include/generated/compile.h
[ALL ] CC init/version.o
[ALL ] LD init/built-in.o
[ALL ] drivers/built-in.o: In function `axiadc_hw_submit_block':
[ALL ] /home/jgm/Projects/Linux/components/linux-kernel/xlnx-4.6/drivers/iio/adc/cf_axi_adc_ring_stream.c:32: undefined reference to `iio_dmaengine_buffer_submit_block'
[ALL ] drivers/built-in.o:(.rodata+0x44cd8): undefined reference to `iio_dmaengine_buffer_abort'
[ERROR] make[2]: *** [vmlinux] Error 1
[ALL ] make[2]: Leaving directory `/home/jgm/Raptor/AD9361Build/fmcomms3/build/linux/kernel/xlnx-4.6'
[ERROR] make[1]: *** [sub-make] Error 2
[ALL ] make[1]: Leaving directory `/home/jgm/Projects/Linux/components/linux-kernel/xlnx-4.6'
[ALL ] make: *** [/home/jgm/Raptor/AD9361Build/fmcomms3/build/linux/kernel/xlnx-4.6/vmlinux] Error 2
[ALL ] make: Leaving directory `/home/jgm/Raptor/AD9361Build/fmcomms3/build/linux/kernel'

Outcomes