06-22-2009 01:36 AM
Hello,
I'm trying to install the above driver but it fails to install, see below:
Linux swiscc01 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU/Linux
===========================================================================================================
# grub.conf generated by anaconda
kernel /vmlinuz-2.6.18-128.el5 ro root=LABEL=/ rhgb quiet crashkernel=128M@16M mem=2048M
initrd /initrd-2.6.18-128.el5.img
============================================================================================================
[root@swiscc01 mnt]# ./INSTALL
*****************************************************************************
NI-DAQmx for Linux Installer Distribution
version 8.0.0f1 for Linux/x86 32-bit
*****************************************************************************
...
Continue? [Yn]
Checking required install tools...
Checking installer tool versions...
rpm 4.4.2.3 can be used with a default installation path
tar 1.15.1
Checking dependencies...
glibc 2.5
Unpacking install files to /tmp/nidaqmx-8.0.0f1.install...
NATIONAL INSTRUMENTS SOFTWARE LICENSE AGREEMENT (LINUX DRIVER SOFTWARE)
...
(c) 2004-2005 National Instruments Corporation. All Rights Reserved.
371460B-01
March 2005
By installing this software, you are acknowledging acceptance of the terms
of the included license file (LICENSE.txt).
Do you accept the license? [ynq] y
LabVIEW 8.0 not detected
Manually specify a location for LabVIEW 8.0 support files? [yN]
NI-DAQmx for Linux Installer Distribution version 8.0.0f1
is about to be installed using rpm at /usr/local/natinst
LabVIEW 8.0 support will be skipped.
Would you like to continue? [Yn]
Installing NI-DAQmx for Linux Installer Distribution version 8.0.0f1...
Pre Installation .............................
Preparing... ########################################### [100%]
1:niscarabmm [ 4%]
2:nirpci [ 7%]
3:nidaqmxhelp [ 11%]
4:labview80-rte [ 14%]
5:nikali [ 18%]
6:nipali [ 21%]
7:niorbi [ 25%]
8:nidimi [ 29%]
9:nimdbgi [ 32%]
10:nimxdfi [ 36%]
11:nimxpi [ 39%]
12:nistci [ 43%]
13:nimru2i [ 46%]
14:nipxirmi [ 50%]
15:nidaqmxinfi [ 54%]
16:nidaqmxcapihelp [ 57%]
17:nidaqmxcapiexmp [ 61%]
18:nimxs [ 64%]
19:nidaqmxef [ 68%]
20:nicdigi [ 71%]
21:nitimingi [ 75%]
22:nidaqmxcfgi [ 79%]
23:nimioi [ 82%]
24:niscxi [ 86%]
25:ni653x [ 89%]
26:nidaqmxcapii [ 93%]
27:nidaqmxswitch [ 96%]
28:nidsai [100%]
Post Installation .
Warning: nikali post installation failed! /tmp/nikaliPostInstall.log follows:
Checking required tools...
Configuring for linux kernel version 2.6.18-128.el5.
********************************* NOTE *********************************
Using kernel headers found in /lib/modules/2.6.18-128.el5/source.
If this does not correspond to the location of the 2.6.18-128.el5 headers,
then define KERNELHEADERS in your environment to point to the location
of the kernel headers, define KERNELTARGET as the version of the
kernel for which to compile, and then rerun ./configure.
********************************* NOTE *********************************
Kernel has reparent_to_init(): no
Number of arguments for do_munmap(): 3
pte_offset function: pte_offset_kernel()
Levels in page table: 4
Kernel has remap_pfn_range: yes
USB altsetting name: cur_altsetting
Kernel has usb_get_intf(): yes
Kernel has intf_cache member in usb_host_config: yes
Kernel has ep[] members in usb_device: yes
Kernel exports usb_set_configuration(): no
Units of USB_CTRL_GET_TIMEOUT: msec
Storing configuration in Makefile.in
If the values stored are incorrect they can be changed before running make.
Uninstalling NI-KAL (nikal): done
/bin/rm -rf objects
Updating NI-KAL:
NI-KAL update failed.
/bin/cp nikal.c objects/nikal.c
/bin/cp nikal.h objects/nikal.h
make -C /lib/modules/2.6.18-128.el5/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-128.el5-i686'
CC [M] /usr/local/natinst/nikal/src/objects/nikal.o
In file included from /usr/local/natinst/nikal/src/objects/nikal.c:34:
include/linux/config.h:6:2: warning: #warning Including config.h is deprecated.
/usr/local/natinst/nikal/src/objects/nikal.c: In function nNIKAL100_mmap:
/usr/local/natinst/nikal/src/objects/nikal.c:1150: error: VM_SHM undeclared (first use in this function)
/usr/local/natinst/nikal/src/objects/nikal.c:1150: error: (Each undeclared identifier is reported only once
/usr/local/natinst/nikal/src/objects/nikal.c:1150: 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:1842: error: nLinux_physicalPage has no member named countâ
/usr/local/natinst/nikal/src/objects/nikal.c: In function nNIKAL100_registerUSBDriver:
/usr/local/natinst/nikal/src/objects/nikal.c:2772: error: nLinux_usbDriver has no member named owner
/usr/local/natinst/nikal/src/objects/nikal.c: In function nNIKAL100_usbSubmitURB:
/usr/local/natinst/nikal/src/objects/nikal.c:3536: error: URB_ASYNC_UNLINK undeclared (first use in this function)
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/kernels/2.6.18-128.el5-i686'
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.
Logging failure...
Include the file /tmp/niSystemReport.out.gz when contacting
National Instruments for support.
............................
FATAL: Error inserting nipalk (/lib/modules/2.6.18-128.el5/kernel/natinst/nipal/nipalk.ko): Unknown symbol in module, or unknown parameter (see dmesg)
error: nipalk failed to load
possible causes:
nipalk was not versioned for this kernel (2.6.18-128.el5)
modules are not enabled for this kernel (CONFIG_MODULES)
unresolved symbols
possible solution:
if you recently installed a new kernel or have rebooted to
a different kernel then you were previously running then run
/usr/local/bin/updateNIDrivers
to version your NI drivers for kernel 2.6.18-128.el5
Can anyone assist me?
Many thanks in advance,
Jeroen.
06-22-2009 05:58 PM
You should use the latest versin of NI-DAQmx (currently 8.0.1) or NI-DAQmx Base (currently 3.2). You can get either one from here. I should mention that NI-DAQmx doesn't officially support RHEL 5 (or CENTOS) because it has a 4K kernel stack. Some NI-DAQmx operations can cause kernel stack to overflow and crash the system. If NI-DAQmx Base provides the support you need you should use it instead.
Shawn Bohrer
National Instruments
06-23-2009 02:36 AM
Hello Shawn,
Thank you for the quick response and sorry for the different alias name i'm using now. I can't login with 'nlsewaco', i guess i did something wrong.
But, i have download and install the latest NI-DAQmx driver; succesfully. So, thank you for your answer.
I know centos is not officially supported but that's ok. I only need the PCI-6601 card for generating a pulse when a specific event happends. Do you know if i can use the NI-DAQmx base driver? I saw on the NI website that this driver doesn't support the card i'am using.
Kind regards,
Jeroen.
06-23-2009 09:10 AM
I looked at the NI-DAQmx Base README file and you are correct it doesn't look like the PCI-6601 is supported. You can you NI-DAQmx with the PCI-6601, but I would recommend that you verify that your use case will work on CentOS 5.3 on a non-production system. It is possible everything will work fine, but it is also possible that you may experience random system crashes.
Shawn Bohrer
National Instruments
06-24-2009 01:12 AM
Ok, thanks for the replys.
Kind regards,
Jeroen.