[plug] patching rh7 kernel to 2.2.18

Matt Kemner zombie at wasp.net.au
Mon Apr 2 09:48:48 WST 2001


Hi Aunty

On Sat, 31 Mar 2001, Aunty Jack wrote:

> I downloaded this same ide patch this morning, but don't know really weather
> it's the right one for the job. Don't really want ot kill my machine.

You need to download the original kernel version which the patch was
originally generated from.  If you have the ide-2.2.18 patch, you will
need to download linux-2.2.18.tar.gz

You can't use the kernel source that comes with redhat, because that will
have other patches applied to it which will make it difficult for the
"patch" utility to work out which bits of the files to patch, and which
will generate the "HUNK Failed" messages which Jon had.

If you are using the original 2.2.18 source and still get those errors,
either the patch is corrupted, or it has been generated from (for example)
a 2.2.18preN kernel - so check the website you downloaded the patch from
for more specific instructions.

Then when you have the patch & matching kernel version, you change to the
directory you untarred the kernel source to (eg /usr/src/linux) and run:
zcat (location of patch)|patch -p1

If you don't get any "HUNK Failed" messages (or any other errors) the
patch was successful and you can then continue on to compile your kernel.

 - Matt




More information about the plug mailing list