daqcard-1200

I am trying to get a NI-DAQCard 1200 to work on an IBM
R40 laptop.  I am currently running RedHat 9.0 with a
Rtlinux pre2 patched 2.4.20 kernel.  I do not wish to
utilize comedi's realtime capabilities as of yet.  I
just want to get the card to work first.  I have
installed comedi-0.7.67 and comedilib-0.7.21.  After
initial installation, I ran into errors loading the
ni_labpc_cs module stating that it had unresolved
symbols labpc_common_attach and labpc_common_detach
and a "get dev info on socket 0 failed: Resource
temporarily unavailable" with this output written in
/var/log/messages.

Hint: You are trying to load a module without a GPL
compatible license and it has unresolved symbols.  The
module may be trying to access GPLONLY symbols but the
problem is more likely to be a coding or user error. 
Contact the module supplier for assistance, only they 
can help you.

I went into the ni_labpc module and changed the
EXPORT_SYMBOL_GPL() to EXPORT_SYMBOL().  This 
allowed the module to be loaded when cardmgr is
running and the card is inserted.  Then I get:

Nov 19 16:06:31 Kitten kernel: daqcard-1200: index
0x01: Vcc 5.0, irq 0, io 0x0100-0x011f

and then a kernel panic occurs when
'/etc/pcmcia/comedi start daqcard-1200' is run giving
me the following:

Nov 19 16:08:24 Kitten cardmgr[2241]: executing:
'./comedi start daqcard-1200'
Nov 19 16:08:24 Kitten kernel: Unable to handle kernel
NULL pointer dereference at virtual address 00000000
Nov 19 16:08:24 Kitten kernel:  printing eip:
Nov 19 16:08:24 Kitten kernel: eac067b4
Nov 19 16:08:24 Kitten kernel: *pde = 00000000
Nov 19 16:08:24 Kitten kernel: Oops: 0000
Nov 19 16:08:24 Kitten kernel: CPU:    0
Nov 19 16:08:24 Kitten kernel: EIP:   
0010:[<eac067b4>]    Tainted: P 
Nov 19 16:08:24 Kitten kernel: EFLAGS: 00010293
Nov 19 16:08:24 Kitten kernel: eax: eac17580   ebx:
00000000   ecx: eac175e0   edx: de121eec
Nov 19 16:08:24 Kitten kernel: esi: 00000000   edi:
de121eec   ebp: 00000002   esp: de121e9c
Nov 19 16:08:24 Kitten kernel: ds: 0018   es: 0018  
ss: 0018
Nov 19 16:08:24 Kitten kernel: Process comedi_config
(pid: 3143, stackpage=de121000)
Nov 19 16:08:24 Kitten kernel: Stack: eac17580
00000002 00000000 e3af7800 eac064e0 eac17580 de121eec
000000d8 
Nov 19 16:08:24 Kitten cardmgr[2241]: + ./comedi: line
46:  3143 Segmentation fault      comedi_config
/dev/comedi0 $2
Nov 19 16:08:24 Kitten kernel:        c0125fa3
deeeb000 00000000 c16d56d0 00000000 00000000 de121eec
e3af7800 
Nov 19 16:08:24 Kitten kernel:        eac0348c
e3af7800 de121eec 00000094 63716164 2d647261 30303231
00000000 
Nov 19 16:08:24 Kitten kernel: Call Trace:   
[<eac17580>] [<eac064e0>] [<eac17580>] [<c0125fa3>]
[<eac0348c>]
Nov 19 16:08:24 Kitten kernel:   [<c0145409>]
[<c0107493>]
Nov 19 16:08:24 Kitten kernel: 
Nov 19 16:08:24 Kitten kernel: Code: ac ae 75 08 84 c0
75 f8 31 c0 eb 04 19 c0 0c 01 85 c0 89 ce 

I have debuged the problem down to comedi_config when
it tries to run
ioctl(fd,COMEDI_DEVCONFIG,remove?NULL;&it).

I'm assuming that the ioctl function wants to write
the 'it.options' to the device driver /dev/comedi0. 
Is there a problem when the driver returns an IRQ=0? 
Any help on how I can get the daqcard-1200 running
would be greatfully appreciated.  If any more
information is required, please just ask. 

Although I may know my way around the linux console, I
don't really have any knowledge in module programming
or how device resources are allocated.

Thanks

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

Received on 2003-11-20Z00:29:49