Menu

#22 linux-gpib Ubuntu installation help

v1.0 (example)
open
nobody
None
9
2019-03-07
2019-03-05
Anderson
No

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.

Related

Support Requests: #22

Discussion

  • Frank Mori Hess

    Frank Mori Hess - 2019-03-05

    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:


    [support-requests:#22] linux-gpib Ubuntu installation help

    Status: open
    Group: v1.0 (example)
    Created: Tue Mar 05, 2019 06:13 PM UTC by Anderson
    Last Updated: Tue Mar 05, 2019 06:13 PM UTC
    Owner: nobody

    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.


    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/linux-gpib/support-requests/22/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

    --
    Frank

     

    Related

    Support Requests: #22

  • DaveP

    DaveP - 2019-03-06

    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:


    Status: open
    Group: v1.0 (example)
    Created: Tue Mar 05, 2019 06:13 PM UTC by Anderson
    Last Updated: Tue Mar 05, 2019 06:13 PM UTC
    Owner: nobody

    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.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/linux-gpib/support-requests/22/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Support Requests: #22

  • Anderson

    Anderson - 2019-03-06

    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?

     
    • Frank Mori Hess

      Frank Mori Hess - 2019-03-06

      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

       
    • DaveP

      DaveP - 2019-03-06

      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:

      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?

      Status: open
      Group: v1.0 (example)
      Created: Tue Mar 05, 2019 06:13 PM UTC by Anderson
      Last Updated: Tue Mar 05, 2019 06:13 PM UTC
      Owner: nobody

      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.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/linux-gpib/support-requests/22/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #22

  • Anderson

    Anderson - 2019-03-06

    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

     
  • Anderson

    Anderson - 2019-03-06

    "sudo modprobe ni_usb_gpib" worked after turning off UEFI secure boot.
    But now "sudo gpib_config" returns me the following error:
    Segmentation fail

     
    • Frank Mori Hess

      Frank Mori Hess - 2019-03-06

      Do you see any backtrace in the output of dmesg?

      On Wed, Mar 6, 2019, 14:54 Anderson ambegossi@users.sourceforge.net wrote:

      "sudo modprobe ni_usb_gpib" worked after turning off UEFI secure boot.
      But now "sudo gpib_config" returns me the following error:
      Segmentation fail.

       
  • Anderson

    Anderson - 2019-03-07

    I put the dmesg output in this attached text file.

     
  • Anderson

    Anderson - 2019-03-07

    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

     
    • Frank Mori Hess

      Frank Mori Hess - 2019-03-07

      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 had installed the linux-gpib-4.1.0
      I have now uninstalled and installed the linux-gpib-4.2.0 kernel and user package.

       
  • Anderson

    Anderson - 2019-03-07

    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
    • DaveP

      DaveP - 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:

      I'm trying to communicate with an amplifier lock-in Stanford SR830 with
      NI_GPIB_USB_HS interface


      Status: open
      Group: v1.0 (example)
      Created: Tue Mar 05, 2019 06:13 PM UTC by Anderson
      Last Updated: Thu Mar 07, 2019 05:38 PM UTC
      Owner: nobody

      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.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/linux-gpib/support-requests/22/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #22

  • Anderson

    Anderson - 2019-03-07

    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!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.