how to use patch?

José Antonio Sánchez getaceres at
Tue Oct 12 12:54:18 CEST 2004

You have to apply it in the kernel tree folder: Suppose you have rtai
uncompressed on /usr/src/rtai-3.1 and the linux kernel on
/usr/src/linux- so you have to:
cd /usr/src/linux-
patch -p1 </usr/src/rtai-3.1/rtai-core/arch/i386/patches/hal7-

That should work. Then you have to configure and compile your kernel
and then compile rtai.
I hope this will help. 

On Tue, 12 Oct 2004 15:56:56 +0800, 王凯 <wang__kai__ at> wrote:
> The kernel I'm using is, so I should patch the corresponding patch
> to rtai. The question is, where to patch, the folder of linux- or
> rtai-3.1? I mean in which folder should the hal7- be applied? 
> I tried to patch it in the folder rtai-3.1 by this command: 
> patch -p1 < rtai-core/arch/i386/patches/hal7- 
> It showed me that: 
> |diff -uNrp linux- linux-
> |--- linux-     2004-08-14 12:55:35.000000000 +0200
> |+++ linux-       2004-08-15 12:42:35.000000000 +0200 
> And tell me it can't find the file. 
> So, what's wrong?  Or should I apply the patch in the folder Linux-
> instead of rtai-3.1? 
> By the way, is there any one can tell me what the "source tree" mentioned in
> file README.INSALL is, the linux-source-folder or the rtai-source-folder?
> And what the "$source_tree" and "$linux-src-dir" are as well. 

More information about the Rtai mailing list