Re: Installing DKMS driver on Ubuntu 26.04

David Gravereaux <[email protected]> Sun, 31 May 2026 15:25:55 -0700
Newsgroups gmane.linux.hardware.gpib.general
Message-ID <[email protected]>
Can someone help me figure what is wrong with line #2?

$ gpib_config
syntax error
input error on line 2 of /etc/gpib.conf
libgpib: failed to parse configuration file /etc/gpib.conf

$ cat /etc/gpib.conf
interface {
	board_type = "ni_pci"	/* type of interface board being used */
	minor = 0	/* board index, minor = 0 uses /dev/gpib0, minor = 1 uses 
/dev/gpib1, etc. */
	name = "primary"	/* optional name, allows you to get a board descriptor 
using ibfind() */
	pad = 0	/* 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 = 0	/* 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 = 0x05
	pci_slot = 0x05

	master = yes	/* interface board is system controller */
}

interface {
	minor = 1	/* board index, minor = 0 uses /dev/gpib0, minor = 1 uses 
/dev/gpib1, etc. */
	board_type = "ni_pci"	/* type of interface board being used */
	name = "secondary"	/* optional name, allows you to get a board 
descriptor using ibfind() */
	pad = 0	/* 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 = 0	/* 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 = 0x05
	pci_slot = 0x06

	master = yes	/* interface board is system controller */
}