Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

nikal on SuSE 10.1 with more than 4GB

Hi,
I'm trying to install DAQmx on my linux machine. After unsuccessfully working with quite a few contemporary distributions, I finally installed the officially asdfsupported SuSE 10.1.

HLR114:~/nikal>uname -a
Linux HLR114 2.6.16.13-4-bigsmp #1 SMP Wed May 3 04:53:23 UTC 2006 i686 i686 i386 GNU/Linux

 But still neither nikal 1.4 nor 1.6 will install properly. The nikal 1.6 INSTALL script says:

Installing NI-KAL version 1.6.0f0...
Pre Installation ..
Preparing...                ########################################### [100%]
   1:nikali                 ########################################### [100%]
Post Installation .
Warning: nikali post installation failed! /tmp/nikaliPostInstall.log follows:

Configuring for linux kernel version 2.6.16.13-4-bigsmp.

********************************* NOTE *********************************
Using kernel headers found in /lib/modules/2.6.16.13-4-bigsmp/source.
If this does not correspond to the location of the 2.6.16.13-4-bigsmp 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(): yes
Number of arguments for do_munmap(): 3
pte_offset function: pte_offset_kernel()
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: yes
IRQ handlers have pt_regs: yes
Kernel has work_struct and delayed_work: no

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.16.13-4-bigsmp/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/usr/src/linux-2.6.16.13-4'

  WARNING: Symbol version dump /usr/src/linux-2.6.16.13-4/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /usr/local/natinst/nikal/src/objects/nikal.o
  Building modules, stage 2.
  MODPOST
  CC      /usr/local/natinst/nikal/src/objects/nikal.mod.o
  LD [M]  /usr/local/natinst/nikal/src/objects/nikal.ko
make[1]: Leaving directory `/usr/src/linux-2.6.16.13-4'
Installing NI-KAL (nikal): Starting NI-KAL failed!
make: *** [install] Error 1

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.

.

FOR PATENTS COVERING NATIONAL INSTRUMENTS PRODUCTS, REFER TO
THE PATENTS.txt FILE ON /home/qndlab/nikal AND/OR
www.ni.com/patents

NI-KAL Installation completed with errors.

The nikal kernel module fails to load. A dmesg aferwards says.

nikal: module not supported by Novell, setting U taint flag.
nikal: module license 'Copyright (c) 2002-2007 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.
nikal: No versions for exported symbols. Tainting kernel.
[nikal] More than 4GB of addressable memory detected.
[nikal] This configuration is not supported.  Check the release notes for more information.

Does that mean that I have to throw away some of my memory? What can I do?
Cheers
Zaphod
0 Kudos
Message 1 of 3
(3,991 Views)
Hello Zaphod,

here are instructions that should help you to succesfully install NI-KAL:

Required:
- kernel sources
- kernel symbols
- gcc compiler

Change to the kernel sources directory (normally /usr/src/linux) and clone your current configuration:

make cloneconfig

Modify /usr/src/linnux/scripts/mod/modpost.c - replace #define SZ 500 with #define SZ 1024

Then, prepare the modules:

make modules_prepare

Create a symbolic link:

ln -s /usr/src/linux/include/asm/asm-offsets.h /usr/src/linux/include/asm/asm_offsets.h

Copy the single line contained in /usr/src/linux/include/linux/utsrelease.h and paste it in /usr/src/linux/include/linux/version.h

Now, install the current version of NI-KAL, available at

http://joule.ni.com/nidu/cds/view/p/id/850/lang/en

Please post again and tell us if you were successful.

Thank you,
Johannes

NI Germany         624062
0 Kudos
Message 2 of 3
(3,971 Views)


@Zaph0042 wrote:< www.ni.com="" linux="">
Does that mean that I have to throw away some of my memory? What can I do?


This KnowledgeBase should answer your question.  You didn't mention how much RAM you have in your system, but this will limit the amount of RAM that your OS can see and use to approximately 3 GB (the actual ammount depends on the system).  If this is unacceptable then your only other options are to use a different machine with less RAM, or perhaps use the open source drivers if they support your device.

Shawn Bohrer
National Instruments
Use NI products on Linux? Come join the NI Linux Users Community
0 Kudos
Message 3 of 3
(3,954 Views)