Re: 2.6 kernel install tutes

From: Andy Fraser (andyfraser31_at_hotmail.com)
Date: 04/29/04


Date: Thu, 29 Apr 2004 14:09:04 +0100

In comp.os.linux.setup, Mike H uttered these immortal words:

>> You'll need a more up to date modules-init-tools among others to get a
>> 2.6 kernel working with Woody. I use Sid and don't know how to get a 2.6
>> kernel working with Woody short of adding an unstable APT source and
>> getting the required updates from there. Doing this /could/ break your
>> system. There may be backports available too. Just Google and see.
>>
>> The information here works for creating my own kernel 2.6 deb packages
>> (even though it talks about 2.4, it'll make a 2.4 deb with Woody though)
>> but won't help you at the moment I guess:
>> http://www.debian.org/doc/manuals/reference/ch-kernel.en.html
>
> Jeez, you really know how to cheer up a fella don't you?

Sorry mate.
 
> Thanks for the warning. This is my play machine so if it breaks, it
> breaks. If Murphy's Law holds true, updating modules-init-tools is
> going to require updating something else too...

If you're not worried about breakage you could try this:

Add an unstable source[0] and run "apt-get update" then "apt-get install
kernel-image-2.6-<CPU> -s" where <CPU> is either 386, 686 or k7. The -s
switch will show you what APT would do but won't do it so won't break your
system. That'll show you what you need to upgrade or install.

If you're feeling brave you can remove the -s switch and see if you can run
a stock Debian 2.6 kernel. You get the advantage that you'll have a working
config file to play with when building your own kernels too. Debian patch
their kernels so it's safer to use their kernel-source packages for your
custom kernels and use the method from the URL above to build a deb
package.

If this works you'll need to track unstable for the new packages to keep
them up to date. Read the APT docs on Debians site for more info on doing
this without upgrading your whole system.

If you're not feeling so brave the apt-get line with the -s switch will give
you some idea of what backported packages to look for. This is the safer
option.

Remember to either remove the unstable deb line from sources.list or
configure APT properly otherwise you could end up accidentally upgrading
things you don't want upgraded.

I hope I haven't missed anything. As with all things Linux related there's
probably a better way to do this and as I said I've never done this. This
is not intended to be a comprehensive guide.

[0] Basically copy a stable deb line in sources.list and change stable to
unstable. "testing" will work too. Testing has a 2.6.3 kernel while
unstable has a 2.6.5 kernel. You may need to comment out all the stable
lines or configure APT if you get errors.

-- 
Andy.


Relevant Pages

  • Re: Upgraded kernels, now eth0 and framebuffer are gone
    ... after then upgrading the kernel from ... > how to make the kernel see them again. ... If you install these packages almost all hardware will be ...
    (Debian-User)
  • Questions about upgrading between releases
    ... I've been managing a few production FreeBSD 6.2 servers for the last ... upgrading to the next production release. ... I've updated kernel and userland ... I've installed my "external" applications using packages. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: [SLE] kraxel kernels, apt and other stuff that has to be upgraded
    ... I have it built into the kernel. ... >and I really hope they will fix it in new builds but I don't think apt ... I downloaded KDE 3.2 from the ... hamradio VOIP. ...
    (SuSE)
  • Re: need help with dependencies for apt-get
    ... he may just have an old distribution. ... But "2.4.16" is a kernel, ... but the packages that come in a distribution ... Especially if you haven't been upgrading packages all along, ...
    (comp.os.linux.setup)
  • Re: Using apt to install only one package
    ... I am quite happy to believe that apt knows more than I do about what is ... I would like to use the 2-6-25 kernel, ... This is why I use the nvidia driver straight from nvidia.com. ... Ron Johnson, Jr. ...
    (Debian-User)