02-17-2011 07:22 AM
Hello,
I am trying to use a NI PCI-6220 M Series with NI-DAQmx Base 3.4 on openSUSE 11.2 with kernel version 2.6.31.14-0.6.
I started by carefully reading the README file and following all the instructions for openSUSE (make cloneconfig, make modules_prepare). The installation appears to have gone smoothly. However, after using lsdaq, the following error happens:
--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
libnipalu.so failed to initialize
Perhaps you need to run updateNIDrivers
/usr/local/bin/lsdaq: line 7: 7081 Aborted /etc/natinst/nidaqmxbase/bin/daqmxbase_listdevices
--------------------------------
Of course I ran updateNIDrivers, which yields the following results:
linux-ha1x:/usr/local/bin # ./updateNIDrivers
Configuring for linux kernel version 2.6.31.14-0.6-desktop.
********************************* NOTE *********************************
Using kernel headers found in /lib/modules/2.6.31.14-0.6-desktop/source.
If this does not correspond to the location of the 2.6.31.14-0.6-desktop 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
Kernel has kzalloc: 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
Kernel has owner member in usb_driver: no
Kernel has put_page_testzero(): yes
Kernel has mutex method: yes
Kernel has wait_for_completion_interruptible: yes
Kernel has config.h: no
Kernel has ioctl32.h: no
IRQ handlers have pt_regs: no
Kernel has work_struct and delayed_work: yes
Kernel supports fault method in vm_operations_struct: yes
Kernel uses 'generated' dir: no
Storing configuration in Makefile.in
If the values stored are incorrect they can be changed before running make.
Installing NI-KAL:
NI-KAL successfully updated.
Updating client modules:
nipalk.ko successfully updated.
NiViPciK.ko successfully updated.
niorbk.ko successfully updated.
nidimk.ko successfully updated.
NiViPxiK.ko successfully updated.
nipxirmk.ko successfully updated.
Rebooting is required to ensure that National Instruments drivers
have been successfully updated.
Would you like to reboot now? [yes|no]
I did some searching on the forums and found this thread: http://forums.ni.com/t5/Multifunction-DAQ/libnipalu-so-failed-to-initialize/td-p/1253838#M59781
I tried the solution proposed by Nathan2 and when trying to copy to Module.symvers I get the following message at the end: gzip:
Module.symvers.gz: No such file or directory
As an additional piece of information, it seems like there's a problem with nipal. I found in the forum that it could be that the module nipal is not running, and after trying to make it start the following happens:
linux-ha1x:/usr/src/linux # /etc/init.d/nipal start
FATAL: Error inserting nipalk (/lib/modules/2.6.31.14-0.6-desktop/kernel/natinst/nipal/nipalk.ko): Invalid module format
error: nipalk failed to load
possible causes:
nipalk was not versioned for this kernel (2.6.31.14-0.6-desktop)
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.31.14-0.6-desktop
I see that most users attach a "niSystemReport". I'm new to linux and I have no idea where to find this file. If it's needed please tell me where it is so I can look for it.
Thanks a lot in advance for your help. I've been trying to get this to work for over 2 days and I've run out of options.
02-17-2011 10:02 AM - edited 02-17-2011 10:11 AM
UPDATE:
I tried uninstalling and installing again. This is how the installation went:
Do you accept the license? [ynq] y
Do you want to install NI-DAQmx Base for C? [Yn] y
Do you want to install NI-DAQmx Base USB Device Support? [Yn] y
The following NI-DAQmx Base components will be installed:
NI-DAQmx Base for C
NI-DAQmx Base USB Device Support
NI-DAQmx Base 3.4.0-f2 requires NI-DAQmx Base PCI/PXI Support 3.4.0-f2.
This component has been selected automatically.
NI-DAQmx Base 3.4.0-f2 requires NI-DAQmx Base Common Utilities 3.4.0-f2.
This component has been selected automatically.
NI-DAQmx Base 3.4.0-f2 requires NI-VISA 5.0.0.
This component has been selected automatically.
Continue install? [Yn] y
Running the NI-VISA installer...
*****************************************************************************
NI-VISA for Linux
version 5.0.0f1 for Linux
*****************************************************************************
National Instruments products support the following Linux distributions:
openSUSE
Red Hat Enterprise Linux Desktop + Workstation
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.
Checking required install tools...
Checking installer tool versions...
dpkg Not found in current path
rpm 4.7.1 can be used with a default installation path
tar 1.21
Checking dependencies...
glibc 2.10.1
Unpacking install files to /tmp/nivisa-5.0.0f1.install...
By installing this software, you are acknowledging acceptance of the terms
of the included license file (LICENSE.txt).
NI-VISA for Linux version 5.0.0f1
is about to be installed using rpm at /usr/local/natinst
Installing NI-VISA for Linux version 5.0.0f1...
Pre Installation .
Post Installation .
Pre Installation ...................
Preparing... ########################################### [100%]
1:labview-2009-rte ########################################### [ 6%]
2:nirpci ########################################### [ 13%]
3:nimdnsresponder ########################################### [ 19%]
insserv: can not stat(nipxirmu)
4:nikali ########################################### [ 25%]
5:nicvirte ########################################### [ 31%]
6:nipalki ########################################### [ 38%]
7:nipali ########################################### [ 44%]
insserv: can not stat(nipxirmu)
8:niorbi ########################################### [ 50%]
9:nidimi ########################################### [ 56%]
10:nivisak ########################################### [ 63%]
11:nivisa ########################################### [ 69%]
insserv: can not stat(nipxirmu)
12:nipxirmi ########################################### [ 75%]
13:nispyi ########################################### [ 81%]
14:nivisa-config ########################################### [ 88%]
15:nivisa-devel ########################################### [ 94%]
16:nivisaserver ########################################### [100%]
Post Installation ...................
Updating modversions database to include newly installed drivers...
FOR PATENTS COVERING NATIONAL INSTRUMENTS PRODUCTS, REFER TO
THE PATENTS.txt FILE ON /mnt/nidaq/nivisa AND/OR
www.ni.com/patents
******************************************************************************
* A reboot is required before attempting to use the
* NI-VISA for Linux software.
******************************************************************************
NI-VISA for Linux Installation completed successfully.
Please reboot manually before attempting to use
NI-VISA for Linux software.
Preparing... ########################################### [100%]
1:nidaqmxbase-board-suppo########################################### [100%]
Preparing... ########################################### [100%]
1:labview-2010-rte ########################################### [100%]
Preparing... ########################################### [100%]
1:nidaqmxbase-common ########################################### [100%]
Preparing... ########################################### [100%]
package labview-2010-rte-10.0.0-1.i386 is already installed
Preparing... ########################################### [100%]
1:nidaqmxbase-cinterface ########################################### [100%]
Preparing... ########################################### [100%]
package labview-2010-rte-10.0.0-1.i386 is already installed
Preparing... ########################################### [100%]
1:nidaqmxbase-usb-support########################################### [100%]
Finished installing NI-DAQmx Base 3.4.0-f2.
Please reboot manually before attempting to use your NI drivers and products.
02-17-2011 10:53 AM
Sorry for the triple post. I forgot to say that for the second install I even ran the optional part of the openSUSE installation: "make modules" on /usr/src/linux. I did this since I thought this would solve the Module.symvers problem listed above.
After installing, rebooting and doing "zcat /boot/symvers-<version>.gz > Module.symvers" again, this was displayed at the end:
gzip: Module.symvers: not in gzip format
The updateNIDrivers utlity did the same as the first time and I keep getting the libnipalo.so error.
I thought I should also include this information:
linux-ha1x:/usr/src/linux-2.6.31.14-0.6 # rpm -qa | grep ^ni
nidimi-1.10.0-f0.i386
nidaqmxbase-board-support-3.4.0-f2.i386
nikali-2.0.0-f0.noarch
nipxirmi-1.6.0-f0.i386
nidaqmxbase-cinterface-3.4.0-f2.i386
nimdnsresponder-1.1.0-f3.i386
nipali-2.5.4-f0.i386
nivisa-5.0.0-f0.i386
nivisa-devel-5.0.0-f0.i386
nidaqmxbase-common-3.4.0-f2.i386
nirpci-4.2.0-f0.i386
nipalki-2.5.4-f0.i386
nivisak-5.0.0-f0.i386
nivisa-config-5.0.0-f0.i386
nicvirte-8.0-7.i386
nispyi-2.7.2-f0.i386
nidaqmxbase-usb-support-3.4.0-f2.i386
niorbi-1.9.3-f0.i386
nivisaserver-5.0.0-f0.i386
Finally I've figured out how to generate the NI system report file. It's attached here.
Thanks a lot for your help in advance!
03-09-2011 08:18 AM
Hi,
what version of NI-KAL have you installed? You maybe need NI-KAL 2.0 + NI-VISA Run-Time Engine 5.0 (Beta). You can download it from here:
as shown in this document:
http://digital.ni.com/public.nsf/allkb/4857A755082E9E228625778900709661?OpenDocument
For further information, please read this article:
http://zone.ni.com/devzone/cda/tut/p/id/11803
I hope this helps!
Jesús.