LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 05-25-2009, 06:02 AM   #1
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Rep: Reputation: 30
where can i find the kernel headers


Hello,

I now have to install the kernel-headers for 2.27.4.
But in the needed packages no kernel-headers.
Where can i find the right one.

Roelof
 
Old 05-25-2009, 07:49 AM   #2
contusion
Member
 
Registered: Mar 2005
Posts: 310

Rep: Reputation: 35
The Linux kernel site.
http://www.kernel.org
http://www.kernel.org/pub/linux/v2/
 
Old 05-25-2009, 08:13 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,646

Rep: Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532
Assume LFS book 6.4 ...
Have a look in " 5.6. Linux-2.6.27.4 API Headers"
http://www.linuxfromscratch.org/lfs/...x-headers.html
And when finished with "things to do" on that page,
the bottom of the page has a link
http://www.linuxfromscratch.org/lfs/...-linux-headers
"Details on this package are located in Section 6.7.2,
“Contents of Linux API Headers.” "

I.e. the headers are Linux-2.6.27.4/include/ \
{asm{,-generic},linux,mtd,rdma,sound}/*.h

obviously installed to
/usr/include/{asm{,-generic},linux,mtd,rdma,sound,video}/*.h
when all procedures are followed
.....
.....
Book, chapter, host system should be described,
every time a question is asked > > see 1.5 + 1.5.1
http://www.linuxfromscratch.org/lfs/...skforhelp.html
.....
 
Old 05-25-2009, 09:44 AM   #4
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello,

Borh thanks.
But on the site of kernel.org i can only find the changelogs and the kernels themselves. No kernel-header files be found there.

Host system : Slackware 12.2
Book : 6.4
Chapter : 5.6

Roelof

When i use the kernel package then i get this error-message :

lfs:/mnt/lfs/sources/linux-2.6.27.4$ make mproper
scripts/kconfig/conf -s arch/x86/Kconfig
***
*** You have not yet configured your kernel!
*** (missing kernel .config file)
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `mproper'. Stop.

Last edited by charlie_lab; 05-25-2009 at 11:45 AM.
 
Old 05-25-2009, 02:33 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,646

Rep: Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532
Well, it must be configured first to get the hidden file
.config .
May be go to the chapter, where the kernel is configured ?

The kernel headers are the files inside the kernel source :
linux-2.6.27.4/include/linux/<files.h>
linux-2.6.27.4/include/asm-generic/<files.h> etc. etc.
.....
 
Old 05-25-2009, 03:46 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

@charlie_lab: I do hope you typed mrproper and not mproper (as shown in post #4).......

No configuring needed, 'only' the header files are installed at this stage.
 
Old 05-26-2009, 02:34 AM   #7
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke,

That's was my fault.
Thank you both for your time.

Roelof
 
  


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
Unable to find kernel headers such as kmalloc.h manish.ym Linux - Kernel 2 06-16-2010 11:00 AM
what if I can't find headers as new as my kernel? newbiesforever Linux - General 2 01-25-2009 09:17 PM
ndisinstaller can't find program kernel-headers rgardner11 Linux - Newbie 3 01-04-2009 08:25 AM
Where can I find the Kernel Headers? Xyen Puppy 2 11-23-2008 01:16 AM
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM


All times are GMT -5. The time now is 05:44 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