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
Quoted 3 lines · Toby Gomersall
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
Quoted 18 lines
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 menuconfigI 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
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: [email protected] [mailto:[email protected]] On Behalf Of Toby Gomersall
Sent: Mittwoch, 4. November 2015 14:44
To: [email protected]
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
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
Quoted 27 lines · Martin (Silica)
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: [email protected] [mailto:[email protected]] On Behalf Of Toby Gomersall
Sent: Mittwoch, 4. November 2015 14:44
To: [email protected]
Subject: [yocto] yocto on zynq, How to configure kernel to include driversI'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 menuconfigI 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
Quoted 7 lines · Toby Gomersall
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
Quoted 40 lines
Regards,
TobyQuoted 19 lines · Martin (Silica)
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: [email protected] [mailto:[email protected]] On Behalf Of Toby Gomersall
Sent: Mittwoch, 4. November 2015 14:44
To: [email protected]
Subject: [yocto] yocto on zynq, How to configure kernel to include driversI'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):
Quoted 8 lines
bitbake linux-xlnx -c
kernel_configme-f bitbake linux-xlnx -c menuconfigI 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
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Quoted 27 lines · Nathan Rossi
Quoted 7 lines · Toby Gomersall
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_FEATURESup 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:
Quoted 8 lines
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
Quoted 41 lines
Quoted 41 lines
Regards,
TobyQuoted 19 lines · Martin (Silica)
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: [email protected] [mailto:[email protected]] On Behalf Of Toby Gomersall
Sent: Mittwoch, 4. November 2015 14:44
To: [email protected]
Subject: [yocto] yocto on zynq, How to configure kernel to include driversI'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):
Quoted 8 lines
bitbake linux-xlnx -c
kernel_configme-f bitbake linux-xlnx -c menuconfigI 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
[email protected]
https://lists.yoctoproject.org/listinfo/yocto