Is there anything like GENKERNEL for debian?

Kernels & Hardware, configuring network, installing services

Is there anything like GENKERNEL for debian?

Postby Guest » 2005-05-01 20:59

Thanks Advanced!

BTW genkernel is a Gentoo autokernel script.
Guest
 

Postby Wolven » 2005-05-01 21:46

Genkernel just does what the Debian kernel maintaners have already done. Configure a kernel that will recognice most hardware, so you don't need genkernel.
It may be that Debian has some other tool to assist in making a kernel, but If you want to make your own kernel why not just dive in and configure it your self. It's not that hard if you know what hardware you have.
User avatar
Wolven
 
Posts: 56
Joined: 2004-11-03 14:23
Location: Norway

Postby Guest » 2005-05-03 12:35

It's not hard but it takes too much time...
Guest
 

Postby wiktorw » 2005-05-04 14:26

So, another Gentooist :). Hello!

1) In case of creating a custom kernel, you have to do as follows:
Code: Select all
# apt-get install kernel-tree-2.6.8

... if you want to use Debian-provided kernel, of course (the above one is heavily patched and generally known to work).
Of course, you can try another kernel as you like.

2) Then do:
Code: Select all
# apt-get install kernel-package

This is the nearest tool to genkernel, I think.

3) Then you should go to /usr/src and create a proper linux symlink to the kernel of your choice.
But first, if you installed Debian's kernel, you must unpack it:
Code: Select all
# cd /usr/src
# tar -xvjf kernel-source-2.6.8.tar.bz2

Then the symlink:
Code: Select all
# cd /usr/src
# rm -f linux
# ln -s kernel-source-2.6.8 linux

4) Configure your kernel (you may also wish to copy .config file before):
Code: Select all
# make menuconfig

5) And the most interesting part:
Code: Select all
# cd /usr/src/linux
# fakeroot make-kpkg --revision=custom.1.01 kernel_image

As you can see, there is a --revision option. You can also use the --append-to-revision option (like: --append-to-revision=20050504). But use only dots! Hyphens ('-' characters) are parsed by Debian installation tools so don't fool them!

6) The above will produce a Debian package, which can be installed alongside Debian-provided kernel, without any conflicts. After compilation, you should find a package ready to install in /usr/src:
Code: Select all
# cd /usr/src
# ls *.deb
kernel-image-2.6.8-i586_custom.1.01_i386.deb

Installation:
Code: Select all
dpkg -i kernel-image-2.6.8-i586_custom.1.01_i386.deb

What's interesting, lilo/grub configuration will be automatically updated to reflect the fact that a new kernel has been installed.

Recommended reading:
* Preliminary Sarge Installation Manual, 8.5. Compiling a New Kernel
* Creating custom kernels with Debian's kernel-package system
Experience shows that you can never have enough experience.
If someone solves a problem for you, say thanks... and put [SOLVED] in the title!
User avatar
wiktorw
 
Posts: 10
Joined: 2005-04-28 10:56

Postby Josh » 2005-06-01 01:15

The kernel-package app is an excellent tool for configuring a new kernel; I've used it for everything from personal builds to production and release builds.
Josh
 
Posts: 10
Joined: 2005-06-01 00:51


Return to System configuration

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable