[meta-xilinx] [yocto] How to include Xilinx DMA driver
Fan Zhang
fzhang at sgl.com
Mon Sep 11 08:37:54 PDT 2017
Hi all
Thank you Robert for the guide. I tried option [1] out of tree driver.
Got it compiled, and loaded when image boot up. My understand of the dma
driver is that Linux DMA engine depends on the Xilinx device driver
(xilinx_cdma.c) and then dma_proxy.c driver depends on the Linux DMA
engine. Am I correct?
It does seems Xilinx_cdma is loaded succefully, but dmatest didn't. Here
is the message I've got:
root at microzed-zynq7:~# dmesg | grep dma
[ 0.202348] dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
[ 0.202370] dma-pl330 f8003000.dmac: DBUFF-128x8bytes
Num_Chans-8 Num_Peri-4 Num_Events-16
[ 0.202654] xilinx-vdma 7e200000.dma: failed to get axi_clk (4294967294)
[ 0.202679] xilinx-vdma: probe of 7e200000.dma failed with error -2
[ 2.609417] xilinx-cdma 7e200000.dma: Xilinx AXI CDMA Engine driver
Probed!!
[ 2.635552] Modules linked in: axidmatest(O+) xilinx_cdma(O)
[ 2.659271] PC is at xilinx_axidmatest_probe+0xd8/0x418 [axidmatest]
[ 2.916646] [<bf00522c>] (xilinx_axidmatest_probe [axidmatest]) from
[<c03905c8>] (platform_drv_probe+0x50/0xb0)
[ 3.028812] udevd[674]: worker [687] failed while handling
'/devices/soc0/dmatest at 0'
From these message, I'm guessing there is an issue in configuration of
the common clock framework. Is the clkc.c needs to be built as an out of
tree module to be used in Yocto?
Fan
On 08/09/2017 12:20 PM, Robert Berger wrote:
> Hi,
>
> On 2017-09-08 19:00, Fan Zhang wrote:
>> Hi All,
>>
>> 1. How to include xilinx_dma.c driver in to the poky image build?
>
> In case you want to include out-of tree drivers it could work like
> this[1] in case you want in-tree it's just a kernel patch similar to[2].
>
> Apparently you will need to turn on kernel config features. You might
> try something like this[3].
>
> For Yocto/Xilinx specific questions you might want to ask on the
> Xilinx mailing list[4].
>
> [1]
> https://github.com/RobertBerger/meta-mainline/tree/pyro-training-v4.9.x/multi-v7-ml/recipes-zedboard/xilinx-dma
>
> [2]
> https://github.com/RobertBerger/meta-mainline/blob/pyro-training-v4.9.x/multi-v7-ml/recipes-kernel/linux/patch/4.9.x/patches/zedboard-zynq7/zynq-qspi/0001-zynq-zedboard-non-mainline-qspi-support.patch
>
> [3]
> https://github.com/RobertBerger/meta-mainline/tree/pyro-training-v4.9.x/multi-v7-ml/recipes-kernel/linux/config/multi-v7-ml-base/features/zynq-qspi
>
> [4] https://lists.yoctoproject.org/listinfo/meta-xilinx
>
> Regards,
>
> Robert
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fzhang.vcf
Type: text/x-vcard
Size: 175 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20170911/533b4627/attachment.vcf>
More information about the meta-xilinx
mailing list