Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

libnipalu.so failed to initialize

hello!!

i'm trying to use a NI USB-6501 on a linux trustix distro with a custom kernel (2.6.23)....

i followed the setup procedure, that went on very smoothly, but when i try to use lsdaq  to check the equipment, i get this error:

libnipalu.so failed to initialize
Perhaps you need to run updateNIDrivers
/usr/local/bin/lsdaq: line 7:  4798 Aborted                 /etc/natinst/nidaqmxbase/bin/daqmxbase_listdevices

of course i tried to run updateNIDrivers, but even if it doesn't report any error, it doesn't fix the problem....

i checked the forum to see if others had already solved the same problems, but none of the suggested solutions worked for me....

this is the info i have about my system:

[root@vds-dev ~]# lsmod | grep ni
nidimk                345632  0
niorbk                 97364  1 nidimk
nipalk               1227536  2 nidimk,niorbk
nikal                  50524  1 nipalk
usbcore               109596  9 nikal,hso,onda,usbserial,cdc_acm,usbhid,uhci_hcd,ehci_hcd

[root@vds-dev ~]# rpm -qa | grep ^ni
nipxirmi-1.6.0-f0
nipalki-2.4.1-f0
niorbi-1.9.0-f0
nimdnsresponder-1.1.0-f3
nidimi-1.9.2-f0
nivisak-4.5.1-f0
nivisa-config-4.5.1-f0
nivisaserver-4.5.1-f0
nidaqmxbase-common-3.3.0-f0
nidaqmxbase-usb-support-3.3.0-f0
nirpci-4.1.1-f0
nikali-1.9.0-f0
nipali-2.4.1-f0
nispyi-2.6.0-f0
nicvirte-8.0-7
nivisa-4.5.1-f0
nivisa-devel-4.5.1-f0
nidaqmxbase-board-support-3.3.0-f0
nidaqmxbase-cinterface-3.3.0-f0



so..... it seems to be ok... the only thing that puzzles me is the output of dmesg:

[root@vds-dev lib]# dmesg | tail
nikal: module license 'Copyright (c) 2002-2008 National Instruments Corporation.  All Rights Reserved.  Any and all use of the copyrighted materials is subject to the then current terms and conditions of the applicable license agreement, which can be found at <http://www.ni.com/linux/>.' taints kernel.
Symbol usb_register_driver is being used by a non-GPL module, which will not be allowed in the future
Please see the file Documentation/feature-removal-schedule.txt in the kernel source tree for more details.
Symbol usb_deregister is being used by a non-GPL module, which will not be allowed in the future
Please see the file Documentation/feature-removal-schedule.txt in the kernel source tree for more details.

i attached the output of niSystemReport 'cos it was too long to include in the post....

maybe the problem is that trustix doesn't use udev??

could it be that i need to create the device in the /dev/ folder manually??

let me know if you need more info...

thanks in advance!!

0 Kudos
Message 1 of 6
(9,671 Views)

Yawgmoth wrote:

maybe the problem is that trustix doesn't use udev??

could it be that i need to create the device in the /dev/ folder manually??

The NI drivers don't really use udev, though I seem to remember that udev might be used to load firmware on some of the USB devices.  The NI drivers do install several init scripts one being "/etc/init.d/nipal" and that init script will create /dev/nipalk.  If /dev/nipalk is missing you will get the error you are receiving so that may be your problem.

--

Shawn

Use NI products on Linux? Come join the NI Linux Users Community
0 Kudos
Message 2 of 6
(5,134 Views)

thanks Shawn!!

it leads to another question.... what are the major & minor numbers of the /dev/nipalk device??

0 Kudos
Message 3 of 6
(5,134 Views)

Yawgmoth wrote:

thanks Shawn!!

it leads to another question.... what are the major & minor numbers of the /dev/nipalk device??

The major number is dynamic and I think the minor is 0, but really you should just run the /etc/init.d/nipal init script since it does more than create the device node.

--

Shawn

Use NI products on Linux? Come join the NI Linux Users Community
0 Kudos
Message 4 of 6
(5,134 Views)

thanks again for the hint!!

it doesn't work yet, but it's still a step forward.... ^^

now i get another error:

[root@vds-dev ~]# /usr/local/bin/lsdaq
--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:

Device Error: incompatible firmware.  Serial Number: 01468D80

Execute <NI-DAQmx Base directory>/bin/FWUpdate to update.
--------------------------------

and if i try to update the firmware with FWUpdate, it doesn't work 'cos i don't have xwindows installed.... lol

[root@vds-dev ~]# /usr/local/natinst/nidaqmxbase/bin/FWUpdate
Can't load LabVIEW runtime library /usr/local/lib/liblvrt.so.8.2
libX11.so.6: cannot open shared object file: No such file or directory

but at least now i know that i'm on the right path.....

0 Kudos
Message 5 of 6
(5,134 Views)

problem solved!!

i installed xwindows, updated the firmware and now lsdaq detects the device!!

[root@vds-dev ~]# /usr/local/bin/lsdaq
--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
NI USB-6501: "Dev1"    (USB0::0x3923::0x718A::01468D80::RAW)
--------------------------------

thanks a lot!!

0 Kudos
Message 6 of 6
(5,134 Views)