[prev in list] [next in list] [prev in thread] [next in thread]
List: comedi
Subject: comedi_config of NI DAQCard fails
From: "Andreas Leuner" <al14 () inf ! tu-dresden ! de>
Date: 2005-07-22 17:13:03
Message-ID: 33993.141.76.47.9.1122052383.squirrel () mail ! inf ! tu-dresden ! de
[Download RAW message or body]
Hi all,
I have tried to get a NI DAQCard 6024E to work on my Debian Sarge system.
Linux kernels I tried were either 2.4.29 or 2.6.10 - both patched with adeos.
I seemed to have no problem getting to install comedi and comedilib.
comedi was configured with rtai support.
When I insert the card I hear exactly one high beep. It's the same if I
start pcmcia service after inserting the card, i.e. coldplug it.
db4774:/home/al14# cardctl status
Socket 0:
5V 16-bit PC Card
function 0: [ready], [wp]
Socket 1:
3.3V CardBus card
function 0: [ready]
db4774:/home/al14# cardctl info
PRODID_1="National Instruments"
PRODID_2="DAQCard-6024E"
PRODID_3=""
PRODID_4=""
MANFID=010b,075e
FUNCID=255
PRODID_1="CardBus"
PRODID_2="Fast Ethernet"
PRODID_3="V1.0"
PRODID_4=""
MANFID=13d1,ab02
FUNCID=6
lsmod shows that all necessary modules seem to be loaded:
Module Size Used by Not tainted
tulip 39008 1
crc32 2880 0 [tulip]
ni_mio_cs 42496 0 (unused)
8255 2528 0 [ni_mio_cs]
rtai_lxrt 52248 0 [ni_mio_cs]
comedi_fc 944 0 [ni_mio_cs]
comedi 23840 0 [ni_mio_cs 8255 comedi_fc]
rtai_hal 9904 0 [ni_mio_cs rtai_lxrt comedi]
ds 6932 2 [ni_mio_cs]
yenta_socket 11044 2
pcmcia_core 41896 0 [ni_mio_cs ds yenta_socket]
[Further there is ISA Support enabled and PNP ISA Support compiled into
the kernel. What else could be necessary?]
- general PCMCIA setup seems to work with every kernel I tried - I tested
this with that tulip PCMCIA Network Card (which is managed by hotplug)
This is the output of the cardmgr:
Jul 22 20:03:22 db4774 cardmgr[1074]: watching 2 sockets
Jul 22 20:03:22 db4774 cardmgr[1075]: starting, version is 3.2.5
Jul 22 20:03:22 db4774 cardmgr[1075]: initializing socket 0
Jul 22 20:03:22 db4774 cardmgr[1075]: socket 0: National Instruments
DAQCard-6024E
Jul 22 20:03:22 db4774 cardmgr[1075]: product info: "National
Instruments", "DAQCard-6024E"
Jul 22 20:03:22 db4774 cardmgr[1075]: manfid: 0x010b, 0x075e
Jul 22 20:03:22 db4774 cardmgr[1075]: executing: 'modprobe ni_mio_cs'
Curiously cardmgr does not seem to execute '/etc/pcmcia/comedi start
ni_mio_cs'. That script _is_ installed there:
ls -l /etc/pcmcia:
-rwxr-xr-x 1 root root 560 2005-07-22 16:04 /etc/pcmcia/comedi
-rw-r--r-- 1 root root 1728 2005-07-22 16:04 /etc/pcmcia/comedi.conf
-rw-r--r-- 1 root root 2 2005-07-22 16:04 /etc/pcmcia/comedi.opts
Manually invoking '/etc/pcmcia/comedi start ni_mio_cs' produces this:
/etc/pcmcia# /etc/pcmcia/comedi start ni_mio_cs
usage: /etc/pcmcia/comedi [action] [device name]
actions: start check stop suspend resume
This is because there is no correct /var/run/stab file - which ought to
have been generated by cardmgr on startup or plug in.
faking a suitable one:
db4774:/home/al14# cat /var/run/stab
Socket 0: empty
0 comedi ni_mio_cs 0 /dev/comedi0 98 0
Socket 1: empty
... and re-running 'comedi start ...' says:
Configure failed!: Input/output error
Check kernel log for more information
Possible reasons for failure:
Driver not found
There is nothing in /var/log{messages,daemon.log,syslog,kern.log}.
This also happens if I just run
'comedi_config /dev/comedi0 ni_mio_cs'
manually.
This is the problem I couldn't get around - the driver module _is_ loaded
but comedi_config says that it's not.
Please help me to solve this since I do not know what to do next.
For example I'd like to know how to get more debugging output from comedi
(modules or comedi_config itself). I have read about using
modprobe comedi comedi_debug=n
for this. Unfortunately this had the opposite effect. Setting n to 1 or 2
made all comedi output disappear. Strange, isn't it?
Well, summarising, I'd be grateful for any help in this.
Andreas Leuner
_______________________________________________
comedi mailing list
comedi@comedi.org
https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic