LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-27-2009, 02:53 AM   #1
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Kernel 2.6.28: anything I should know?


I see that the kernel package linux-image-2.6.28-1-686 is now in Squeeze. I'd like to upgrade from 2.6.26. Is there anything I should know or is it safe to go ahead? I'm just looking for a little reassurance from those who are already running the 2.6.28 kernel.
TIA,
jdk
 
Old 02-27-2009, 04:33 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
Why bother asking us? Simply install it and try it out. Just be sure to keep at least one working older kernel installed as well, and/or have a good live CD at hand (I've recently discovered the excellent System Rescue CD), in case something breaks. You an always go back and uninstall it if you want to.

For a good general rundown on what changes there are in each kernel release, I recommend LinuxChanges.
 
Old 02-27-2009, 04:56 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by David the H. View Post
Why bother asking us? Simply install it and try it out. Just be sure to keep at least one working older kernel installed as well, and/or have a good live CD at hand (I've recently discovered the excellent System Rescue CD), in case something breaks. You an always go back and uninstall it if you want to.

For a good general rundown on what changes there are in each kernel release, I recommend LinuxChanges.
Thanks David. I'll do just that.
cheers,
jdk
 
Old 02-27-2009, 08:51 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
I was a bit hasty anyway. I can't install 2.6.28 because I can't install the headers and since I compile a lot of stuff against the kernel (modules) I can't use a kernel without the headers. I can't install linux-headers-2.6.28 because linux-kbuild-2.6.28 isn't available yet. I'll have to wait a while.
Cheers,
jdk
 
Old 02-28-2009, 02:55 AM   #5
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
hey jdkaye,

building your own kbuild package isn't that hard.. please follow the following link:
http://wiki.debian.org/HowToRebuildA...nKernelPackage (section How to build linux-kbuild-2.6 yourself)

but if you're using m-a to build a lot of your modules, then please not that if you want to build nvidia drivers from the non-free branch, you'll run into trouble because there isn't a package for kernel 2.6.28 yet.

other than that, go for it, good luck.
 
Old 02-28-2009, 04:56 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by restless View Post
hey jdkaye,

building your own kbuild package isn't that hard.. please follow the following link:
http://wiki.debian.org/HowToRebuildA...nKernelPackage (section How to build linux-kbuild-2.6 yourself)

but if you're using m-a to build a lot of your modules, then please not that if you want to build nvidia drivers from the non-free branch, you'll run into trouble because there isn't a package for kernel 2.6.28 yet.

other than that, go for it, good luck.
Thanks Restless,
I do use m-a to build modules but for ATI drivers (among other things) rather than nvidia ones. In any event I am in no rush but I will have a look at the link you sent to see how it's done if I ever really need to do it.
Cheers,
jdk
 
Old 02-28-2009, 05:28 AM   #7
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 2,089

Rep: Reputation: 441Reputation: 441Reputation: 441Reputation: 441Reputation: 441
Quote:
Originally Posted by jdkaye View Post
I was a bit hasty anyway. I can't install 2.6.28 because I can't install the headers and since I compile a lot of stuff against the kernel (modules) I can't use a kernel without the headers.
You should only upgrade your kernel headers when (if) you intend to compile a new version of glibc against them. Your glibc package and the headers it was compiled against should be considered to be two packages joined at the hip. One should not be upgraded without the other.

There is nothing wrong with using a kernel-headers package which is much older than your currently-running kernel. In fact, that's how it should be if you're running the latest kernel on an older installation.

This rule applies even if you're compiling kernel modules.
 
Old 02-28-2009, 08:17 AM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
Thanks RK,
You learn something new every day
Cheers,
jdk
 
Old 02-28-2009, 08:39 AM   #9
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
What? Really?
 
Old 02-28-2009, 09:23 AM   #10
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
Rkelsen's advice strikes me as the Slackware style. Debian doesn't handle things quite that way, as I understand it.

Edit: I'm no expert on any of this. In fact, I've never fully understood the Slackware position or the Debian position or how/why they're so different. However, I can say that if you build modules (eg, for wireless or graphics) in Debian using module-assistant, then part of what the module-assistant tool does is automatically install the kernel headers for your running kernel to build the module against. So, I've always assumed this is simply a difference in how Debian deals with kernel headers (as opposed to Slack or other distros like it).

Last edited by Telemachos; 02-28-2009 at 10:44 AM.
 
Old 02-28-2009, 12:03 PM   #11
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Telemachos View Post
Rkelsen's advice strikes me as the Slackware style. Debian doesn't handle things quite that way, as I understand it.

Edit: I'm no expert on any of this. In fact, I've never fully understood the Slackware position or the Debian position or how/why they're so different. However, I can say that if you build modules (eg, for wireless or graphics) in Debian using module-assistant, then part of what the module-assistant tool does is automatically install the kernel headers for your running kernel to build the module against. So, I've always assumed this is simply a difference in how Debian deals with kernel headers (as opposed to Slack or other distros like it).
That was my understanding also but I thought I was mistaken. So maybe AlucardZero's scepticism was well placed I guess I didn't learn anything today.
Cheers,
jdk
 
Old 03-01-2009, 06:58 AM   #12
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
I can confirm that m-a will indeed download the kernel headers for your current running kernel. You can however specify which kernel directory to use as well to build the modules against, this in my experience tends to fail however. (i think it's the m-a "-k" switch)
 
Old 03-01-2009, 07:06 AM   #13
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by restless View Post
I can confirm that m-a will indeed download the kernel headers for your current running kernel. You can however specify which kernel directory to use as well to build the modules against, this in my experience tends to fail however. (i think it's the m-a "-k" switch)
I checked out that kbuild link you suggested and ... I'll wait. Too busy answering questions on LQ
Cheers,
jdk
 
Old 03-01-2009, 06:00 PM   #14
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 2,089

Rep: Reputation: 441Reputation: 441Reputation: 441Reputation: 441Reputation: 441
Quote:
Originally Posted by Telemachos View Post
Rkelsen's advice strikes me as the Slackware style. Debian doesn't handle things quite that way, as I understand it.
It should be the same. This is generic advice, not Slackware specific.
 
Old 03-01-2009, 06:29 PM   #15
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
Quote:
Originally Posted by rkelsen View Post
It should be the same. This is generic advice, not Slackware specific.
Yup, well, I'm not sure what to say to you other than that it doesn't seem to be true of Debian. Debian's own tools will automatically download and install headers for the running kernel before building a module for wireless or video, the Debian kernel handbook mentions getting headers for the kernel you plan to build modules against, and pretty much every tutorial for building a kernel in Debian I've read mentions building headers as well as a kernel package when using make-kpkg.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
kernel includes at /usr/src/linux/include do not match current kernel. blanny Red Hat 1 03-09-2006 07:53 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration