LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Kernel patch (https://www.linuxquestions.org/questions/linux-software-2/kernel-patch-483391/)

saini_mw 09-14-2006 05:24 AM

Kernel patch
 
Hi Dear all ..

i have downloaded a kernel patch from kernel.org to update my kernel now i have got patch-2.6.17.11.orig file but i dont know how to apply this patch..

Please help ......

Thanks in advance...

Regards,

Harinder Singh

odcheck 09-14-2006 05:42 AM

which distribution do you use?
and are the kernel sources installed as well on your system?

If you know what you do then
1. Move the downloaded kernel patch to the /usr/src/linux directory.
2. cd /usr/src/linux
3. If you downloaded a patch with a .gz extension, execute the following command:
gunzip patch-2.6.x.gz

If you downloaded a patch with a .bz2 extension, execute the following command:
bunzip2 patch-2.6.x.bz2
4. There should now be a file called patch-2.6.x in the /usr/src/linux directory. Apply the patch to the kernel source tree with the following command:
patch -p1 < patch-2.6.x

You should now be ready to set the configuation for the new kernel you wish to build.

saini_mw 09-14-2006 06:00 AM

i am using RHEL ES 4...

i have tried that command see the output:-



[root@localhost 2.6.9-5.EL-i686]# patch -p1 < patch-2.6.17.11.orig
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/MAINTAINERS b/MAINTAINERS
|index c3c5842..6a1bb87 100644
|--- a/MAINTAINERS
|+++ b/MAINTAINERS
--------------------------
File to patch:




now what file name i should give here and how to proceed..

Thanks ..

odcheck 09-14-2006 06:40 AM

Have you installed the newest kernel source?
And linked the directory?
ftp://ftp.redhat.com/pub/redhat/linu...-42.EL.src.rpm


All times are GMT -5. The time now is 09:51 PM.