Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 69AA7E00970; Tue, 12 Sep 2017 06:08:21 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from webmail.sgl.com (mail1.sgl.com [209.87.231.69]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 40F0AE0091D; Tue, 12 Sep 2017 06:08:19 -0700 (PDT) Received: from [10.1.20.15] (unknown [10.1.20.15]) by webmail.sgl.com (Postfix) with ESMTP id 6709B1D240E6E; Tue, 12 Sep 2017 09:06:03 -0400 (EDT) To: Sandeep Gundlupet Raju , "yocto@yoctoproject.org" , "meta-xilinx@yoctoproject.org" References: <2169f5a0-7166-1ff0-6b43-611167a8cacf@gmail.com> From: Fan Zhang Message-ID: Date: Tue, 12 Sep 2017 09:08:18 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Subject: Re: [meta-xilinx] How to include Xilinx DMA driver X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Sep 2017 13:08:21 -0000 X-Groupsio-MsgNum: 37798 Content-Type: multipart/mixed; boundary="------------890DFD1E6C13873A1D5BAA92" Content-Language: en-US --------------890DFD1E6C13873A1D5BAA92 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi Sandeep, Thank you for your answer. Can you give some more info on how to get the CCF working in Yocto Linux? I can't find much online. I tried building clkc.c and pll.c as out of tree driver by copy over content in the folder kernel-source\drivers\clk\zynq, change the makefile and add the .bb file for build. The module compiled but fail to load. Giving me message "Unknown symbol in module or unknown parameter" On a semi-related issue. Is it recommended to use Yocto Linux for new development? or PetaLinux following the  "Workflow Tutorial 6 UG1156 (v2017.1) April 5, 2017" documentation? Many thanks, Fan On 11/09/2017 1:30 PM, Sandeep Gundlupet Raju wrote: > Hi Fan, > > Thanks, > Sandeep > > > -----Original Message----- > From: meta-xilinx-bounces@yoctoproject.org [mailto:meta-xilinx-bounces@yoctoproject.org] On Behalf Of Fan Zhang > Sent: Monday, September 11, 2017 9:38 AM > To: Robert Berger ; yocto@yoctoproject.org; meta-xilinx@yoctoproject.org > Subject: Re: [meta-xilinx] [yocto] How to include Xilinx DMA driver > > 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? > Yes > It does seems Xilinx_cdma is loaded succefully, but dmatest didn't. Here is the message I've got: > > In order to use DMATEST IP assumes AXI_DMA IP streaming interfaces are connected back to back in the HW design. Refer http://www.wiki.xilinx.com/DMA+Drivers+-+Soft+IPs > > root@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] [] (xilinx_axidmatest_probe [axidmatest]) from > [] (platform_drv_probe+0x50/0xb0) > [    3.028812] udevd[674]: worker [687] failed while handling > '/devices/soc0/dmatest@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? > > From 2017.1 onwards CCF is mandatory for all Xilinx drivers. > 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 >> >> --------------890DFD1E6C13873A1D5BAA92 Content-Type: text/x-vcard; charset=utf-8; name="fzhang.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="fzhang.vcf" begin:vcard fn:Fan Zhang n:Zhang;Fan org:Sander Geophysics Ltd. email;internet:fzhang@sgl.com title:Electronics Design Engineer tel;work:(613)521-9626 version:2.1 end:vcard --------------890DFD1E6C13873A1D5BAA92--