Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

Suse 11.1 64Bit and NIKAL 1.10 Installation Problem

Hi, again

I tryed to install the NIKAL 1.10

and get this error

NI-KAL version 1.10.0f0
is about to be installed using rpm at /usr/local/natinst

Would you like to continue? [Yn] y

Installing NI-KAL version 1.10.0f0...
Pre Installation .                  
Post Installation .                 
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.27.29-0.1-default.                  
                                                                             
********************************* NOTE *********************************     
Using kernel headers found in /lib/modules/2.6.27.29-0.1-default/source.     
If this does not correspond to the location of the 2.6.27.29-0.1-default 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_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: 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.27.29-0.1-default/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/usr/src/linux-2.6.27.29-0.1'
  CC   /usr/local/natinst/nikal/src/objects/nikal.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/local/natinst/nikal/src/objects/nikal.mod.o
  LD   /usr/local/natinst/nikal/src/objects/nikal.ko
make[1]: Leaving directory `/usr/src/linux-2.6.27.29-0.1'
Installing NI-KAL (nikal): Starting NI-KAL failed!
make: *** [install] Fehler 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/hplogger/Desktop/ISO AND/OR
www.ni.com/patents

NI-KAL Installation completed with errors.

I tried the solution from

nikal on SuSE 10.1 with more than 4GB

but i get the same error.

I tried to start with the boot option mem=4096 without any progress.

What can I still try to do ?

0 Kudos
Message 1 of 8
(7,676 Views)

It appears like NI-KAL built correctly since the log file you posted doesn't have any compiler or linker errors. Instead, it looks like there was a problem loading the module:

Installing NI-KAL (nikal): Starting NI-KAL failed!

What does dmesg report when you try to load nikal.ko?

Joe

Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 2 of 8
(4,185 Views)

The message that modprobe give is:

modprobe nikal
FATAL: Error inserting nikal (/lib/modules/2.6.27.29-0.1-default/kernel/natinst/nikal/nikal.ko): Invalid module format

The command dmesg

give at the end : nikal: no symbol version for struct_module
                         nikal: no symbol version for struct_module

0 Kudos
Message 3 of 8
(4,185 Views)

Did you follow the README instructions for OpenSUSE? It sounds like you didn't do steps 3, 4, and 5...

On openSUSE complete the following steps:
1. Ensure you have installed kernel-source and kernel-syms packages
    corresponding to the version of the currently running kernel. The version of
    the currently running kernel can be determined by issuing the command
    "uname -r".
2. Change the directory to the /usr/src/linux-<version> directory, where
    <version> corresponds to the currently running kernel version.
3. Run "zcat /boot/symvers-<version>.gz > Module.symvers" as root to prepare
    modversion support.
4. Run "make cloneconfig" as root to configure the sources for the currently
    running kernel.
5. Run "make modules_prepare" as root to prepare the headers for compilation.
6. Run the NI-KAL INSTALL script.

Joe

Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 4 of 8
(4,185 Views)

hi, first thx

I am sure, that at my first try, I used this steps. Without any progress.

But now the installation run without problems, but there is still a problem after the installation

My steps after installing NIKAL 1.10  were like in the
document How to Install Nikal1.1+NI488.2+NiVisa4.5+PyVisa+NIdaqmxBase on Ubuntu 8.04 (Only for for human beings)

1) ran the updateNIDrivers ->restart

2) install the NI-488.2 Drivers

3) ran the updateNIDrivers -->restart

4)

# modprobe nikal  -->ok

# modprobe nipalk --> ok

# modprobe gpibprtk --> FATAL: Module gpibprtk not found.

/etc/init.d/nipal restart --> Warning: could not unload module nipal from memory, Failed to unload nipalk because it is being used!

5)# gpibtsw

the GUI showed up, and this error appears "NI-488.2 Software is not correctly installed on yours system"

and under GPIB Name there is no entry.

6) gpibexplorer

There is a GPIB0 device in the list.

So what can it be ?

0 Kudos
Message 5 of 8
(4,185 Views)

Wait, we were talking about NI-KAL not loading, and now you're saying that it is loading. Which is correct? What exactly is the problem now?

If you can't load gpibrtk.ko because the kernel says it can't find it, then most likely you didn't compile it (or didn't put the module in a place where modprobe can find it). You may want to provide this feedback to the author of those instructions (which, by the way, are for Ubuntu and not openSUSE).

Joe

Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 6 of 8
(4,185 Views)

The Nikal installation was complete without errors. The module was loaded.

After this I install the NI-488.2 Package  without errors.

Then I just wanted to test, if the hardware was recognized correct.

I started the gpibtsw tool.

And this message come out in this tool: NI-488.2 Software is not correctly installed on yours system.

The 2 Question, is it normal, that i can't restart the nipal module ?

0 Kudos
Message 7 of 8
(4,185 Views)

Okay, it's good to hear you're making progress. Are you still getting the same error from modprobe when you try to load gpibrtk -- what is the console output, and are there any relevant statements in dmseg?

If you want to restart nipalk, you'll need to look at what other modules are using it in lsmod and stop those first.

Joe

Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 8 of 8
(4,185 Views)