Linux-Hams archive - May 1997: Re: Patching kernel

Re: Patching kernel

Heikki Hannikainen (beurv.kgrqaychf@kerailya.tunkki.fi)
Wed, 7 May 1997 20:01:02 +0300 (EEST)


On Wed, 7 May 1997, Rowan Deppeler wrote:
> I currently am using kernel 2.0.28 but would like to upgrade to Terry's
> latest utilities.
>
> Can anyone explain how to patch my kernel source and what file(s) I need to
> acheive this.

Applying the kernel patches from Linus is *very* easy. The kernel
comes with a nice patching script, which can be found in
linux/scripts/patch-kernel. You need to
`chmod u+x scripts/patch-kernel` it first, since the executable bit
isn't turned on by default.

Download the appropriate patches from the kernel ftp site. If
you're running 2.0.28 now, and want to upgrade to 2.0.30, download
patch-2.0.29.gz and patch-2.0.30.gz. Place them in your /usr/src/linux
directory, cd there and execute scripts/patch-kernel. The script will
determine your current kernel version, and apply the required patches.
This will save you from downloading the whole linux-2.0.30.tar.gz
source file.... (whew!)

Please note, that if you have previously added some other patches,
like Jonathan's module-NN diffs, installing further patches might
fail, in which case you should either reverse the non-standard
patches, or start with a clean kernel tree.

Applying Jonathan's patches is also quite easy. Download the
appropriate patch: ax25-module-13.tar.gz for kernel 2.0.30.
tar xvfz ax25-module-13.tar.gz, go to the ax25-module-13
directory and type

patch -p1 -d /usr/src/linux -N -E < ax25-2.0.30-2.1.37-3.diff

That's it. Simple story, told in verbose mode. 8-)

---
 < Heikki Hannikainen      <> ax.25:   oh7lzb@oh7rba.#kuo.fin.eu >
 < Internet: hcrhloul.ozenpi@brooklaw.edu <> Amprnet: elzxqz.ntjghyhb@wecnq.com >