Re: PCMCIA module load fail on 2.6 (FC3)

To save some one else some effort, I thought I might as well respond
myself. If some of this info is incorrect....put the record straight.

As far as i could tell, comedi-0.7.70 seems to have some problem with 
loading the modules for 2.6.11 kernels properly. There was some reference 
to this in a comedi mailing list message. comedi-7.69 doesnt compile under 
FC3 (or rather, the gcc that comes with it). It needs a patch, given in
https://cvs.comedi.org/pipermail/comedi/2005-January/006648.html

However, THAT version now seems to result in missing symbols, which is due
to a change in the 2.6.11 kernel from 2.6.10. (FC3 latest is
2.6.11-1.14_FC3 as of writing). So instead I downloaded the CVS version of
comedi (not comedilib) at date 24/05/05. I am sure there is a reason for
this, but all the configure files are missing so I copied them over from 
the 0.7.69 version:

 cp ../../comedi-0.7.69/configure .
 cp ../../comedi-0.7.69/install-sh .
 cp ../../comedi-0.7.69/config.sub .
 cp ../../comedi-0.7.69/config.guess
 cp ../../comedi-0.7.69/config.guess .
 cp ../../comedi-0.7.69/Makefile.in .
 cp ../../comedi-0.7.69/comedi/Makefile.in comedi
 cp ../../comedi-0.7.69/comedi/drivers/Makefile.in comedi/drivers
 cp ../../comedi-0.7.69/comedi/kcomedilib/Makefile.in comedi/kcomedilib/
 cp ../../comedi-0.7.69/config.h.in .
 ./configure
 cp ../../comedi-0.7.69/depcomp .
 make
 make install

then modprobe ni_mio_cs and comedi_config /dev/comedi0 ni_mio_cs seem to 
work.

Cheers

Gertjan



On Mon, 23 May 2005 gertjan_at_koslx1.triumf.ca wrote:

> 
> Hi Dave and others,
> 
> It's been a few years since I extensively used COMEDI so this request for 
> help maybe because I am rusty.
> I am running FC3 with a 2.6.11-1.14_FC3 kernel. I installed comedi-0.7.70 
> and  comedilib-0.7.22 using the usual steps without problems on a Dell 
> laptop. When I insert a National Card in the PCMCIA slot I get:
> 
> May 18 14:45:39 kxt01 cardmgr[20184]: socket 0: National Instruments DAQCard-6024E
> May 18 14:45:40 kxt01 cardmgr[20184]: executing: 'modprobe ni_mio_cs 2>&1'
> May 18 14:45:40 kxt01 cardmgr[20184]: + FATAL: Module ni_mio_cs not found.
> May 18 14:45:40 kxt01 cardmgr[20184]: modprobe exited with status 1
> May 18 14:45:40 kxt01 cardmgr[20184]: module /lib/modules/2.6.11-1.14_FC3/pcmcia/ni_mio_cs.o not available
> May 18 14:45:40 kxt01 cardmgr[20184]: bind 'ni_mio_cs' to socket 0 failed: Invalid argument
> 
> Looking at /lib/modules/<> I see the module ni_mio_cs.ko is installed
> under comedi, not pcmcia. But this isnt the only problem, since it
> shouldn't be looking for .o modules anyway.
> 
> I have a feeling I am missing something trivial. I seem to recall 
> there was a patch to get things running under 2.6. Is that correct ?
> 
> There are no error during the ./configuration command. If it helps, I can
> attach them in a next message.
> 
> Much appreciated,
> 
> Gertjan
> 
> 
> //////////////////////////////////////////////////////////////////////////
> work    :   604-982-3574
> E-mai l :   gertjan_at_triumf.ca
> web     :   http://koslx1.triumf.ca/gertjan
> //////////////////////////////////////////////////////////////////////////
> 
> 
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
> 

-- 
//////////////////////////////////////////////////////////////////////////
work    :   604-982-3574
E-mai l :   gertjan_at_triumf.ca
web     :   http://koslx1.triumf.ca/gertjan
//////////////////////////////////////////////////////////////////////////

Received on 2005-05-26Z02:15:25