[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [rtl] Still patching problems



mshsaint wrote:
> 
> Hi
> Thanx to all of you especially Oleg Subbotin, Tomasz Motylewski.
> 
> The suggestions about filesystems all worked. So now I have a directory
> called rtlinux_0.62.0.33 under /usr/src.
> My linux directory is under this directory too. But as far as I remember
> the original rt_linux is not in this directory. Its in cd /
> 
> In this directory(/usr/src) I wrote the following command:
>         patch -p0 < /usr/src/rtlinux-0.6-2.0.33-kernel_patch
> 
> and then in the /usr/src/linux directory I put the following make commands:
> 
> make config
> make zImage
> make modules
> 
> And after that I did insmod modules/rt_prio_sched-o
> and it didn't work !!!
> 
> 1-Note that I didn't find any rt_prio_sched.o in the modules directory.

You should use 
	/sbin/insmod /lib/modules/2.0.27/fs/rt_fifo_new.o 
       	/sbin/insmod /lib/modules/2.0.27/misc/rt_prio_sched.o 

> 2- My kernel is 2.0.27 and the patch is 2.0.33, is this the problem?
> 
	I can't say that this is the problem, but you really should use the
patch for 2.0.27. There are quite a few differences between 2.0.27 and
2.0.33 that could cause the patch to remove the wrong lines and leave in
the wrong lines in the linux source code. Please try again using the
patch for 2.0.27. You will have to restore the source code to the way it
was before the patch was applied. Try
	patch -p0 -R < /usr/src/rtlinux-0.6-2.0.33-kernel_patch
and patch will _ATTEMPT_ to undo the damage.

You will want to get a copy of 
	http://luz.cs.nmt.edu/~rtlinux/install.html
Note that his patch command is slightly different because he puts the
patch files in a different directory. He also deletes and reinstalls the
linux source code to make sure there are no broken patches, etc., left
over. 

> PLease tell me what did I do wrong?
1. You could try again with the patch that matches your linux source
code.
2. You left out a few steps just before "make zImage". Use Till
Siering's installation instructions. Don't skip any steps, especially
after the source code is installed. 
3. Your linux source code might have errors, especially if it came from
a distribution. Several people have been able to compile new kernels
only after they downloaded new source code. Kernel source code can be
downloaded from 
	http://www.kernel.org/pub/linux/kernel/v2.0/linux-2.0.33.tar.gz
Note: 6.3M file size.

Hope this helps.

Cecil Ogg

--- [rtl] ---
For more information on Real-Time Linux see:
http://www.rtlinux.org/