[ILUG] Patching a kernel
Dave Airlie
airlied at csn.ul.ie
Tue Nov 13 12:53:25 GMT 2001
apart from the dontuser issue the best way to patch up a kernel is to use
linux/scripts/patch-kernel
the latest version support ac kernels.. and I hear a newer one will do
-dontuse also..
if you have 2.4.0 and all patches in one dir, just untar 2.4.0 and run the
script it will pick up all the patches and apply them..
Dave.
On Tue, 13 Nov 2001, Liam Bedford wrote:
> At 12:41 +0000 13/11/01, Stephane Dudzinski wrote:
> >Hi,
> >
> >
> >
> >I'm not sure i understood properly the second part of the email but all
> >you need is to symlink 2.4.13 with you linux dir freshly unpacked. then
> >delete the symlink and patch to 2.4.12
>
> The easiest way to use the patches is to do:
>
> cd /usr/src
> tar jxvf <original_linux_dist>.tar.bz2
> cd linux
> bzcat <patch1>.bz2 | patch -p1
>
> and repeat the last step until you're at the version you want.
>
> -p tells it to ignore a part of the filename. The patch has descriptions
> telling it which file to patch, but they tend to be something like
> linux-2.4.14-clean/whatever
>
> which you don't have (you just have linux). So go into the directory, and
> use -p1 to tell it to skip the first part of the filename.
>
> L.
>
--
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
pam_smb / Linux DecStation / Linux VAX / ILUG person
More information about the ILUG
mailing list