* patching the kernel
@ 2003-03-09 22:11 joe briggs
2003-03-09 21:19 ` Sam Ravnborg
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: joe briggs @ 2003-03-09 22:11 UTC (permalink / raw)
To: linux-kernel
My apologies for this question that is so basic to all of you, but can any of
you please point me toward a howto or instructions for exactly how to 'patch
a kernel'? For example, at kernel.org, the latest stable kernel is 2.4.20,
and is actually a patch. I currently use 2.4.19 under Debian and routinely
rebuild & install it no problem. If I download a kernel 'patch', do I apply
it to the entire directory, or the compiled kernel, etc.? Thanks so much.
Joe
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: patching the kernel
2003-03-09 22:11 patching the kernel joe briggs
@ 2003-03-09 21:19 ` Sam Ravnborg
2003-03-09 21:25 ` Jan-Benedict Glaw
2003-03-10 4:41 ` scott thomason
2 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2003-03-09 21:19 UTC (permalink / raw)
To: joe briggs; +Cc: linux-kernel
On Sun, Mar 09, 2003 at 05:11:21PM -0500, joe briggs wrote:
> My apologies for this question that is so basic to all of you, but can any of
> you please point me toward a howto or instructions for exactly how to 'patch
> a kernel'? For example, at kernel.org, the latest stable kernel is 2.4.20,
> and is actually a patch. I currently use 2.4.19 under Debian and routinely
> rebuild & install it no problem. If I download a kernel 'patch', do I apply
> it to the entire directory, or the compiled kernel, etc.? Thanks so much.
Did you read README in the top-level directory of your kernel src?
It is wise to run
$ cp .config ../saved-config
$ make mrproper <= this one deletes all .o files etc.
$ cp ../saved-config .config
$ make oldconfig dep bzImage modules
after patching the kernel
Did not build a 2.4.* kernel for a while, but the README should provide
all the details.
Sam
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: patching the kernel
2003-03-09 22:11 patching the kernel joe briggs
2003-03-09 21:19 ` Sam Ravnborg
@ 2003-03-09 21:25 ` Jan-Benedict Glaw
2003-03-10 4:41 ` scott thomason
2 siblings, 0 replies; 4+ messages in thread
From: Jan-Benedict Glaw @ 2003-03-09 21:25 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]
On Sun, 2003-03-09 17:11:21 -0500, joe briggs <jbriggs@briggsmedia.com>
wrote in message <200303091711.21652.jbriggs@briggsmedia.com>:
> My apologies for this question that is so basic to all of you, but can any of
> you please point me toward a howto or instructions for exactly how to 'patch
> a kernel'? For example, at kernel.org, the latest stable kernel is 2.4.20,
> and is actually a patch. I currently use 2.4.19 under Debian and routinely
> rebuild & install it no problem. If I download a kernel 'patch', do I apply
> it to the entire directory, or the compiled kernel, etc.? Thanks so much.
tar xzf .../linux-2.4.19.tar.gz
-or-
tar xjf .../linux-2.4.19.tar.bz2
and then apply the patch:
cd linux-2.4.19
zcat .../patch-2.4.20.gz | patch -p1
-or-
bzcat .../patch-2.4.20.bz2 | patch -p1
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak!
ret = do_actions((curr | FREE_SPEECH) & ~(IRAQ_WAR_2 | DRM | TCPA));
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: patching the kernel
2003-03-09 22:11 patching the kernel joe briggs
2003-03-09 21:19 ` Sam Ravnborg
2003-03-09 21:25 ` Jan-Benedict Glaw
@ 2003-03-10 4:41 ` scott thomason
2 siblings, 0 replies; 4+ messages in thread
From: scott thomason @ 2003-03-10 4:41 UTC (permalink / raw)
To: joe briggs; +Cc: Linux Kernel Mailing List
On Sunday 09 March 2003 04:11 pm, joe briggs wrote:
> My apologies for this question that is so basic to all of you,
> but can any of you please point me toward a howto or
> instructions for exactly how to 'patch a kernel'? For
> example, at kernel.org, the latest stable kernel is 2.4.20,
> and is actually a patch. I currently use 2.4.19 under Debian
> and routinely rebuild & install it no problem. If I download
> a kernel 'patch', do I apply it to the entire directory, or
> the compiled kernel, etc.? Thanks so much.
I usually use these patch commands, as they make finding any
errors so much easier:
bunzip patchfile.bz2 ## or...
gunzip patchfile.gz
cd linux-2.4.x
## To see if the patch is actually going to work
patch -p1 --batch --quiet --dry-run < ../patchfile
## To actually apply the patch
patch -p1 --batch --quiet < ../patchfile
---scott
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-03-10 4:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-09 22:11 patching the kernel joe briggs
2003-03-09 21:19 ` Sam Ravnborg
2003-03-09 21:25 ` Jan-Benedict Glaw
2003-03-10 4:41 ` scott thomason
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox