Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Driver NI-488.2 (Linux) Version 2.5 for Linux -- 32 Bit problems

I have a slightly custom Kernel on my Linux box (due to some custom hardware) and when I try to install/compile the driver NI-KAL fails to compile with the below errors.
 
Is the driver meant to work with a 2.6.28 kernel and if it is then what else does this package depend on?  It is worth noting that I installed using the --nodepts option as my rpm data base is not happy.
 
Thanks
 
Simon
 
make[1]: Entering directory `/usr/src/linux-headers-2.6.18-4-686'
  CC [M]  /usr/local/natinst/nikal/src/objects/nikal.o
/usr/local/natinst/nikal/src/objects/nikal.c: In function 'nNIKAL100_mmap':
/usr/local/natinst/nikal/src/objects/nikal.c:1163: error: 'VM_SHM' undeclared (first use in this function)
/usr/local/natinst/nikal/src/objects/nikal.c:1163: error: (Each undeclared identifier is reported only once
/usr/local/natinst/nikal/src/objects/nikal.c:1163: error: for each function it appears in.)
/usr/local/natinst/nikal/src/objects/nikal.c: In function 'nNIKAL100_decrementPageRefcount':
/usr/local/natinst/nikal/src/objects/nikal.c:1854: error: 'nLinux_physicalPage' has no member named 'count'
make[2]: *** [/usr/local/natinst/nikal/src/objects/nikal.o] Error 1
make[1]: *** [_module_/usr/local/natinst/nikal/src/objects] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-4-686'
make: *** [objects/nikal.ko] Error 2
 
ERROR: make of nikal kernel module failed, not installing kernel module.
   updateNIDrivers should be called again after fixing the problem.
 
 
0 Kudos
Message 1 of 2
(3,772 Views)
The errors are because of some small internal changes in the 2.6.18 kernel. The NI-driver is not up to date with the latest kernels. Many on this fourm have successfully build the driver for the 2.6.18 kernel, including me.

I have a patch that you can try, download the file that I have attached and save it in /tmp

Then run the following (as root):

# cd /usr/local/natinst/nikal
# patch -p1 < /tmp/nikal-2.6.18.patch
# updateNIDrivers

and you will probably be set! (you must have the patch program installed but that often comes with some development package in your distribution)

The patch addresses all 2.6.18 issuses that I'm aware of and works for me with the 2.6.18 kernels on my Fedora Core 6 installation.

Good luck!

Message Edited by JHn on 04-19-2007 04:37 AM

Message Edited by JHn on 04-19-2007 04:38 AM

0 Kudos
Message 2 of 2
(3,758 Views)