LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Kernel 2.6.28: anything I should know? (https://www.linuxquestions.org/questions/debian-26/kernel-2-6-28-anything-i-should-know-707918/)

rkelsen 03-01-2009 07:01 PM

Mate, you don't have to take my word for it.

Quote:

Originally Posted by Linus Torvalds
"The fact is, that the header files should match the library you link against, not the kernel you run on."

I'd highly recommend that you read his post, here:

Linux-Kernel Archive

Have fun! :)

Telemachos 03-01-2009 07:07 PM

That post was written in 2000 and talks about 2.2 and 2.4 kernels. I guess perhaps things have changed.

Edit: Actually older Debian documentation also says don't build kernel headers, but new documentation and the current tools do build/download headers. As I said, I don't know what to say.

Edit again: For whatever it's worth, I'm not really arguing with any confidence. I'm just reporting what I see in Debian. Also, in my own experience, I've done it the "wrong" way for a couple of years now without any incidents.

rkelsen 03-01-2009 07:17 PM

Quote:

Originally Posted by Telemachos (Post 3461806)
That post was written in 2000 and talks about 2.2 and 2.4 kernels. I guess perhaps things have changed.

Edit: Actually older Debian documentation also says don't build kernel headers, but new documentation and the current tools do build/download headers. As I said, I don't know what to say.

Edit again: For whatever it's worth, I'm not really arguing with any confidence. I'm just reporting what I see in Debian. Also, in my own experience, I've done it the "wrong" way for a couple of years now without any incidents.

Well I haven't read anything that supercedes that advice from the Head Cheese. I'd be grateful if someone could post something (other than anecdotal evidence) which does. :)

Drakeo 03-01-2009 07:26 PM

2.6.28.7 kernel Slackware It was a must for me to build it out side the /usr/src. I had to do the make 0=/home/user name/build/kernel this created all the symlinks for compiling later. and you must use the newest nvidia out. for some reason compiling in the /usr/src/linux it built and installed but a lot of problems with the library links. that's it plus it uses the 4vl2 but it does have the squashfs modules I like it is very smooth.
so read the compiles text cd /usr/src/linux-kernel then do the build make 0=/home/user name/build kernel oldconfig

Telemachos 03-01-2009 07:31 PM

Quote:

Originally Posted by rkelsen (Post 3461816)
Well I haven't read anything that supercedes that advice from the Head Cheese. I'd be grateful if someone could post something (other than anecdotal evidence) which does. :)

My experience is anecdotal evidence, but the Debian Kernel Handbook and the default behavior of Debian's module-assistant tool is not.

I've been Googling off and on since earlier today, and I can't find anything conclusive one way or the other. That said, I'm reasonably confident that if module-assistant's method was completely insane, lots of users would have seen the effects by now.

rkelsen 03-02-2009 02:14 AM

Quote:

Originally Posted by Telemachos (Post 3461841)
That said, I'm reasonably confident that if module-assistant's method was completely insane, lots of users would have seen the effects by now.

Unless it does more than just download & install kernel headers...

Another thought: Debian isn't really a "DIY" distro. You don't need to compile many things under Debian because of the huge software repository which is available in binary package form, installable with apt-get. This is probably why you've not experienced any problems.

Telemachos 03-02-2009 05:18 AM

Quote:

Originally Posted by rkelsen (Post 3462074)
Unless it does more than just download & install kernel headers...

Another thought: Debian isn't really a "DIY" distro. You don't need to compile many things under Debian because of the huge software repository which is available in binary package form, installable with apt-get. This is probably why you've not experienced any problems.

Yes and no. Debian defaults to using precompiled binaries with an APT tool (apt-get, aptitude, synaptic, etc.), and most users do that. However, I compile second versions of some programs rather than using the vanilla, system-wide version - eg, Perl & Ruby - and I have a few small things that Debian doesn't have so I compile those locally as well - eg, tint.

My guess is that you're right and behind the scenes, Debian somehow manages the proper connections between libc6 (Debian's glibc) and other kernel headers.

Edit: I posted a question about this on Debian Forums, so we will see if anyone there can clear this up for us.

jdkaye 03-02-2009 10:19 AM

Good idea and thanks. Please post any repsonses back here, ok?
Cheers,
jdk

Telemachos 03-02-2009 11:59 AM

Quote:

Originally Posted by jdkaye (Post 3462486)
Good idea and thanks. Please post any repsonses back here, ok?

In a nutshell, the first answer made me even more confident that building and installing new headers is fine in Debian. The old advice applied when people used to link /usr/include/linux to /usr/src/linux/include/linux and in that case, you can get problems related to glibc. However, Debian no longer (for some time, I think) creates such links and thus it simply isn't a problem.

See the Debian Forums post and/or this link which explains some of the issues.

rkelsen 03-02-2009 04:22 PM

Quote:

Originally Posted by bugsbunny on the Debian forums
The /usr/include/linux tree isn't updated by any current methodology. And that tree is, in fact, part of the linux-libc-dev package and therefore linked with glibc.

There's the answer. Thanks for clearing this up Telemachos.

Apparently, under Debian, the kernel-headers package only contains the "in-tree" headers from the kernel source and not the libc headers (which are the ones which shouldn't be updated).

Slackware installs the entire kernel source tree as a single package, which I guess isn't really necessary unless you want to re-compile the kernel after installation (which many Slackers do... :) ).

steveo314 03-02-2009 09:49 PM

where did you see 2.6.28 in squeeze at?????

jdkaye 03-02-2009 11:43 PM

Quote:

Originally Posted by steveo314 (Post 3463071)
where did you see 2.6.28 in squeeze at?????

Quick answer: when I do
Code:

aptitude search linux-image
I get this:
Code:

$ aptitude search linux-image
v  linux-image                    -
v  linux-image-2.6                -
i A linux-image-2.6-486            - Linux 2.6 image on x86
p  linux-image-2.6-686            - Linux 2.6 image on PPro/Celeron/PII/PIII/P
i A linux-image-2.6.26-1-486        - Linux 2.6.26 image on x86
i  linux-image-2.6.26-1-686        - Linux 2.6.26 image on PPro/Celeron/PII/PII
p  linux-image-2.6.26-1-686-bigmem - Linux 2.6.26 image on PPro/Celeron/PII/PII
p  linux-image-2.6.26-1-amd64      - Linux 2.6.26 image on AMD64
p  linux-image-2.6.26-1-openvz-686 - Linux 2.6.26 image on PPro/Celeron/PII/PII
p  linux-image-2.6.26-1-vserver-68 - Linux 2.6.26 image on PPro/Celeron/PII/PII
p  linux-image-2.6.26-1-vserver-68 - Linux 2.6.26 image on PPro/Celeron/PII/PII
p  linux-image-2.6.26-1-xen-686    - Linux 2.6.26 image on i686, oldstyle Xen s
p  linux-image-2.6.28-1-486        - Linux 2.6.28 image on x86
p  linux-image-2.6.28-1-686        - Linux 2.6.28 image on PPro/Celeron/PII/PII
p  linux-image-2.6.28-1-686-bigmem - Linux 2.6.28 image on PPro/Celeron/PII/PII
p  linux-image-2.6.28-1-amd64      - Linux 2.6.28 image on AMD64

I should mention that I do a modest amount of apt-pinning so there are sid repos in my sources list.
cheers,
jdk

makuyl 03-03-2009 03:12 PM

Only in unstable here:
Code:

~$apt-cache policy linux-image-2.6.28-1-686
linux-image-2.6.28-1-686:
  Installed: (none)
  Candidate: 2.6.28-1
  Version table:
    2.6.28-1 0
        990 ftp://ftp.fi.debian.org unstable/main Packages


steveo314 03-03-2009 06:20 PM

ah ok... just curious. i didnt think 2.6.28 had made it into squeeze yet.

jdkaye 03-03-2009 09:42 PM

Quote:

Originally Posted by steveo314 (Post 3463901)
ah ok... just curious. i didnt think 2.6.28 had made it into squeeze yet.

I don't think it has. As I mentioned above I do a modest amount of alt-pinning so I have both unstable and testing in my sources.list
Cheers,
jdk


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