Re: Installing DKMS driver on Ubuntu 26.04
dave penkler <[email protected]> Mon, 1 Jun 2026 10:39:08 +0200
| Newsgroups | gmane.linux.hardware.gpib.general |
|---|---|
| Message-ID | <CAL=kjP1ofdnNqLkWaoqNbQo_m-90dUiZ7PuJrq4saxhp5XHWbA@mail.gmail.com> |
--===============1820498389121960194== Content-Type: multipart/alternative; boundary="0000000000007ca43f06532d2106" --0000000000007ca43f06532d2106 Content-Type: text/plain; charset="UTF-8" For udev rules you need something like # SUBSYSTEM=="pci", ACTION=="add", KERNELS=="0000:05:05.0",\ RUN+="/sbin/modprobe tnt4882",\ RUN+="/usr/local/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/local/sbin/gpib_config --minor 1 --pci-bus 5 --pci-slot 6" The KERNELS key matches the bus and slot. We need to load the module beforehand since the gpib_config won't do anything without the driver loaded. The pci-bus and pci-slot parameters must match the KERNELS key for the different minors. The gpib group ownership is already set in the standard 98-gpib-generic.rules file On Mon, 1 Jun 2026 at 04:03, David Gravereaux <[email protected]> wrote: > It was \n\t after the curly. Spaces fixed it. The board still won't load > > > _______________________________________________ > Linux-gpib-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/linux-gpib-general > --0000000000007ca43f06532d2106 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">For udev rules you need something like<div><font face=3D"m= onospace">#<br>SUBSYSTEM=3D=3D"pci", ACTION=3D=3D"add",= KERNELS=3D=3D"0000:05:05.0",\</font><div><font face=3D"monospace= ">RUN+=3D"/sbin/modprobe tnt4882",\<br></font><div><font face=3D"= monospace">RUN+=3D"/usr/local/sbin/gpib_config --minor 0 --pci-bus 5 -= -pci-slot 5"</font><div><font face=3D"monospace">#</font></div><div><f= ont face=3D"monospace">SUBSYSTEM=3D=3D"pci", ACTION=3D=3D"ad= d", KERNELS=3D=3D"0000:05:06.0",\</font></div><div><font fac= e=3D"monospace">RUN+=3D"/sbin/modprobe tnt4882",\</font></div><di= v><font face=3D"monospace">RUN+=3D"/usr/local/sbin/gpib_config --minor= 1 --pci-bus 5 --pci-slot 6"</font><br></div><div><font face=3D"arial,= sans-serif"><br></font></div><div><font face=3D"arial, sans-serif">The KER= NELS key matches the bus and slot. We need to load the module beforehand si= nce the gpib_config won't do anything without the driver loaded. The pc= i-bus and pci-slot parameters=C2=A0must match the KERNELS key for the=C2=A0= different minors.</font></div><div><font face=3D"arial, sans-serif"><br></f= ont></div><div><font face=3D"arial, sans-serif">The gpib group ownership is= already set in the standard 98-gpib-generic.rules file</font></div></div><= /div></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"g= mail_attr">On Mon, 1 Jun 2026 at 04:03, David Gravereaux <<a href=3D"mai= lto:[email protected]" target=3D"_blank">[email protected]</a>> wrote:= <br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8= ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It was \n\t aft= er the curly.=C2=A0 Spaces fixed it.=C2=A0 The board still won't load<b= r> <br> <br> _______________________________________________<br> Linux-gpib-general mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blan= k">[email protected]</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/linux-gpib-general"= rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/l= istinfo/linux-gpib-general</a><br> </blockquote></div> --0000000000007ca43f06532d2106-- --===============1820498389121960194== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1820498389121960194== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-gpib-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-gpib-general --===============1820498389121960194==--