[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to build Debian 2.4.20, -21, or -22 kernel package for woody?

On Thu, 02 Oct 2003 02:40:09 +0200, Daniel B. wrote:

> What exactly do I need to do to build locally for woody a Debian kernel
> package based on a kernel version from testing or unstable?

(1) Get the kernel-image-2.4.22 package that you want to "convert", unpack
it manually (dpkg-deb -x) and grab the boot/config-2.4.22-blah file from
it. You can delete the rest.

(2) Get kernel-source-2.4.22 from Sid and install it.

(3) Install kernel-package and the initrd stuff from Woody.

(4) Untar the kernel source in /usr/src, and copy the config from above
into your kernel tree as "kernel-source-2.4.22/.config" (note the dot).

(5) make-kpkg --initrd --append-to-version -$WHATEVER --config oldconfig \
kernel_image kernel_headers kernel_doc

(6) Clean up. Kill /usr/src/kernel-source-2.4.22 and install your shiny
new *.debs.

Phew, I hope I didn't forget anything ;-)  You might have to fiddle with
the initrd stuff a bit to get it working. Being impatient, I simply
changed the kernel config to link all modules which are required for
booting statically. That's not how it's supposed to be done, but I was
compiling my own kernel anyway...

Best Regards,  | Wer Windows-Rechner ins Internet lässt,
 Sebastian     | braucht nicht über SWEN stänkern!
               | mailbox in "From" silently drops any mail > 20k

Reply to: