From: Michael K <vk...@ya...> - 2023-06-14 00:19:38
|
I'm using Fedora, so this may be useful for Centos.... I packaged up linux-gpib into RPMs https://copr.fedorainfracloud.org/coprs/vk2bea/GPIB/ (based on the work of "vddvss" who stopped updating several years ago) One of the RPMs is for the firmware load. (https://download.copr.fedorainfracloud.org/results/vk2bea/GPIB/fedora-38-x86_64/05643738-linux-gpib-firmware/) You can probably rebuild the srpm for your Centos version if the Fedora rpm doesn't work. (it should though) It uses udev to load the firmware when the USB device is plugged in (through systemd) $ cat /usr/lib/udev/rules.d/61-linux-gpib-firmware.rules ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="gpib_firmware_start" GOTO="gpib_firmware_end" LABEL="gpib_firmware_start" # Agilent 82357A ATTR{idVendor}=="0957", ATTR{idProduct}=="0007", ENV{SYSTEMD_WANTS}="linux-gpib-firmware-loader-agilent82357a@%N.service" # Agilent 82357B ATTR{idVendor}=="0957", ATTR{idProduct}=="0518", ENV{SYSTEMD_WANTS}="linux-gpib-firmware-loader-agilent82357b@%N.service" # NI-USB-B and Keithley KUSB-488 ATTR{idVendor}=="3923", ATTR{idProduct}=="702b|713b", ENV{SYSTEMD_WANTS}="linux-gpib-firmware-loader-ni@%N.service" LABEL="gpib_firmware_end" cheers, Michael On Thursday, June 8, 2023 at 06:37:20 PM EDT, Brandon Gunn <bgu...@gm...> wrote: Hello, I have been going crazy trying to get an Agilent 82357B GPIB adapter (probably a clone) working on our CentOS system. I have not done this before and am not a Linux pro, so please do not hesitate to ELI5. System: CentOS 7.9.2009, Linux kernel 3.10 sudo fxload -t fx2 -D /dev/bus/usb/001/005 -I /usr/share/usb/agilent_82357a/measat_releaseX1.8.hex produces the error: can't modify CPUCS: Connection timed out *************************************** I tried adding a hotplug script but it does not seem to have any effect (there was no /etc/hotplug directory, I had to create it). ********************************** ibtest obviously fails, producing this error: gpib status is: ibsta = 0xc100 < ERR TIMO CMPL > iberr= 14 EBUS 14: Bus error ibcntl = 0 ************************** I am not sure what to try next -- any help would be greatly appreciated! Thank you, Brandon _______________________________________________ Linux-gpib-general mailing list Lin...@li... https://lists.sourceforge.net/lists/listinfo/linux-gpib-general |