All of lore.kernel.org
 help / color / mirror / Atom feed
From: Toby Gomersall <toby.gomersall@smartacoustics.co.uk>
To: Nathan Rossi <nathan@nathanrossi.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>,
	"Hecht, Martin \(Silica\)" <Martin.Hecht@avnet.eu>
Subject: Re: yocto on zynq, How to configure kernel to include drivers
Date: Thu, 5 Nov 2015 11:16:53 +0000	[thread overview]
Message-ID: <563B3AA5.7070902@smartacoustics.co.uk> (raw)
In-Reply-To: <CA+aJhH3wtc=H2_0gn44fLxrspO5XEFUVxgjGwjDFBzQCtD7amg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3454 bytes --]



On 04/11/15 15:08, Nathan Rossi wrote:
> On Thu, Nov 5, 2015 at 12:20 AM, Toby Gomersall
> <toby.gomersall@smartacoustics.co.uk> wrote:
>> Hi,
>>
>> We've tried building the linux-xlnx tree standalone and we have the DMA
>> drivers available to add in menuconfig but not when I build
>> core-image-minimal. I thought the full build would pick up the
>> linux-xlnx kernel and make the same options available. Is there
>> something I need to do to make them available?
> 
> By default the linux-xlnx configs within meta-xilinx are close as
> possible to mainline configuration. In this case the only Xilinx DMA
> driver enabled by default is the VDMA driver as it is available both
> in linux-xlnx and in mainline/linux-yocto. It has been done this way
> to ensure users understanding that they are using a driver that may
> disappear in future linux-xlnx versions or be changed for upstream
> submission.
> 
> To configure these linux-xlnx only drivers, you can use the "-c
> menuconfig" and have your changes made temporarily (The drivers are
> under 'Device Drivers / DMA Engine support / Xilinx DMA Engines').
> 
> Or you can use the config fragment available in meta-xilinx by setting
> KERNEL_FEATURES up with the fragment (the fragment enables a few of
> linux-xlnx only drivers). Adding the following line to your machine's,
> distro's your local .conf depending on your requirements:
> 
> KERNEL_FEATURES += "bsp/xilinx/xilinx-drivers-linux-xlnx.scc"
> 
> Just on a side note, there was a bug in the .scc file, I have just
> fixed it in master (and fido). So you will need to pull to use this or
> it will give you an error.
> 
> Regards,
> Nathan

Hi Nathan,

Thank you, your bug fix and the extra line in local.conf solved the
problem. Is there any documentation on using the DMA drivers?

I can control the egpio in the shell, is it possible to do something
similar with the AXI bus?

Kind regards,
Toby

> 
>>
>> Regards,
>> Toby
>>
>> On 04/11/15 13:47, Hecht, Martin (Silica) wrote:
>>> Hi Toby,
>>>
>>> Please compare with http://www.wiki.xilinx.com/Linux+Drivers. Most of the DMA drivers aren't mainlined by now. You need to add them by yourself currently.
>>>
>>> Regards,
>>> Martin
>>>
>>>
>>> -----Original Message-----
>>> From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Toby Gomersall
>>> Sent: Mittwoch, 4. November 2015 14:44
>>> To: yocto@yoctoproject.org
>>> Subject: [yocto] yocto on zynq, How to configure kernel to include drivers
>>>
>>> I'm quite new to yocto so still have a lot to learn. I'm trying to include the DMA drivers in my yocto build for a Zynq based on the meta-xilinx layer (http://git.yoctoproject.org/cgit/cgit.cgi/meta-xilinx/).
>>>
>>> I thought I'd be able to add them in the kernel configuration
>>> (menuconfig) by running (from within the build directory):
>>>
>>> bitbake linux-xlnx -c kernel_configme -f bitbake linux-xlnx -c menuconfig
>>>
>>> I can't see the DMA drivers in menuconfig. However if I run menuconfig within the linux-xlnx tree (which is referenced by the SRCURI) I can see the DMA drivers. Is there some reason they're hidden in the build menuconfig?
>>>
>>> Thanks,
>>> Toby
>>>
>>>
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2015-11-05 11:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-04 13:35 yocto on zynq, How to configure kernel to include drivers Toby Gomersall
2015-11-04 13:47 ` Hecht, Martin (Silica)
2015-11-04 14:20   ` Toby Gomersall
2015-11-04 15:08     ` Nathan Rossi
2015-11-05 11:16       ` Toby Gomersall [this message]
2015-11-04 13:55 ` Philip Balister

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=563B3AA5.7070902@smartacoustics.co.uk \
    --to=toby.gomersall@smartacoustics.co.uk \
    --cc=Martin.Hecht@avnet.eu \
    --cc=nathan@nathanrossi.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.