LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2004, 08:01 AM   #1
linickx
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
Question How to Patch a Kernel ?


Hi,
I've downloaded a .diff file to patch my kernel, but the README just says "patch in normal way".

Can Someone please offer what I should do .

Thanks In Advance.
 
Old 10-15-2004, 08:22 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
try going to your kernel source directory (/usr/src/linux in most cases) then

patch -p1 < /path/to/patch.diff

if it gives out some errors take a look at the header of the patch, if there's no directory prefix on the file to patch then use -p0 instead
 
Old 10-15-2004, 08:25 AM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
this information, as the information regarding the actual (re)compilation, can be found in the README file at kernel.org (either http or ftp, go to linux directory and open up README - it comes with the sources too).

google also helps..so, altough a newbie, I suggest you first try googling for a problem or, if you know a site that has something to do with it (like kernel.org in this case), read it through first...

EDIT: of course this doesn't mean people here don't answer, but the amount of new threads is quite big sometimes so part of them gets leaved unanswered, which can at least partly be due to the amount of new threads...so if the simplest can be solved with google or some site, the amount of new threads gets a bit smaller and the problems that are "really" difficult, get answered more. this way more people get help than if part of the posts get drowned in the flood of new threads..

I myself try to answer as many posts I can (my time is limited, though, because I'm studying), but I find these two things a bit annoying: 1) people don't use the search form of LQ to find the answer that is probably already there, before submitting a thread and 2) even problems like "how do I use mv command" get posted even though google or man could answer faster...

I say it once more, it's probably none of my business how much you dudes post here, but it does make answering to "as many problems as possible" a bit more difficult..or at least lower the amount of answers to new problems.

Juho

Last edited by b0uncer; 10-15-2004 at 08:32 AM.
 
  


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
Kernel Patch (Patch-2.6.13) ukez Linux - Hardware 4 08-30-2005 04: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 04:59 AM
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 07:33 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 02:21 PM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 05:25 PM


All times are GMT -5. The time now is 10:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration