how to use patch?

José Antonio Sánchez getaceres at gmail.com
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-2.6.8.1 so you have to:
cd /usr/src/linux-2.6.8.1
patch -p1 </usr/src/rtai-3.1/rtai-core/arch/i386/patches/hal7-2.6.8.1.patch

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 hotmail.com> wrote:
>  
> The kernel I'm using is 2.6.8.1, so I should patch the corresponding patch
> to rtai. The question is, where to patch, the folder of linux-2.8.6.1 or
> rtai-3.1? I mean in which folder should the hal7-2.6.8.1.patch be applied? 
>   
> I tried to patch it in the folder rtai-3.1 by this command: 
> patch -p1 < rtai-core/arch/i386/patches/hal7-2.6.8.1.patch 
>   
> It showed me that: 
> |diff -uNrp linux-2.6.8.1/Makefile linux-2.6.8.1-adeos/Makefile
> |--- linux-2.6.8.1/Makefile     2004-08-14 12:55:35.000000000 +0200
> |+++ linux-2.6.8.1-adeos/Makefile       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-2.8.6.1
> 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