All of lore.kernel.org
 help / color / mirror / Atom feed
* yocto on zynq, How to configure kernel to include drivers
@ 2015-11-04 13:35 Toby Gomersall
  2015-11-04 13:47 ` Hecht, Martin (Silica)
  2015-11-04 13:55 ` Philip Balister
  0 siblings, 2 replies; 6+ messages in thread
From: Toby Gomersall @ 2015-11-04 13:35 UTC (permalink / raw)
  To: yocto

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

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



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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: yocto on zynq, How to configure kernel to include drivers
  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 13:55 ` Philip Balister
  1 sibling, 1 reply; 6+ messages in thread
From: Hecht, Martin (Silica) @ 2015-11-04 13:47 UTC (permalink / raw)
  To: Toby Gomersall, yocto

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: yocto on zynq, How to configure kernel to include drivers
  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 13:55 ` Philip Balister
  1 sibling, 0 replies; 6+ messages in thread
From: Philip Balister @ 2015-11-04 13:55 UTC (permalink / raw)
  To: Toby Gomersall, yocto

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

On 11/04/2015 08:35 AM, Toby Gomersall wrote:
> 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/).

You should try emailing this list for meta-xilinx specific issues.

https://lists.yoctoproject.org/listinfo/meta-xilinx

Philip

> 
> 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
> 
> 
> 
> 


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: yocto on zynq, How to configure kernel to include drivers
  2015-11-04 13:47 ` Hecht, Martin (Silica)
@ 2015-11-04 14:20   ` Toby Gomersall
  2015-11-04 15:08     ` Nathan Rossi
  0 siblings, 1 reply; 6+ messages in thread
From: Toby Gomersall @ 2015-11-04 14:20 UTC (permalink / raw)
  To: Hecht, Martin (Silica), yocto

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

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?

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
> 
> 


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: yocto on zynq, How to configure kernel to include drivers
  2015-11-04 14:20   ` Toby Gomersall
@ 2015-11-04 15:08     ` Nathan Rossi
  2015-11-05 11:16       ` Toby Gomersall
  0 siblings, 1 reply; 6+ messages in thread
From: Nathan Rossi @ 2015-11-04 15:08 UTC (permalink / raw)
  To: Toby Gomersall; +Cc: yocto, Hecht, Martin (Silica)

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

>
> 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
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: yocto on zynq, How to configure kernel to include drivers
  2015-11-04 15:08     ` Nathan Rossi
@ 2015-11-05 11:16       ` Toby Gomersall
  0 siblings, 0 replies; 6+ messages in thread
From: Toby Gomersall @ 2015-11-05 11:16 UTC (permalink / raw)
  To: Nathan Rossi; +Cc: yocto, Hecht, Martin (Silica)

[-- 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 --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-11-05 11:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2015-11-04 13:55 ` Philip Balister

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.