LinuxQuestions.org
Help answer threads with 0 replies.
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 01-16-2007, 09:48 AM   #1
hraposo
Member
 
Registered: Aug 2004
Posts: 370

Rep: Reputation: 30
compile kernel-headers


How I compile kernel-headers from kernel-source-2.6X
 
Old 01-16-2007, 09:57 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,675

Rep: Reputation: 122Reputation: 122
You don't need to compile kernel headers...

Get the headers with aptitude or synaptic. Search for linux-headers, as the kernel is "renamed" linux (for to me unknown reasons).
 
Old 01-16-2007, 09:59 AM   #3
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
To answer your question:
* Unpack kernel-source (which should be called linux-source-* by now) to /usr/src
* cd to the directory
* type find -iname "include"

Voila, you have "compiled" the kernel headers!

--

In other words, what are you trying to do?

Compile a kernel, I suppose?
 
Old 01-16-2007, 11:32 AM   #4
hraposo
Member
 
Registered: Aug 2004
Posts: 370

Original Poster
Rep: Reputation: 30
Yes compile a kernel
 
Old 01-16-2007, 11:39 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Do you know the debian reference?
Very interesting, its here:
http://www.debian.org/doc/manuals/re...kernel.en.html
 
Old 01-16-2007, 11:59 AM   #6
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
Then you have to get a complete kernel source tree. It is in the package linux-source-<version-number>.
After downloading, it is a tar.bz archive in /usr/src
extract it with tar xfj linux-source-<version>.tar.bz2

( It's a good idea to create a symlink from the newly-created linux-source-<version> directory to ./linux so external modules can find them
$ ln -s linux-source-<version> linux )

$ cd linux

$ make menuinstall to get into the kernel configuration.
You have to wade through the gazillions of kernel options and obscure features. I'm excited by that every time...

$ apt-get install kernel-package provides you with the tool make-kpkg which assists you in compiling and creating a valid Debian package which includes the kernel

May I suggest you to have a look at this very comprehensive guide? Compiling the kernel is not a trivial thing to do the first time...:
http://newbiedoc.sourceforge.net/system/kernel-pkg.html

good luck

~fab
 
Old 01-16-2007, 06:06 PM   #7
Michael_aust
Member
 
Registered: Aug 2005
Location: Lancashire (United Kingdom)
Distribution: Debian Etch, on 686 machine.
Posts: 509

Rep: Reputation: 30
If you have compiled your own kernel, then this command will build a kdernel-header package from it.

make-kpkg –initrd –revision 2.6.xx.x kernel_headers

If its any use I have written my own guide for compiling a kernel:

http://tuxedup.wordpress.com/2007/01...-under-debian/
 
  


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
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 12:15 AM
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 06:29 PM
Problems when trying to compile cpp files using qt headers siphiuel Linux - Software 2 08-12-2003 04:41 AM
Problems when trying to compile cpp files using qt headers siphiuel Linux - Software 2 08-10-2003 07:10 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration