Re: Installing DKMS driver on Ubuntu 26.04

David Gravereaux <[email protected]> Tue, 2 Jun 2026 11:00:42 -0700
Newsgroups gmane.linux.hardware.gpib.general
Message-ID <[email protected]>
Thanks Dave,

Getting closer, but still not loading as CIC not set on the board and 
timeout isn't 3 seconds as configured.

$ ibterm -m 0 -d 25
Attempting to open /dev/gpib0
pad = 25, sad = 0, timeout = 10, send_eoi = 1, eos_mode = 0x0000
ibterm>ID?
ibterm error: Unable to write to device at pad 25

  - ECIC 1: Board not controller in charge
ibterm>


$ lspci -k
...
05:05.0 Communication controller: National Instruments PCI-GPIB (rev 01)
	Kernel driver in use: tnt4882
	Kernel modules: tnt4882
05:06.0 Communication controller: National Instruments PCI-GPIB (rev 01)
	Kernel driver in use: tnt4882
	Kernel modules: tnt4882


$ cat /etc/udev/rules.d/97-gpib.rules
#
SUBSYSTEM=="pci", ACTION=="add", KERNELS=="0000:05:05.0",\
RUN+="/sbin/modprobe tnt4882",\
RUN+="/usr/sbin/gpib_config --minor 0 --pci-bus 5 --pci-slot 5"
#
SUBSYSTEM=="pci", ACTION=="add", KERNELS=="0000:05:06.0",\
RUN+="/sbin/modprobe tnt4882",\
RUN+="/usr/sbin/gpib_config --minor 1 --pci-bus 5 --pci-slot 6"

Should I set that for earlier in the boot process?


Some useful bits from the boot log:

pci 0000:05:05.0: [1093:c801] type 00 class 0x078000 conventional PCI 
endpoint
pci 0000:05:05.0: BAR 0 [mem 0xfe411000-0xfe4117ff]
pci 0000:05:05.0: BAR 1 [mem 0xfe40c000-0xfe40ffff]
pci 0000:05:05.0: ROM [mem 0xfe408000-0xfe40bfff pref]
pci 0000:05:06.0: [1093:c801] type 00 class 0x078000 conventional PCI 
endpoint
pci 0000:05:06.0: BAR 0 [mem 0xfe410000-0xfe4107ff]
pci 0000:05:06.0: BAR 1 [mem 0xfe404000-0xfe407fff]
pci 0000:05:06.0: ROM [mem 0xfe400000-0xfe403fff pref]

pci_bus 0000:05: resource 1 [mem 0xfe400000-0xfe4fffff]
pci_bus 0000:05: resource 4 [io  0x0000-0x03af window]
pci_bus 0000:05: resource 5 [io  0x03e0-0x0cf7 window]
pci_bus 0000:05: resource 6 [io  0x03b0-0x03df window]
pci_bus 0000:05: resource 7 [io  0x0d00-0xffff window]
pci_bus 0000:05: resource 8 [mem 0x000a0000-0x000dffff window]
pci_bus 0000:05: resource 9 [mem 0xc0000000-0xffffffff window]

systemd-udevd[691]: /usr/lib/udev/rules.d/98-gpib-generic.rules:2 Group 
gpib configured to own a device node is not a system group. Support for 
device node ownership by non-system accounts is deprecated ...

gpib_common: loading out-of-tree module taints kernel.
gpib_common: module verification failed: signature and/or required key 
missing - tainting kernel
gpib_common: Linux-GPIB 4.3.7 core driver loaded