Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with installing gpib driver on linux

hi,
 
i have a problem with installing the gpib driver. My kernel version is "Linux OPS 2.6.16.21-0.25-default #1 Tue Sep 19 07:26:15 UTC 2006 i686 i686 i386 GNU/Linux" and my suse Linux version is 10.1.
 
I attempted to install the GPIB driver version 2.5 for Linux for the ethernet (TCP/IP) version.
 
However, i got the following error message.

Kernel source in /lib/modules/2.6.16.21-0.25-default/source does not appear to be
* configured for the 2.6.16.21-0.25-default kernel.
* Configuration of kernel source is required to continue installation.        *
* Refer to the README file for the product you are installing for information *
* about configuring your kernel source.         
 
Im confused as the version stated on the NI website(http://zone.ni.com/devzone/cda/tut/p/id/5458#toc0) states that it is for Linux version 10.0 and 10.1.
Can anyone pls offer advice? Thanks.

Message Edited by newbie intern on 05-04-2007 07:47 AM

0 Kudos
Message 1 of 6
(4,605 Views)
Hello,
The Driver version 2.5 will work with both Suse Linux 10 and 10.1. Have a look at this document. This may help you.
Thanks and good luck with everything
Nikhil A.
0 Kudos
Message 2 of 6
(4,571 Views)
hi,
 
I have looked through the document which advises me to update my kernel version. However, the kernel version(Linux OPS 2.6.16.21-0.25) is already the updated version and the driver still cant work on this kernel version. Is there an alternative driver version to install instead? Or is my kernel version not suitable for the GPIB driver version for linux 2.5. If so, pls state which kernel version is compatible with the driver.
 
thank you very much indeed.
0 Kudos
Message 3 of 6
(4,531 Views)
Hey,
The dirver version 2.5 does work with Suse 10 try the following steps:
1. Ensure you have installed kernel-source and kernel-syms packages
corresponding to the version of the currently running kernel. You can
determine the currently running kernel version by issuing the command
"uname -r".
2. Change the directory to the /usr/src/linux-<version> directory, where
<version> corresponds to the currently running kernel version.
3. Run "make cloneconfig" as root to configure the sources for the
currently running kernel.
4. Run "make modules_prepare" as root to prepare the headers for
compilation.
5. THIS STEP IS STRICTLY OPTIONAL. Completing this step will remove the
warning:
WARNING: Symbol version dump /usr/src/linux/Module.symvers is missing,
modules will have CONFIG_MODVERSIONS disabled.
Run "make modules" as root to compile all modules and generate
Module.symvers; this may take 30 minutes or more to complete.
6. Run the INSTALL script for the NI-488.2 software for Linux from this
directory.
and let me know how it goes.
Thanks
Nikhil A.

0 Kudos
Message 4 of 6
(4,511 Views)
I have the same issue, but on Fedora 9 with a different kernel version. Here is the output from ./INSTALL:

[cmerck@karellen iso]$ ls
Documentation  LICENSE.txt            NI-VISA      README.txt
INSTALL        NI4882-2.5.1f0.tar.gz  PATENTS.txt  UNINSTALL
[cmerck@karellen iso]$ sudo ./INSTALL

*****************************************************************************
  NI-488.2 Distribution
     version 2.5.1f0 for Linux/x86 32-bit
*****************************************************************************

National Instruments products support the following Linux distributions:
   Mandriva Linux Official
   SUSE Linux
   Red Hat Enterprise Linux WS
Refer to README.txt for the latest information at the time of release.
Refer to www.ni.com/linux for the most recent information about Linux
support at National Instruments.

Continue? [Yn] Y

Checking required install tools...
Checking installer tool versions...
rpm        4.4.2.3 can be used with a default installation path
tar        1.19
Checking dependencies...
glibc      2.8
Unpacking install files to /tmp/NI4882-2.5.1f0.install...

******************************** ERROR ****************************************
* Kernel source in /lib/modules/2.6.25.6-55.fc9.i686/source does not appear to be
* for the 2.6.25.6-55.fc9.i686 kernel.
* Ensure that kernel source for the 2.6.25.6-55.fc9.i686 kernel is installed
* and configured.  Refer to the README file for the product you are           *
* installing for information about configuring your kernel source.            *
******************************** ERROR ****************************************

Installer is aborted.
[cmerck@karellen iso]$

0 Kudos
Message 5 of 6
(4,191 Views)
Hi Cmerck,

Fedora 9 is not supported by the driver you are trying to use and I would recommended using one of the supported distributions. While searching our forums, I came across the following thread and it may help resolve your issue.

 NI-488.2 install error Kernel source problem [Fedora Core 6]

Thank you,

Simran K
National Instruments
Applications Engineer
0 Kudos
Message 6 of 6
(4,146 Views)