|
From: Neil P. <np...@ex...> - 2003-05-19 23:26:44
|
Hi All,
I've used GPIB/HPIB a lot in the past (>5 years ago). Subsequently I've
done a lot of work with Linux (at SGI). I'm now trying to get the
Measurement Computing PCi Board to run with RH Linux 9.0 ... I'm getting
everything to work just fine for make etc. Even insmod/modprobe
installs the cb7210 module OK (checked using lsmod).
BUT, when I try ibtest I get the strangest result ...
> [root@localhost examples]# ./ibtest
> Do you wish to open a (d)evice or an interface (b)oard?
> (you probably want to open a device): d
> enter primary gpib address for device you wish to open [0-30]: 2
> trying to open pad = 2 on /dev/gpib0 ...
> Segmentation fault
I checked the code for the changes in cb7210 etc and I guess everything
is up to date in 3.1.93 ,,, so I think I must be doing something silly
... any body have any suggestions ?
Best Regards,
-Neil Phipps
Staff Physicist,
Exxim Computing Corporation,
3825 Hopyard Road, Suite #119,
Pleasanton, CA94588.
the gpib.conf file looks like this ...
> /***************************************************************************
> *
> * Syntax:
> *
> * interface { ... } starts new interface board section
> * device {...} device configuration
> *
> ***************************************************************************/
>
> /* This section configures the configurable driver characteristics
> * for an interface board, such as board address, and interrupt level.
> * minor = 0 configures /dev/gpib0, minor = 1 configures /dev/gpib1, etc.
> */
>
> interface {
> minor = 0 /* board index, minor = 0 uses /dev/gpib0, minor = 1 uses /dev/gpib1, etc. */
> board_type = "cbi_pci_accel" /* type of interface board being used */
> name = "optical" /* optional name, allows you to get a board descriptor using ibfind() */
> pad = 21 /* primary address of interface */
> sad = 0 /* secondary address of interface */
> timeout = T3s /* timeout for commands */
>
> eos = 0x0a /* EOS Byte, 0xa is newline and 0xd is carriage return */
> set-reos = yes /* Terminate read if EOS */
> set-bin = no /* Compare EOS 8-bit */
> set-xeos = no /* Assert EOI whenever EOS byte is sent */
> set-eot = yes /* Assert EOI with last byte on writes */
>
> /* settings for boards that lack plug-n-play capability */
> base = 21 /* Base io ADDRESS */
> irq = 0 /* Interrupt request level */
> dma = 0 /* DMA channel (zero disables) */
>
> /* pci_bus and pci_slot can be used to distinguish two pci boards supported by the same driver */
> /* pci_bus = 0 */
> /* pci_slot = 7 */
>
> master = yes /* interface board is system controller */
> }
>
> /* This is how you might set up a pcIIa board on /dev/gpib1, uncomment to use. */
> /*******************
> interface {
> minor = 1
> board_type = "pcIIa"
> pad = 0
> sad = 0
> timeout = T3s
>
> eos = 0x0a
> set-reos = yes
> set-bin = no
>
> base = 0x2e1
> irq = 7
> dma = 1
>
> master = yes
> }
> *********************/
>
> /* Now the device sections define the device characteristics for each device.
> * These are only used if you want to open the device using ibfind() (instead
> * of ibdev() )
> */
>
> device {
> minor = 0 /* minor number for interface board this device is connected to */
> name = "pico" /* device mnemonic */
> pad = 2 /* The Primary Address */
> sad = 0 /* Secondary Address */
>
> eos = 0xa /* EOS Byte */
> set-reos = no /* Terminate read if EOS */
> set-bin = no /* Compare EOS 8-bit */
> }
>
> device {
> minor = 0
> name = "scope"
> pad = 6
> sad = 0
> }
|