Re: ni_atmio isapnp support

AT-MIO-16XE-50, 2.4.4 kernel:

Update comedi and comedilib from current cvs, make, make install.

Everything seems to work fine with my comedi-part in modules.conf:

#comedi:
alias char-major-98 comedi
alias char-major-98-0 ni_atmio
post-install ni_atmio /usr/sbin/comedi_config -v /dev/comedi0 ni_atmio
0x120,5,7,6,5
alias char-major-98-1 cb_pcidda
post-install cb_pcidda /usr/sbin/comedi_config -v /dev/comedi1 cb_pcidda
alias char-major-98-2 comedi_parport
post-install comedi_parport /usr/sbin/comedi_config -v /dev/comedi2
comedi_parport 0x378,7

Normally I start comedi from script including:

    start)
        echo "Display ISA pnp cards:"
        cat /proc/isapnp | grep Card
        echo -n "Starting and configuring comedi"
        echo

        /usr/local/daq/comedilib/demo/info -f /dev/comedi0 | grep name
        /usr/local/daq/comedilib/demo/info -f /dev/comedi1 | grep name
        /usr/local/daq/comedilib/demo/info -f /dev/comedi2 | grep name

box:~ # /etc/init.d/comedi start
Display ISA pnp cards:
Card 1 'NIC2700:National Instruments, AT-MIO-16XE-50' PnP version 1.0
Starting and configuring comedi
  driver name: ni_atmio
  board name: at-mio-16xe-50
  driver name: cb_pcidda
  board name: pci-dda08/16
  driver name: comedi_parport
  board name: parport
                                                                     done

Everything seems to work.


Now I start testing:
Box is booted, Card is not active.
(didn't run isapnp /etc/isapnp.conf, didn't run modprobe isa-pnp)

Then:

box:~ # modprobe ni_atmio
configuring driver=ni_atmio 288,5,7,6,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,

box:~ # comedi_config -v /dev/comedi0 ni_atmio
configuring driver=ni_atmio 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,
Configure failed!: Device or resource busy
Check kernel log for more information
Possible reasons for failure:
  Already configured

(Same output if ni_atmio is not 'modprobed' before)

box:~ # cat /proc/isapnp
cat: /proc/isapnp: No such file or directory


It failed, but after loading isa-pnp this output for you:

box:~ # modprobe isa-pnp
box:~ # cat /proc/isapnp
Card 1 'NIC2700:National Instruments, AT-MIO-16XE-50' PnP version 1.0
  Logical device 0 'NIC2700:Unknown'
    Supported registers 0x2
    Device is active
    Active port 0x120
    Active IRQ 5 [0x2]
    Active DMA 7,6
    Resources 0
      Priority acceptable
      Port 0x20-0xffe0, align 0x1f, size 0x20, 16-bit address decoding
      IRQ 3,4,5,7,10,11,12,15 High-Edge
      DMA 5,6,7 16-bit word-count compatible
      DMA 5,6,7 16-bit word-count compatible
      Alternate resources 0:1
        Priority acceptable
        Port 0x20-0xffe0, align 0x1f, size 0x20, 16-bit address decoding
        IRQ 3,4,5,7,10,11,12,15 High-Edge
        DMA 5,6,7 16-bit word-count compatible
      Alternate resources 0:2
        Priority acceptable
        Port 0x20-0xffe0, align 0x1f, size 0x20, 16-bit address decoding
        IRQ 3,4,5,7,10,11,12,15 High-Edge
      Alternate resources 0:3
        Priority acceptable
        Port 0x20-0xffe0, align 0x1f, size 0x20, 16-bit address decoding
        IRQ <none> High-Edge
  Logical device 1 'NIC2700:Unknown'
    Device is active
    Active DMA 5
    Resources 0
      Priority acceptable
      DMA 5,6,7 16-bit word-count compatible
      Alternate resources 0:1
        Priority acceptable
        DMA <none> 16-bit word-count compatible

Unfortunately I have this ISA-card only a few more days.

norbert


On Mon, 10 Mar 2003, Frank Mori Hess wrote:

> I think isapnp support might be working in the ni_atmio driver now.  Would
> anyone with a ni_atmio supported card try it now with the current cvs?  To
> try it, you should have a 2.4 kernel, run comedi_config with no base address,
> irq, etc specified, and the card should not be already be active (via the
> isapnp program for example).  If it fails, please send me the output of
> 'cat /proc/isapnp'

Received on 2003-03-11Z15:22:20