Jean-Michel  etc.


In most cases the prolem lies in the kernel and the patching.

One way round this may be to get a prepatched kernel from the RT Linux site.

The steps I use are :

1/ get a clean kernel from ftp.kernel.org
2/ get the patch file FOR THAT KERNEL.

3/  move your current copy of /usr/src/linux ( if it is not a link ) to
/usr/src/oldlinux



    check with
    ls -l  /usr/src
    links look like this

ls -l /usr/src/linux
lrwxrwxrwx   1 root     root           17 Aug 17  1998 /usr/src/linux ->
va-linux-2.0.34-1
( in this case just delete the link and do the untar )

    If you have to move a tree do
    cd /usr/src
    mv linux oldlinux


4/ untar the kernel tarball into /usr/src/linux
cd /usr/src
tar xvzf linux.2.0.36.tgz ./

this will create a new linux  directory

I immeidately move this so that I can use a link

ie
    cd /usr/src
    mv linux rtlinux

and then make a link to the rtlinux tree

ln -s rtlinux  linux

5/ At this point try to recomplie the new kernel without any RTL patch......
   make config
   make dep ; make clean; make bzImage

6/ copy the arch/i386/boot/bzImage to a floppy disk and test the boot

dd if/=arch/i386/boot/bzImage  of=/dev/fd0

7/ You should boot but all your modules will fail.
  To make the modules work try

  cd /usr/src/linux
  make modules; make modules_install

you may want to save your old modules .. look in /lib/modules if you dont
have a 2.0.36 dir you are OK
ie
ls /lib/modules
2.0.30  2.0.31  2.0.34
is OK

If the floppy boot works try a make bzlilo and check the new kernel  boots
and that the modules all look OK
 no errors at boot time.

8/ If all this works now is the time to apply the patch.
   I normally at this time tar up the kernel source so that I can recover
from failed patches.

   cd /usr/src
   tar cvzf rtlinux.tgz rtlinux

  then I cd linux ( link to rtlinux ) and apply the patch file as in the
README
  you can pipe the patch output to a log file

  patch -p1 <../kernel_patch                        > ../patch.out 2>&1 ( use
as in the README file )

then inspect the patch file

more ../patch.out

and make sure all the patches work.

9/ only if this lot works can you try to recompile the kernel again.
   Repeat ALL the steps 5,6 and 7

10 / Now compile and attempt to insmod the RTL systems.

This has worked so far on about 6 systems for me.

Hope this helps
    Phil Wilshire








--- [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