Hey Alexis,

Thanks for your response !!

>> Yes take the abe repository, please. I will make a pull request soon.
I downloaded the git xenomai-abe repository and installed linux-2.6.29.1
(since there was no patch for 2.6.30.5).

The installation worked out, however, it seems that the comedi_pcimio driver
is not included.
Am I missing something during configuring the kernel ??

>From what I understand now is that I need xeno_comedi.ko which is the
interface to xenomai and RTDM and I need comedi_pcimio.ko which actually
talks to the hardware and does real-time capable I/O. Is this correct ??

Thanks a lot, I am really glad that I am getting somewhere !!

 peter



On Fri, Oct 16, 2009 at 2:06 PM, Alexis Berlemont <[email protected]>wrote:

> Hi,
>
> On Fri, Oct 16, 2009 at 7:16 PM, Peter Pastor <[email protected]>
> wrote:
> > Hey Alexis,
> >
> > Thanks a lot for your quick response.
> >
> >>> Is rt_comedi_test an application you developed ?
> > Yes, it is my little test application, which is kept simple (open, read,
> > close).
> >
> >>> I think you should follow the common comedi way:
> >>> 1) Check you have the suitable driver loaded:
> > xenomai:/proc/xenomai/rtdm> cat /proc/comedi/drivers
> > --  Comedi drivers --
> >
> > | idx | driver name
> > |  00 | ni_pcimio
> >
> >>> 2) Check the comedi RTDM devices available:
> > xenomai:/proc/xenomai/rtdm> cat /proc/xenomai/rtdm/named_devices
> > Hash    Name                Driver        /proc
> > A1    comedi0                            rtdm_comedi        comedi0
> > A2    comedi1                            rtdm_comedi        comedi1
> > A3    comedi2                            rtdm_comedi        comedi2
> > A4    comedi3                            rtdm_comedi        comedi3
> > A5    comedi4                            rtdm_comedi        comedi4
> > A6    comedi5                            rtdm_comedi        comedi5
> > A7    comedi6                            rtdm_comedi        comedi6
> > A8    comedi7                            rtdm_comedi        comedi7
> > A9    comedi8                            rtdm_comedi        comedi8
> > AA    comedi9                            rtdm_comedi        comedi9
> >
> >>> 3)  You have to attach the driver to the rtdm device you want to use
> >>> with comedi_config (a tool available in Xenomai).
> >>> #comedi_config comedi0 comedi_pcimio
> >>>    That command will assign comedi_pcimio driver to comedi0
> > r...@xenomai:/usr/xenomai/sbin# ./comedi_config comedi0 comedi_pcimio
> > comedi_config: comedi_snd_attach failed ret=-22
> > r...@xenomai:/usr/xenomai/sbin# ./comedi_config comedi0 ni_pcimio
> > comedi_config: comedi_snd_attach failed ret=-5
> >
> >>> 4) Eventually, you can test the acquistion is working with some test
> tool
> >>> of ours :cmd_read
> >>> # /usr/local/bin/cmd_read -v
> > I don't find this test tool. How do I install it ?
> >
> >
> >>> SVN is not our version control system anymore. You should use our git
> >>> repository.
> >>> If you want the last fix I made, take my comedi branch.
> >>> Have a look at:
> >>>
> http://git.xenomai.org/?p=xenomai-abe.git;a=shortlog;h=refs/heads/comedi
> >
> > I actually started to download using git, but it was unbelievable slow :(
> > (11Kbit/s). Is there a difference between HEAD and ABE that does matter
> to
> > me ?
>
> Yes take the abe repository, please. I will make a pull request soon.
>
> Concerning the bitrate, I did not manage to reproduce your low bandwidth:
> Receiving objects:   6% (3661/57181), 780.00 KiB | 94 KiB/s
>
> > Apparently, I don't have comedi_pcimio. How do I build it and where can I
> > find it ? It seems not to be in xenomai 2.5-rc3.
>
> You are right, the driver was not available in 2.5-rc3.
>
> I will downlaod
> > xenomai-abe.git and see what I get.
> >
> >>> the driver name is comedi_pcimio instead of ni_pcimio. So you should
> type
> >>> comedi_config comedi0 comedi_pcimio.
> > So, the comedi_pcimio is the driver I'll need ?
>
> If, with the original Comedi framework, you used ni_pcimio, then
> comedi_pcimio is what you need  with Comedi/RTDM.
>
>  Is the no National
> > Instrument specific driver ?? (ni_pcimio) ??
>
> Sorry I don't understand the question. "no National Instrument" ?
>
> The "pcimio" driver supports a host of NI PCI boards:
>  * Devices: [National Instruments] PCI-MIO-16XE-50 (ni_pcimio),
>  * PCI-MIO-16XE-10, PXI-6030E, PCI-MIO-16E-1, PCI-MIO-16E-4, PCI-6014,
>  * PCI-6040E,PXI-6040E, PCI-6030E, PCI-6031E, PCI-6032E, PCI-6033E,
>  * PCI-6071E, PCI-6023E, PCI-6024E, PCI-6025E, PXI-6025E, PCI-6034E,
>  * PCI-6035E, PCI-6052E, PCI-6110, PCI-6111, PCI-6220, PCI-6221,
>  * PCI-6224, PCI-6225, PCI-6229, PCI-6250, PCI-6251, PCIe-6251,
>  * PCI-6254, PCI-6259, PCIe-6259, PCI-6280, PCI-6281, PXI-6281,
>  * PCI-6284, PCI-6289, PCI-6711, PXI-6711, PCI-6713, PXI-6713,
>  * PXI-6071E, PCI-6070E, PXI-6070E, PXI-6052E, PCI-6036E, PCI-6731,
>  * PCI-6733, PXI-6733, PCI-6143, PXI-6143
>
> Alexis.
>
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to