From: frank m. h. <fm...@st...> - 2002-04-30 21:19:58
|
Oops, the driver expects the board_type to be 'atgpib' instead of 'ni_isa'. It's changed to 'ni_isa' in CVS now, or you can just change your gpib.conf to use 'atgpib'. Although, 3.1.2 does have a potentially nasty race bug which might cause problems during reads, depending on how fast your device's gpib chip operates. Frank On Tue, 30 Apr 2002, wrote: > Hello, > > I have done a fresh install of RedHat 7.3 Beta with kernel 2.4.18. I > also installed Win98. Under Win98, the NI AT-GPIB board installed OK > at IRQ 5, DMA 7, and IO 0x2C0. I was able to communicate with the > board and instrument using the NI Windows software. > > I was able to get linux-gpib-3.1.2 to compile and the modules to > install, but cannot communicate. > > gpib.conf: > > /*******************/ > interface { > minor = 0 > board_type = ni_isa > pad = 0 > sad = 0 > timeout = 10s > > eos = 0x0a > set-reos yes > set-bin no > > base = 0x2C0 > irq = 5 > dma = 7 > > master yes > } > /*********************/ > > /* now the device section defines the device characteristics for each device. > */ > > > device { > name = bk > minor = 0 > pad = 26 > sad = 0 > } > > > dmesg: > > Linux-GPIB Driver -- Kernel Release 2.4.18-0.13custom > gpib: registered atgpib interface > gpib: registered ni_pci interface > Available NI device IDs: > > lsmod: > > [root@speedy linux-gpib-3.1.2]# lsmod > Module Size Used by Not tainted > nls_iso8859-1 2816 0 (autoclean) > sr_mod 15192 0 (autoclean) > cdrom 27872 0 (autoclean) [sr_mod] > soundcore 4100 0 (autoclean) > tnt4882 5060 0 (unused) > nec7210 8064 0 [tnt4882] > gpib-common 13504 0 [tnt4882] > autofs 10244 0 (autoclean) (unused) > 3c59x 26216 1 > usb-uhci 21636 0 (unused) > usbcore 59072 1 [usb-uhci] > ext3 62048 6 > jbd 40376 6 [ext3] > aic7xxx 116256 7 > sd_mod 11552 14 > scsi_mod 96524 3 [sr_mod aic7xxx sd_mod] > > > > ibtest: > > [root@speedy linux-gpib-3.1.2]# examples/ibtest > enter primary address for device [0-30]: 0 > trying to open pad = 0 on /dev/gpib0 ... > > ibBoardFunc :[Tue Apr 30 17:53:34 2002](-) EDVR > -- errno=19 (No such device) > > ibBoardFunc :[Tue Apr 30 17:53:34 2002](-) EDVR > -- errno=19 (No such device) > > ibBoardFunc :[Tue Apr 30 17:53:34 2002](-) EDVR > -- errno=19 (No such device) > failed to get descriptor > > > [root@speedy linux-gpib-3.1.2]# examples/ibtest > enter primary address for device [0-30]: 26 > trying to open pad = 26 on /dev/gpib0 ... > > ibBoardFunc :[Tue Apr 30 17:54:09 2002](-) EDVR > -- errno=19 (No such device) > > ibBoardFunc :[Tue Apr 30 17:54:09 2002](-) EDVR > -- errno=19 (No such device) > > ibBoardFunc :[Tue Apr 30 17:54:09 2002](-) EDVR > -- errno=19 (No such device) > failed to get descriptor > > > /var/log/messages when ibtest is run: > > Apr 30 10:58:28 speedy kernel: gpib: no gpib board configured on /dev/gpib0 > > > > > Any ideas? > > Thanks, > > Tim > > > > > > > > ------------------------------------------------ > > |