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

Re: Compiling kernel



Michael Satterwhite wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've been looking at the documentation for compiling the kernel, and something seems missing to me.

There is ample documentation on configuring the kernel, but I don't see the issue of the starting point addressed anywhere. It seems to be assumed that if you're going to compile the kernel, then you want to individually visit every configuration parameter and make a selection. There is good documentation everywhere on how to do this.

If you have a working kernel, however, it seems far more logical to use its configuration as a starting point and make the changes relative to that. In SuSE, there are good instructions on getting this starting point, but I don't see anything like that in Debian. I *DO* see a config file in the /boot directory, but it is ambiguous (at best) as to whether this is the configuration for the running kernel. Being fair, when something is so pointedly not addressed, it usually means I should have known the answer without asking - but I'll admit to ignorance. Would someone be so kind as to point me at the place for the current config (probably the one in /boot, but this isn't something I want to take a chance on) for a starting point?


It is the starting point. Is in fact the config for the running kernel.
You can use it for a future kernel too. When you run make-kpkg and are using it, he will stop and prompt for a new kernel parameter that now exists, so you know what the new ones are.

E.g. I roll my own kernel because I use multi-seat Linux, Backstreet-Ruby. So they came out with a 2.4.25 patch while I was using 2.4.23. So I put the 2.4.23 .config into the 2.4.25 dir. and just ran "make-kpkg --revision 1 kernel_image" and he prompted for all the new 2.4.25 parms. I forgot now what they were but all support for new hardware that I don't have so I could answer "N" to all(the default). Then he created a .deb file in /usr/src that is the new kernel image. You just dpkg -i that and you got yourself a new kernel you can boot.

Hugo



Reply to: