LinuxQuestions.org
Help answer threads with 0 replies.
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 06-19-2010, 01:47 PM   #1
Wildy
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
LFS 2.6 linux headers


Up until this point I was actually quite chuffed I had managed to get to this stage in the first place xD

So I'm using the LFS Live CD as the host, running in VirtualBox. I have taken a machine snapshot after every page so I can roll back in necessary.


Basically I have just compiled and installed GCC without hitch, the next part is including the linux headers (http://tldp.org/LDP/lfs/LFS-BOOK-6.1...c-headers.html). I can't figure out for the love of God where these are. I've copied everything from the cd (lfs-sources) to the $LFS/sources folder but can't find the source folder include/asm-i386 or the destination folder /tools/include/asm (there was on instruction to create this, but after not being able to find it I created it anyway).

Quote:
Install the header files:

Code:
cp -Rv include/asm-i386 /tools/include/asm
cp -Rv include/linux /tools/include
If your architecture is not i386 (compatible), adjust the first command accordingly.

Thanks for the help in advance
 
Old 06-19-2010, 02:21 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

These headers are part of the kernel header package (Linux-Libc-Headers (2.6.11.2))

Untar, cd into the created directory and follow the instructions in the book (the one your URL points at).

You do know that you are building an old LFS version (6.1.1), the newest stable is at 6.6 (Linux From Scratch - Version 6.6).

If this is "just" an exercise and done to get an idea of linux and how things are set up and done, there's nothing wrong with building a 6.1.1 system. If, on the other hand, you want to use it I would suggest building the latest stable version.

Hope this helps.
 
Old 06-19-2010, 02:44 PM   #3
Wildy
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Like you said, I am doing this as a learning experience.

There is no Linux headers package in my sources folder. The only package containing the word linux is Linux-2.6.22.5.tar.bz2.
 
Old 06-19-2010, 03:38 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi again,

You cannot mix and match version 6.1.1 (kernel 2.6.11.2 + seperate Linux-Libc-Headers packages) and 6.3 (only linux-2.6.22.5.tar.bz2 file, no seperate headers file).

I assume you are using the packages on the cd, which is tailored around LFS 6.3 (to make sure, check the book that is present on the livecd as well). Those will not work with the instructions that are in the LFS 6.1.1 book.

Make sure your packages and book version match!

Hope this helps.
 
  


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
[SOLVED] LFS 6.6 - chap6.7 - Linux-2.6.32.8 API Headers (problems in this step) ukiuki Linux From Scratch 15 05-23-2010 08:36 AM
LFS 6.7 Linux API Headers - make headers_check fails gmontjr Linux - Newbie 4 01-26-2009 02:56 AM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 09:13 PM
Another LFS newb is stuck: Linux API headers won't install smoochie Linux From Scratch 19 06-13-2008 12:26 PM
LFS on PPC(linux-headers) DarthBane Linux From Scratch 1 06-05-2004 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:40 AM.

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