05-05-2009 02:18 PM
I am trying to install NIKAL 1.9 on a new Mandriva 2009 install.
I continue to get the following error. when trying to run updateNIDrivers
Configuring for linux kernel version 2.6.29.1-desktop586-4mnb.
********************************* NOTE *********************************
Using kernel headers found in /lib/modules/2.6.29.1-desktop586-4mnb/source.
If this does not correspond to the location of the 2.6.29.1-desktop586-4mnb 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()
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
Kernel has owner member in usb_driver: no
Kernel has put_page_testzero(): yes
Kernel has mutex method: yes
Kernel has kthread: 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
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.29.1-desktop586-4mnb/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/usr/src/linux-2.6.29.1-desktop586-4mnb'
CC [M] /usr/local/natinst/nikal/src/objects/nikal.o
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_getKernelPageTableEntry’:
/usr/local/natinst/nikal/src/objects/nikal.c:1795: error: implicit declaration of function ‘pte_offset’
/usr/local/natinst/nikal/src/objects/nikal.c:1795: warning: assignment makes pointer from integer without a cast
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_mapUserPageTableEntry’:
/usr/local/natinst/nikal/src/objects/nikal.c:1808: warning: return makes pointer from integer without a cast
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_getPhysicalAddress’:
/usr/local/natinst/nikal/src/objects/nikal.c:1996: warning: assignment makes pointer from integer without a cast
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-2.6.29.1-desktop586-4mnb'
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.
05-06-2009 11:11 AM
Are you trying to install NI-KAL for the first time or is it an upgrade? It sounds like this is a new installation.
As per the NI-KAL 1.9 Readme, for new installations you should download NI-KAL and run "./INSTALL" and not the updateNIdrivers utility.
Regards,
05-07-2009 07:42 AM
Hi Ben,
I am getting the same error when installing as per instructions so I try running the update command.
Thanks,
Frank
05-07-2009 05:33 PM
05-08-2009 11:49 AM
fhknowles,
Are you trying to install NI-KAL for the first time, or is it an upgrade? If it is an upgrade, what NI drivers are you using, and what issues were you experiencing that prompted the upgrade?
Eric K
Applications Engineering
National Instruments
05-08-2009 01:44 PM
NiKAL 1.9 installs without error but I don't not see any devices.
So I run lsdaq and it can't find devices and it says to run updateNIDrivers then I get the errors.
Thanks,
Frank
05-08-2009 02:57 PM
I have been able to get it working by looking at these instructions:
http://decibel.ni.com/content/docs/DOC-4511
However, because I have the 2.6.28 kernel (Ubuntu 9.04) I did not need to make any kernel changes.
Only the configure script and then re-compile and install.
Here is a quick summay of what I did:
Edit configure on line 88:
sudo nano +88 /usr/local/natinst/nikal/src/configure
To Read:
pte_offset_kernel=`$GREP -d skip pte_offset_kernel $headersDir/include/asm/* $headersDir/arch/x86/include/asm/* | $GREP -wc pte_offset_kernel`
Compile and Install:
sudo ./configure
sudo make
sudo make install
sudo modprobe nikal
Verify:
lsmod
Module Size Used by
nikal 69828 0
05-12-2009 09:47 AM
Qbits,
Thanks for the info but no luck.
Still getting the same error.
Maybe I should try Ubuntu.
Do you have any good info on getting it running on Ubuntu?
Thanks,
Frank
05-12-2009 12:50 PM
Frank,
I currently only have NIKAL running on Ubuntu 9.04. I am working on other modules but it is taking some time.