Tugger the SLUGger!SLUG Mailing List Archives

RE: [SLUG] How to patch a kernel


>Hi all......im useing Red Hat Linux 7.3 which has kernel 2.4.18-3 ...i have

>found a patch 2.4.19pre10 and want to know if i can patch the 2.4.18-3
kernel 
>and would like to know how to do it......have the "Patching the kernel"
docs 
>from the Kernel-HOWTO but cant seem to work out how to do it (BAIK...boy am
i 
>confused....the K shows how confused i am.)

well, here's some things for you to think about

*) kernel patches come in two versions, one that you patch ontop of the
latest base release, or incrementals that patch between sub releases.  your
2.4.19-pre10 patch is most probably a patch that applies cleanly to a fresh
copy of the 2.4.19 source, and won't apply to 2.4.18-3.  
*) if your 2.4.18-3 source is for a redhat kernel, chances are it's already
patched in some weird ways meaning the patches you find on kernel.org won't
apply properly anyway.
*) there is a script in the /scripts subdirectory of the kernel source
called patch-kernel that takes most of the hard work out, i'd use that.

kernel.org shows the latest in 2.4 as being 2.4.20-pre8.

If you want this latest kernel, then get a copy of 2.4.19
(http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.19.tar.gz), the
latest stable release and extract it.  Then download the 2.4.20-pre8 patch
(http://www.kernel.org/diff/diffview.cgi?file=/pub/linux/kernel/v2.4/testing
/patch-2.4.20-pre8.gz) and apply that using the patch-kernel utility.   now
when pre9 is released, you can download the incremental update and apply it
to your 2.4.20-pre8 source with the same utility, and continue updating like
this as development continues.

you might also want to consider using bitkeeper, but that is another
discussion.

-i
ianw@xxxxxxxx
http://www.wienand.org
**********************************************************************
CAUTION: This message may contain confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message, any use or disclosure of this message is prohibited.  If you received this message in error please notify Mail Administrators immediately.  You must obtain all necessary intellectual property clearances before doing anything other than displaying this message on your monitor.  There is no intellectual property licence.  Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Woolworths Ltd.
**********************************************************************