Re: no pcmcia support

On 15/08/2006 05:38, Rebsamen Brice wrote:
> I am trying to get Comedi work to access a PCMCIA NI DAQ card.
> I got comedi and comedilib from CVS. Comedilib was built and installed easily: there was no error but I don't know how to check for sure though.
> I am running under Ubuntu6.06 with a kernel 2.6.15 patched with RTAI3.3. 2.6.15 is the latest version supported by RTAI.

> 
> The problem with comedi is that autogen cannot find probe in struct pcmcia_driver (see autogen output below). And subsequently my DAQ card is not detected. 
> However it is detected by linux: I can see it in dmesg and the hardware monitor, and if I do lsmod I see the yenta_socket module loaded together with pcmcia_core, pcmcia, and rsrc_nonstatic.
> I checked the .config file in linux dir and the PCMCIA_PROBE option is set. 

Currently, the only solutions are to use the 2.6.16 kernel, or to pull 
some particular versions of the PCMCIA driver files from CVS, combined 
with the --enable-pcmcia configure option to override the PCMCIA 
detection.  The CVS revisions are as follows:

comedi/drivers/cb_das16.c 1.16
comedi/drivers/das08_cs.c 1.7
comedi/drivers/ni_daq_dio24.c 1.12
comedi/drivers/ni_mio_cs.c 1.69
comedi/drivers/ni_labpc_cs.c 1.12
comedi/drivers/quatech_daqp_cs.c 1.22

Those revisions will not work with the 2.6.16 kernel unless you also 
apply this patch:

Index: include/pcmcia/ds.h
===================================================================
RCS file: /cvs/comedi/comedi/include/pcmcia/ds.h,v
retrieving revision 1.4
diff -u -r1.4 ds.h
--- include/pcmcia/ds.h	27 Feb 2005 23:12:25 -0000	1.4
+++ include/pcmcia/ds.h	15 May 2006 16:53:31 -0000
_at__at_ -37,5 +37,15 _at__at_

  #endif

+/*
+ * Define COMEDI_PCMCIA_2_6_16 if struct pcmcia_driver interface is
+ * like kernel version 2.6.16.  Fedora backported it to 2.6.15!
+ */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+#define COMEDI_PCMCIA_2_6_16
+#elif LINUX_VERSION_CODE == KERNEL_VERSION(2,6,15) && 
defined(dev_to_instance)
+#define COMEDI_PCMCIA_2_6_16
+#endif
+
  #endif // __COMPAT_PCMCIA_DS_H_


I don't recommend any of the above as there could be other changes in 
CVS that stop these older versions working.

> There is another message from autogen at the begining: "variable addi_common_ko_SOURCES is defined but no program or library has addi_common_ko as canonical name (possible typo)". I don't know if it's important or related to the PCMCIA error. 

Don't worry about that one.

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2006-08-15Z08:54:58