Captain's Universe Home
Captain's Universe Home
Cosmic Ray Muon DetectorTeleGarden Pages
Time on MarsBryophyllum Plants
Jupiter Radio AstronomyAncient Pages
Salzburg Tourist GuideEarth Magnetometer
  H O M E     AJAX & MORE     LINUX & MORE     RTAI     XENOMAI     ADEOS IPIPE      
    JAVA & BROWSERS     *NIX     ELECTRONICS     REVIEWS     ARTEMIA     FAIRY SHRIMP      



RTAI/fusion with kernel 2.6 - Real Time Linux Kernel - Installation Guide



Unpack the kernel source:
# cd /usr/src
# tar xvjf linux-2.6.11.tar.bz2
# ln -s linux-2.6.11 linux
Unpack RTAI/fusion in /usr/src:
# tar xjf fusion-0.7.tar.bz2
# ln -s fusion-0.7 fusion
Patch the kernel:
# cd /usr/src/linux
# patch -p1 < ../fusion/arch/i386/patches/[adeos-patch]
Copy the existing kernel 2.6 config file of your distro to /usr/src/linux
# cp /boot/config-2.6.xxxx /usr/src/linux/.config
Configure the kernel:
# make menuconfig
(you need to "make menuconfig" even if you accept the default config!)



Compile the kernel:
# make
# make modules_install install
Add the kernel to GRUB.

After the kernel is compiled and installed successfully, compile RTAI/fusion:
# cd /usr/src/fusion
# make menuconfig
Adjust the paths: RTAI/fusion installation directory: default: /usr/realtime/
Kernel build directory: default: /lib/modules/`uname -r`/build
If you haven't rebooted with the new kernel yet, change the kernel build directory to i.e. /lib/modules/2.6.11-adeos/build.

If you're new to RTAI/fusion just accept the other config options - after saving the config wait until all configuration is done
# make install
If no errors occured, reboot now, select the new kernel from the GRUB menu.



To test RTAI/fusion use the tests in the testsuite directory:
# cd /usr/realtime/testsuite/[cruncher|klatency|latency|switch]
# ./run


If you compile your own fusion stuff and you see this error message:
error while loading shared libraries: librtai.so.0: cannot open shared object file: No such file or directory

Edit /etc/ld.so.conf and add the library path i.e. "/usr/realtime/lib/". Then run "ldconfig" and the RTAI libraries are added.

Last-Modified: Sat, 04 Feb 2006 16:20:15 GMT

Google
 
Web www.captain.at
go to top
© 1996-2010 . All rights reserved.
No reproduction, distribution, publishing or transmission of the copyrighted materials at this site is permitted. Policy
go to top