Re: installing new debian kernel



On 01/23/2010 11:53 AM, Magnus Warker wrote:
Mumia W. wrote:

On 01/23/2010 04:18 AM, Magnus Warker wrote:
Install kernel-package and read its documentation. I used to have the
problems that you do. Now I use "make-kpkg" and get a .deb package of
the kernel.

Well, it works fine! Just another question:

When *reinstalling* a kernel I do:

dpkg -r linux-image-xyz
dpkg -i linux-image-xyz

If I do not remove the "old" one I get a message that there still are
modules.

Can I ignore this and omit the removal with dpkg?

The reason: It takes endless to reinstall the kernel...

Thanks
Magnus

Yes, purge the old one first:

dpkg --purge linux-image-xyz

You can have several copies of a custom-compiled kernel installed at the same time so long as each is compiled with a slightly different version string.

make-kpkg --append-to-version=-local2 --rootcmd=fakeroot kernel_image

The "-local2" kernel won't conflict with a "-local1" or "-local3" kernel.

Rather than to perform the slave-labor of going through every configuration option in the kernel, you might just grab a .config file from your Debian stock kernel and put that into the source directory. Do a "make oldconfig" and then "make menuconfig" to add your desired features.
.



Relevant Pages

  • Re: Adaptec 2120S on etch
    ... I have PCs running Sarge and Etch. ... Install kernel-package and read the README -- which will ... When you build a kernel it's easy to import your current config, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: how to build Debian 2.4.20, -21, or -22 kernel package for woody?
    ... Install kernel-package and the initrd stuff from Woody. ... Untar the kernel source in /usr/src, and copy the config from above ... changed the kernel config to link all modules which are required for ...
    (Debian-User)
  • Re: compile kernel for remote machine
    ... > Would anyone know how I can compile a kernel for my remote machine on ... > kernel and both running testing. ... Since they are both Debian machines, you should install kernel-package ... but lets you distinguish a kernel image targetted on your remote machine ...
    (Debian-User)
  • Re: compiled and installed new kernel, but dkpg does not find it
    ... > 463 make menuconfig ... This new kernel was compiled because I wanted ... should be sufficient to install and cofigure the source or install the ... > dpkg would complain about the already existing ...
    (Debian-User)
  • compiled and installed new kernel, but dkpg does not find it
    ... I downloaded the source for 2.4.22 and compiled it and installed using dpkg: ... 463 make menuconfig ... And I am not able to make the mouse move, seems like the new kernel ... So I am thinking of compiling it again. ...
    (Debian-User)