Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> how to install rt kernel sources
insomnia
 Posted: May 16 2016, 03:40 PM
Quote Post


SLF Newbie


Group: Members
Posts: 5
Member No.: 3688
Joined: 16-May 16









I would be gratefull if anyone could help me installing real time (mrg) kernel sources.

I would like to mention that i am currently using SL5.

Thank you in advance.
PMEmail Poster
^
toracat
 Posted: May 16 2016, 03:58 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 303
Member No.: 11
Joined: 10-April 11









The kernel-rt srpm files for RHEL-5 can be found here:

ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/RHEMRG/SRPMS/

But the latest I see is from 2013.

--------------------
ELRepo: repository specializing in hardware support for EL
PMUsers Website
^
insomnia
 Posted: May 16 2016, 04:13 PM
Quote Post


SLF Newbie


Group: Members
Posts: 5
Member No.: 3688
Joined: 16-May 16









Thank you for your fast response.

I have found these files. I tried to install them following this guide.

The problem is that when i try to install a driver for National Instruments IO cards, it gives an error saying
QUOTE
  Kernel source in /lib/modules/2.6.33.9-rt31.86.el5rt/source does not appear to be
* configured for the kernel-rt-2.6.33.9-rt31.86.el5rt .
* Configuration of kernel source is required to continue installation.        *
* Refer to the README file for the product you are installing for information *
* about configuring your kernel source.*


Do you know how i can solve this problem?
PMEmail Poster
^
toracat
 Posted: May 17 2016, 07:12 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 303
Member No.: 11
Joined: 10-April 11









Did you install the -devel package as well? Can you show us the output from:
CODE

rpm -qa kernel-rt\*

--------------------
ELRepo: repository specializing in hardware support for EL
PMUsers Website
^
insomnia
 Posted: May 25 2016, 02:22 PM
Quote Post


SLF Newbie


Group: Members
Posts: 5
Member No.: 3688
Joined: 16-May 16









First of all, sorry for not replying for days and thank you again for your help.

The output from:
CODE
rpm -qa kernel-rt\*


was:
CODE

kernel-rt-2.6.33.9-rt31.86.el5rt
kernel-rt-devel-2.6.33.9-rt31.86.el5rt


I solved the problem by installing NIKAL and NI-VISA before installing NIDAQmx drivers.

I'll write down the steps, if anyone else is facing the same problem.

QUOTE

So if your operating system is Scientific Linux 5.x and you have installed the real-time kernel (kernel-rt-2.6.33.9-rt31.86.el5rt) of MRG open the terminal and:

1. Download and install the kernel headers and libraries for kernel development.
   
CODE
yum install kernel-rt-devel


2. Make a directory (i named it "NI"), in which you will save all the .iso files that are needed.
   
CODE

   cd
   mkdir NI
   


3. Download and save DAQmx801f0.iso, NIKAL231.iso, NI-VISA-4.2.0.iso in the above folder (~/NI)

4. Mount NIKAL231.iso and install NIKAL drivers.
   
CODE

   cd ~/NI
   mkdir NIKAL
   mount -o loop ~/NI/NIKAL231.iso ~/NI/NIKAL
   cd ~/NI/NIKAL
   ./INSTALL
   


5. After NIKAL drivers have been installed, mount NI-VISA-4.2.0.iso and install NI-VISA drivers.
   
CODE

   cd ~/NI
   mkdir VISA
   mount -o loop ~/NI/NI-VISA-4.2.0.iso ~/NI/VISA
   cd ~/NI/VISA
   ./INSTALL
   


6. After NI-VISA drivers have been installed, mount DAQmx801f0.iso and install DAQmx drivers.
   
CODE

   cd ~/NI
   mkdir DAQmx
   mount -o loop ~/NI/DAQmx801f0.iso ~/NI/DAQmx
   cd ~/NI/DAQmx
   ./INSTALL
   


7. After DAQmx drivers have been installed, update NI drivers.
   
CODE
updateNIDrivers


In order to be sure that everything is working properly, first of all check if your board is recognised
CODE
nilsdev --verbose


and secondly try to execute a sample example
CODE

cd usr/local/natinst/nidaqmx/examples/ansi_c/Digital/GenerateValues/WriteDigChan
make
./WriteDigChan




PMEmail Poster
^
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll