Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Patching a kernel how?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
fintan
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 150
Location: Dublin

PostPosted: Tue Feb 27, 2007 4:14 pm    Post subject: Patching a kernel how? Reply with quote

Hi I'm just wondering how you'd go about patching your kernel? Thanks

fintan.
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Tue Feb 27, 2007 4:28 pm    Post subject: Reply with quote

hmm, with "patch".
place the file you want to apply to the kernel sources in /usr/src.
normally you will need to do something like "patch -p0 <patchfile".
if you do not already have the patch itself but want to get it out from a modified source file you can do that with "diff -u".
Back to top
View user's profile Send private message
fintan
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 150
Location: Dublin

PostPosted: Tue Feb 27, 2007 4:48 pm    Post subject: Reply with quote

Thanks alex.blackbit for the quick reply. I've linux-2.6.19-suspend2-r2 currently & want to add this patch http://openvz.org/download/kernel/devel/
Does the versions matter? The patch was ment for 2.6.18[/url]
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Tue Feb 27, 2007 4:57 pm    Post subject: Reply with quote

to make sure you should download the .18 sources and compare the files you want to patch.
if you don't... patch may tell you if there are wrong offsets in the file or if it changed too much.
but i would compare it...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum