LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2006, 05:24 AM   #1
saini_mw
Member
 
Registered: Jun 2005
Location: On the top of the World
Posts: 114

Rep: Reputation: 15
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
 
Old 09-14-2006, 05:42 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
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.
 
Old 09-14-2006, 06:00 AM   #3
saini_mw
Member
 
Registered: Jun 2005
Location: On the top of the World
Posts: 114

Original Poster
Rep: Reputation: 15
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 ..
 
Old 09-14-2006, 06:40 AM   #4
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i patch 2.4.21-37 kernel with antidote2 security patch suchi Linux - Kernel 4 09-05-2006 02:29 AM
Kernel Patch (Patch-2.6.13) ukez Linux - Hardware 4 08-30-2005 03:40 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration