[Home]Installation On Mandrake 9.2

Last edit: Toma on May 11, 2004 18:38 (4704 days, 8 hours and 45 minutes ago) (diff)
Rtai.Dk | RecentChanges | Preferences | DIAPM RTAI

Installation of RTAI-3.0r3 on Mandrake 9.2

(Comment : It didn't work for me...)

This instalation comes from the "Installation of RTAI-24.1.11 on Mandrake 9.1"

1 After installing Mandrake 9.2

You have to download a so-called vanilla kernel, from kernel.org. I have used linux-2.4.25. You can also use another kernel as long as there exists a patch for

that kernel in the RTAI source-tree. Then download the RTAI-source (in my case 3.0r3).

Everything written in bold should be typed in a shell. Your need to be logged in as root/superuser when installing RTAI. In a shell just type :

 su and then type the password for the root/superuser.

2 Unpacking the sources and patching the Linux kernel

Unpack the source to an appropriate folder (i.e. /usr/src/).

 tar -zxf rtai-3.0r3.tar.bz2 /usr/src/ (this puts the rtai-source into 

/usr/src/rtai-3.0r3).

I have made a symbolic link called rtai that points to my rtai-source (this makes it a bit easier

if you want to use several rtai-versions). This is done by

 ln -s /usr/src/rtai-3.0r3 /usr/src/rtai 

The same thing is done for the Linux kernel:

 tar -zxf linux-2.4.25.tar.bz2 /usr/src/ (this puts the linux kernel-source into 

/usr/src/linux-2.4.25)

I have made a symbolic link called linux that points to my linux kernel-source (this makes it a

bit easier if you want to use several kernel-versions).

This is done by:

 ln -s /usr/src/linux-2.4.25 /usr/src/linux

Now you are ready to patch the linux kernel with RTAI. Go the to linux folder:

 cd /usr/src/linux

Patch the kernel with adeos (make sure that the patch you are using corresponds the version of

the linux kernel)

 patch -p1 < /usr/src/rtai/patches/hal12-2.4.25.patch

3 Compiling the kernel

I have used gcc-3.3 as compiler and everything works fine.

When your kernel is patched you are ready to compile your 'own' kernel. Before you are able to

compile it, you need to configure it. Make sure not to use any power management as it seems to 'disturb' RTAI.

I have also discovered (the hard way) that you should not enable the Kernel-hacking option

(offering some debug features for kernel modules etc.)

There are several ways to configure your kernel, both in text mode and i graphical mode. I prefer

to use graphical mode (menuconfig). In the /usr/src/linux folder do :

 make xconfig
A menu pop up : In "General Setup", check all the options concerning adeos In "Loadable module support", uncheck "Set version information on all module symbols" In the other categories, check all the option corresponding to your hardware.

Run :

 depmod -a

 make modules modules_install

Now you are ready to make your kernel visible for the bootmanager (lilo). The easiest way to do this is:

 make install

Run lilo to make sure that there is no problems for the bootmanager:

 lilo

Now you are ready to reboot the computer and start your self-compiled kernel which should be

named adeos-2.4.25.

4 Compiling RTAI

When your 'own' kernel is loaded you are ready to build RTAI. Log on as root (as everything you have to do should be done as root) Go to the RTAI-folder:
 cd /usr/src/rtai

The RTAI needs to be configured (like you did to the linux kernel). This is done by:

 make xconfig

To find the dependencies for RTAI : make dep

Build RTAI:

 make

To install RTAI : make install

To create the rt-fifos:

 make dev

Now you should have a functional RTAI system (if none of the above went wrong).

5 Testing the RTAI installation

An easy way to test if your RTAI system works is to load it into the kernel:
 cd /usr/realtime/testsuite/kern/latency and ./run

If the system does not hang here, your RTAI should be installed properly. To test your RTAI system furthermore you can run the examples found in the showroom of CVS.

<b>export CVSROOT=":pserver:guest@cvs.zentropix.com:/opt/cvsroot/rtai" cvs login password: anoncvs cvs -z3 co showroom</b>

Every example has a README-file describing the actual purpose of the example.

6 My RTAI system hangs

If your RTAI system hangs, it could be caused some 'unlucky' combination of the kernel

configuration and RTAI configuration. Try change your configurations. If this does not help, try ask the RTAI-mailing-list which can be

found from http://www.rtai.org


Edit text of this page | View other revisions | Download Rtai.dk
Search: