[PADS] Compiling a kernel the Debian Way
Tobias DiPasquale
toby@cbcg.net
Wed Dec 10 11:43:02 2003
--=-8AIhb9brQ+Ae+jffwC+1
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On Wed, 2003-12-10 at 10:10, Mike Leone wrote:
> So what EXACTLY is the procedure, to download new source/headers; recompi=
le
> using same options that are in the running kernel; make a kernel package;
> install said kernel package .. AND - most important - still be able to bo=
ot
> back into the currently running kernel, if it all goes south on me?
Download kernel source tarball from wherever you like and perform the
following:
% tar xzf linux-blahblahblah.tar.gz
% cd linux-blahblahblah
% cp known-good-kernel-.config-from-previously-working-kernel .config
% make-kpkg --rootcmd fakeroot --revision=3D0.0.1 kernel_image
Replace the 0.0.1 with the revision you feel like using. NOTE: this
revision is totally separate from the kernel version!!=20
This will yield a kernel in a .deb in the directory above
linux-blahblahblah. Note that because of the --rootcmd fakeroot
parameter, you do not need to be root to do this, although you will need
to be root to install it. Don't forget to make an entry for this kernel
in GRUB before rebooting so you can run it ;-)
P.S. If you want to make your package names distinct so that you can
tell the difference btwn yours and the official Debian ones, fill in the
EXTRAVERSION parameter in linux-blahblahblah/Makefile with a unique
string of some sort. I use "toby", personally.
--=20
Tobias DiPasquale, www.cbcg.net
202A 04C4 2CE6 B985 8520 88D6 CD25 1A6C B9B5 1595
--=-8AIhb9brQ+Ae+jffwC+1
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQA/10zmzSUabLm1FZURAlPLAKCf93r0ndQQsGXchpv1y/+MFLDE1ACeNRy0
xkSjW9uchPKRrxuBrCQo0UI=
=dH+J
-----END PGP SIGNATURE-----
--=-8AIhb9brQ+Ae+jffwC+1--