LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-05-2002, 12:31 AM   #1
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
Question Kernel Patching


Hi

How do you patch the linux kernel?
 
Old 04-05-2002, 12:44 AM   #2
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
The easiest way for me to do it is to put the patch in your /usr/src directory then cd to your linux or linux-2.4.x (whatever yours is you are using) directory then do a patch command:

zcat ../patch-2.4.x.gz | patch -p1

You could also cd into the /usr/src/linux (as before) directory and type the full path to the patch if you don't wanna move it.
 
Old 04-05-2002, 08:23 AM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Also, if you have downloaded a patch that isn't zipped.. use cat instead of zcat.

John
 
Old 04-05-2002, 08:44 AM   #4
Alinuxnoob
Member
 
Registered: Feb 2002
Location: Van city
Distribution: Ubuntu
Posts: 204

Rep: Reputation: 30
So after you do that do you have to recompile the kernel?
 
Old 04-05-2002, 10:12 AM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Yes. The kernel does have to be recompiled after you do this. Also, if the option you patched in adds configuration options you will have to run your favorite kernel config method and deal with the new options accordingly.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel patching.. new.thing Linux - Hardware 3 07-13-2005 06:36 AM
Patching a 2.6 kernel with a 2.4 kernel keyboard driver..possible? dxx Linux - Laptop and Netbook 3 11-18-2004 04:18 AM
Patching the kernel grazie Fedora 4 11-09-2004 03:29 PM
Patching the Kernel LinuxBlackBox Linux - Software 2 06-16-2004 06:54 AM
Kernel Patching? wr3ck3d Linux - General 4 04-13-2003 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:50 PM.

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