LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-09-2007, 03:37 PM   #1
TeddyB
LQ Newbie
 
Registered: Oct 2007
Location: Cleveland, OH
Distribution: Debian Etch, Knoppix for troubleshooting
Posts: 17
Blog Entries: 1

Rep: Reputation: 2
Question Confused Over Selecting Kernel Package


Hi;

I am looking to upgrade my Kernel from 2.6.18 to 2.6.23 in my Debian Etch installation. I need to do this because it just seems like it's gonna be easier than patching version 18 with the MAC802.11 Subsystem.

Anyway to the point. I want to use the Debian Provided Kernel in Sid over just downloading one from Kernel.org, and though I haven't a problem with this, I am utterly confused by the packages available. I have, if I recall corectly, a Kernel-Source, Kernel-Image, and Kernel-Headers.

I belive I can "install" the Kernel-Source, and all that really does is download the new source to /usr/src (Again I am going from memory, I was dealing with this problem a month ago and just dropped it out of frustration)

I would then un-tar the thing and go about my merry way with configuring it. And use my original configuration files for any future software installation requireing the use of headers or the like.

But what I really don't get. is if this is the case. what is the point of a Kernel-Headers package for a kernel your going to download and configure yourself. and I have absolutely no clue what the Kernel-Image package is for.

I would really like some clarification of what these packages are for before I proceed. All I need is to have it done, and then two months later have massive issues because I did it wrong.

Thanks for any assistance;
TeddyB
 
Old 12-09-2007, 04:16 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by TeddyB View Post

But what I really don't get. is if this is the case. what is the point of a Kernel-Headers package for a kernel your going to download and configure yourself. and I have absolutely no clue what the Kernel-Image package is for.

I would really like some clarification of what these packages are for before I proceed. All I need is to have it done, and then two months later have massive issues because I did it wrong.

Thanks for any assistance;
TeddyB
The kernel-image package is the binary version of the kernel. It has already been compiled and can be installed without you having to do a compile.

When you compile drivers and other modular additions to the kernel you need to make the kernel source available to the compile so that the new addition can compile against some of the names in the kernel source. The kernel-headers are a subset of the entire kernel source. The kernel-headers contain only those portions of the source that other routines might want to compile against. You don't need the kernel-headers for your own kernel compile but the kernel-headers come in handy if you are going to compile drivers against your new kernel.

---------------------
Steve Stites
 
Old 12-10-2007, 04:17 AM   #3
TeddyB
LQ Newbie
 
Registered: Oct 2007
Location: Cleveland, OH
Distribution: Debian Etch, Knoppix for troubleshooting
Posts: 17

Original Poster
Blog Entries: 1

Rep: Reputation: 2
okay,

So the Kernel-headers in this case only exist as headers for the pre-compiled Kernel-Image?

Also, Obviously it is better to compile the kernel yourself line by line to have the most effective and tailored Kernel for you system. But how "bad" would it be to use the pre-packaged binaries? Does it give you a serious disadvantage?

Thanks for your speedy reply, and time;
TeddyB
 
Old 12-10-2007, 11:44 AM   #4
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
The problem is that the kernel is such an essential part of your system that upgrading it to Sid will drag in a bunch of upgrades to (equally essential) libraries and utilities. Once you do that, you really no longer have an Etch/Stable system. (And if you then comment out the Sid repos - which many people do - then you won't even get any updates to the kernel in the case of security patches or whatever.) As an alternative, you could add a line like this to your /etc/apt/sources.list
Code:
deb-src http://ftp.us.debian.org/debian/ unstable main contrib non-free
Then download the kernel source and compile it yourself. There are lots of good howto guides available for compiling a kernel in Debian. I like this one a lot http://technowizah.com/2005/12/debia...l-compile.html, but there are plenty of other good ones. The Debian sources come with Debian patches. You could also get the vanilla sources from http://www.kernel.org
 
Old 12-10-2007, 11:55 AM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by TeddyB View Post
okay,

So the Kernel-headers in this case only exist as headers for the pre-compiled Kernel-Image?

Also, Obviously it is better to compile the kernel yourself line by line to have the most effective and tailored Kernel for you system. But how "bad" would it be to use the pre-packaged binaries? Does it give you a serious disadvantage?

Thanks for your speedy reply, and time;
TeddyB
I have compiled my own kernel on occasion. The advantages to me were:

I got rid of initrd and thus boot sped up.

The kernel was smaller and took up less memory. On one computer I owned saving memory was important.

------------------
Steve Stites
 
  


Reply



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
Selecting package groups during install wahming Red Hat 5 02-07-2007 08:43 PM
Confused on how to remove a deb package with dpkg dr_zayus69 Debian 5 06-04-2006 02:02 PM
Selecting kernel image JJX Debian 3 10-16-2005 04:40 AM
Selecting a package from another source Nerox Debian 1 08-12-2004 02:46 PM
im confused on package management e1000 Slackware 4 10-15-2003 06:24 PM

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

All times are GMT -5. The time now is 10:48 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
Open Source Consulting | Domain Registration