Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NIKAL 1.9 pte_offset error

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.

 

 

 

 

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

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,

Ben

National Instruments
Certified LabVIEW Associate Developer
Certified TestStand Developer
0 Kudos
Message 2 of 9
(6,560 Views)

Hi Ben,

 

I am getting the same error when installing as per instructions so I try running the update command.

 

Thanks,

Frank

0 Kudos
Message 3 of 9
(6,548 Views)
I am also getting these same errors.
0 Kudos
Message 4 of 9
(6,535 Views)

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

0 Kudos
Message 5 of 9
(6,511 Views)

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

0 Kudos
Message 6 of 9
(6,501 Views)

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

Message 7 of 9
(6,494 Views)

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 

 

 

 

0 Kudos
Message 8 of 9
(6,445 Views)

Frank,

 

I currently only have NIKAL running on Ubuntu 9.04.  I am working on other modules but it is taking some time.

 

 

0 Kudos
Message 9 of 9
(6,436 Views)