If you are indeed entering rtai at your boot prompt, I had a similar
problem with RTL on 
one of the machines I run a 2.2.17 kernel on. Though you run RTAI, which
I know little of,
I had checked to find the answer to this problem in former entries and
was unable, in the
time I had, to find a clear cut answer with respect to both systems - so
this may help.

This is what I found and did to quickly solve this dilemma:

After rebooting, the command 'uname -r' clearly proclaimed I was running
an rt kernel.
However, I could not run any rt modules, with similar exceptions being
given as you have listed below.

The command: 'lsmod' listed no rtl facilities (scheduler etc.), with any
attempts to run 
all created modules throwing exceptions.

I re-ran ("re-executed") the command 'sh scripts/insrtl'. In your case
there is probably
a similar script that installs the necessary components of your RT
system. This you may 
have to do/execute in your rt src directory (i.e. /usr/src/X where x is
your rt dir). 

After doing the above, lsmod showed rtl modules as being present (i.e.
rtl_fifo, rtl_sched,
etc.).

* Whenever this particular machine is rebooted, in order to use rt
facilities the 
  install command, i.e.insrtl is again run. (I presume there is
something similar in 
  the RTAI distribution).*

If you now make and install your module it should sit comfortably, with
lsmod listing it 
as being present. If rt modules are not displayed in your lsmod and the
module you 
create is compiled properly, you will find a lot of exceptions stating
"unresolved symbols".

When you do write your own modules, you will have to take a similar
procedure, in your 
Makefile, as that which is used for the examples of your rt distribution
-(easiest way
to both carry out and learn about the operation is to take a look at
these files). 
I.E. - You will find that (as with RTL's rtl.mk found in its sources
directory - I am sorry
as I do not know much about RTAI) an 'include' file that is indicated in
the 'Makefiles' of
each of your example modules governs compilation and makes sure that
each module is
configured correctly. The file (in the case of RTL's rtl.mk contains
relevant info that
gives information on the location of necessary INCLUDE files (including
those of the rt
system -this is most important as without it conflicts would most likely
occur), compiler
flags, etc. When you do so, compilation and installation should be easy.
"I hope". 

All the best
        Adebayo Omo-Dare. 



daniel sheltraw wrote:
> 
> Hello RTAIers
> 
> I have a simple RTAI question. The actual question appears at the bottom of
> this email.
> 
> I just installed RTAI Embedix Realtime from the Lineo CD.
> The installation completed with no errors reported.
> When I attempt to load the modules with (example rtai.o):
> 
> insmod /lib/modules/2.2.16-ert/misc/rtai.o
> 
> I get the error message:
> 
> /lib/modules/2.2.16-ert/misc/rtai.o: kernel-module version mismatch
> /lib/modules/2.2.16-ert/misc/rtai.o was compiled for kernel version
> 2.2.16 while this kernel is version 2.2.14-5.0.
> 
> My lilo.conf file looks like:
> 
> boot=/dev/hda
> map=/boot/map
> install=/boot.boot.b
> prompt
> timeout=50
> linear
> default=linux
> 
> image=/boot/vmlinuz-2.2.14-5.0
>          label=linux
>          read-only
>          root=/dev/hda5
> #+++++++++++++++++++++++++++++++++++++++++++
> # Lineo Installation Modifications
> image=/boot/vmlinuz-2.2.16-ert
>          label=rtai
>          read-only
>          root=/dev/hda5
> 
> #+++++++++++++++++++++++++++++++++++++++++++
> 
> Question: Do I need to just switch the two entries in lilo.conf,
> remove the first or what?
> 
> Thanks everyone,
> Daniel
> 
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to