Hello, I'm trying to install the linux-gpib-kernel-4.2.0 on my ubuntu UBUNTU 18.04.1 LTS.
I updated the kernel to 4.19.0-041900-generic and proceeded to install the driver.
When I run the make command, this returns me the following error
echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false)
I would appreciate a more detailed step-by-step guide on how to do this installation.
You probably need to install the linux-headers package corresponding
to the linux-image package you installed.
On Tue, Mar 5, 2019 at 10:13 AM Anderson
ambegossi@users.sourceforge.net wrote:
--
Frank
Related
Support Requests: #22
It looks like the normal command echo output from the make script rather
than an error message.
"test -e include/generated/autoconf.h -a -e include/config/auto.conf || (
...."
What is the exit status of the make command ?
You should get:
$ echo $?
0
On Tue, Mar 5, 2019 at 7:13 PM Anderson ambegossi@users.sourceforge.net
wrote:
Related
Support Requests: #22
Thanks for the answers.
I'm following this guide https://github.com/PythonLabInstControl/SR830_LockInAmplifier
Now, the make command succeeded and I was able to to import Gpib on Python 2.7.
Right now I'm trying load and set up Kernel Module, executing the following commands:
$ cd /lib/modules/x.xx.x-xx-generic/gpib/ni_usb
$ sudo modprobe ni_usb_gpib
but in the "sudo modprobe ni_usb_gpib" command, I'm having the following exit:
modprobe: ERROR: could not insert 'ni_usb_gpib': Required key not available
Can someone help me?
Turn off UEFI secure boot. Or, if you are feeling particularly masochistic
see
https://blog.ubuntu.com/2017/08/11/how-to-sign-things-for-secure-boot
What does the command "sudo modinfo ni_usb_gpib" output ?
On Wed, Mar 6, 2019 at 7:54 PM Anderson ambegossi@users.sourceforge.net
wrote:
Related
Support Requests: #22
sudo modinfo ni_usb_gpib output:
filename: /lib/modules/4.15.0-45-generic/gpib/ni_usb/ni_usb_gpib.ko
license: GPL
srcversion: B897389CBEF737222BC9058
alias: usb:v3923p725Dddcdscdpiciscipin
alias: usb:v3923p725Cddcdscdpiciscipin
alias: usb:v3923p7618ddcdscdpiciscipin
alias: usb:v3923p709Bddcdscdpiciscipin
alias: usb:v3923p702Addcdscdpiciscipin
depends: gpib_common
retpoline: Y
name: ni_usb_gpib
vermagic: 4.15.0-45-generic SMP mod_unload
"sudo modprobe ni_usb_gpib" worked after turning off UEFI secure boot.
But now "sudo gpib_config" returns me the following error:
Segmentation fail
Do you see any backtrace in the output of dmesg?
On Wed, Mar 6, 2019, 14:54 Anderson ambegossi@users.sourceforge.net wrote:
I put the dmesg output in this attached text file.
Did you build and install the 4.2.0 user package ?
What does "gpib_config -v" output ?
On Thu, Mar 7, 2019 at 2:44 PM Anderson ambegossi@users.sourceforge.net
wrote:
Related
Support Requests: #22
I had installed the linux-gpib-4.1.0
I have now uninstalled and installed the linux-gpib-4.2.0 kernel and user package.
Now, "sudo gpib_config" returns me the following output:
failed to configure boardtype: ni_pci
failed to configure board
main: Invalid argument
"gpib_config -v" output :
linux-gpib version = 4.2.0
For the record, I just tried running gpib_config with the
linux-gpib-4.1.0 user space, and the 4.2.0 kernel modules, using a NI
gpib-usb-hs+. I was unable to reproduce the segfault.
On Thu, Mar 7, 2019 at 12:39 PM Anderson
ambegossi@users.sourceforge.net wrote:
I'm trying to communicate with an amplifier lock-in Stanford SR830 with NI_GPIB_USB_HS interface
If i type "lsusb", i get:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f2:b5d7 Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 0cf3:e500 Atheros Communications, Inc.
Bus 001 Device 004: ID 3923:709b National Instruments Corp. GPIB-USB-HS
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Last edit: Anderson 2019-03-07
OK maybe the problem is in your gibp.conf file.
When you built the user part did you specify "./configure
--sysconfdir=/etc" ?
If you did your gpib.conf file should be in /etc. If not it will be in
/usr/local/etc
In it you want to specify board_type = "ni_isb_b"
On Thu, Mar 7, 2019 at 6:40 PM Anderson ambegossi@users.sourceforge.net
wrote:
Related
Support Requests: #22
Ok, I was modifying the gpib.conf file on /etc directory, but the correct one is in the /usr/local/etc.
Now the "sudo gpib_config" command is working perfectly and linux is recognizing the gpib device.
Thank you very much!