Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

updateNIDrivers for new kernel version does not work

Hi,

I have installed nidaqmx-8.0.0 on Suse Linux 10.0 kernel version 2.6.13.15  and it worked.
Now I updated to a new kernel version 2.6.18 and I got the error that the kernel version is not the running kernel.
First I tried like mentioned in the readme file "make cloneconfig", but there was the error "don´t know how to
make cloneconfig", so I made "make oldconfig" and than "make modules_prepare". Than I tried again
updateNIDrivers but I get the same error.

I found out, that there has to be a file "asm_offsets.h" but in the new kernel there is a file "asm-offsets.h", so I
copied the file.
The next thing I found out is UTS_RELEASE is no longer defined in "../linux/version.h" so I add this entry.
Now the update tried to compile the sources and now I have the error:

/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_decrementPageRefcount’:
/usr/local/natinst/nikal/src/objects/nikal.c:1842: error: ‘struct page’ 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: ‘struct usb_driver’ has no member named ‘owner’
make[2]: *** [/usr/local/natinst/nikal/src/objects/nikal.o] Fehler 1
make[1]: *** [_module_/usr/local/natinst/nikal/src/objects] Fehler 2

Then I made some changes in the "nikal.c" and then the compilation works until he tried to link the modules
to the kernel:

FATAL: Error inserting nipalk (/lib/modules/2.6.18-default/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-default)
   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-default


Is there a new driver which supports Suse Linux 10.0 and kernel 2.6.18?

I tried to install "NI-DAQmx Base 2.1.0-f0" too, but I get the same error:

  CC [M]  /usr/local/natinst/nikal/src/objects/nikal.o
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_decrementPageRefcount’:
/usr/local/natinst/nikal/src/objects/nikal.c:1854: error: ‘struct page’ has no member named ‘count’
make[2]: *** [/usr/local/natinst/nikal/src/objects/nikal.o] Fehler 1
make[1]: *** [_module_/usr/local/natinst/nikal/src/objects] Fehler 2

Can you tell me what kernel versions are supported?
Then I can try another one.

Thank you!



0 Kudos
Message 1 of 5
(3,968 Views)
hello rwalberer,

basically it should work also with the new kernel.
be sure that you have downloaded the source, which correspond with your new kernel image.

as a second try i would suggest, that you try to install the newest 488.2 driver, which will replace some components. if that doesn't work, first uninstall the DAQmx and other NI hardware drivers and try the 488.2 installer again.

regards,

robert h
NI germany
0 Kudos
Message 2 of 5
(3,946 Views)
Hi robertH,

where can I find the new driver?

The last I saw was 8.0.0!


0 Kudos
Message 3 of 5
(3,944 Views)
sorry,

the DAQmx is still 8.0.0.
the one i mean is here.
0 Kudos
Message 4 of 5
(3,941 Views)
Hi RobertH,

i tried the ne driver, but I get the same error:

/bin/cp nikal.c objects/nikal.c
/bin/cp nikal.h objects/nikal.h
make -C /lib/modules/2.6.18-default/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/tmp/linux-2.6.18'
  CC [M]  /usr/local/natinst/nikal/src/objects/nikal.o
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_decrementPageRefcount’:
/usr/local/natinst/nikal/src/objects/nikal.c:1854: error: ‘struct page’ has no member named ‘count’make[2]: *** [/usr/local/natinst/nikal/src/objects/nikal.o] Fehler 1
make[1]: *** [_module_/usr/local/natinst/nikal/src/objects] Fehler 2
make[1]: Leaving directory `/tmp/linux-2.6.18'
make: *** [objects/nikal.ko] Fehler 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.


How can I be sure to have the correct sources?  I downloaded the kernel package and installed it
with (make xconfig, make, ...)
Therfore I should have the correct sources, don´t I?


0 Kudos
Message 5 of 5
(3,936 Views)