LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-13-2009, 09:42 PM   #1
Memory_the_Hedgehog
LQ Newbie
 
Registered: Feb 2009
Distribution: LFS
Posts: 2

Rep: Reputation: 0
Question Confusion on LFS book version 6.4 Chapter 5.6.1 with LiveCD on x86


Currently I have a desktop with about 12GB hard drive (most for LFS, rest for swap) with a Pentium II processor (x86), using the LiveCD for LFS, while reading the LFS book (version 6.4) on another computer (adjusting file names when typing commands) and I'm stuck on chapter 5.6.1. I'm not really sure where to find the Linux kernel API headers from /lfs-sources (which I copied to /mnt/lfs/sources/ (on hda1)). I've unpacked some of the archives, but I'm not really sure where to execute the commands given in the chapter. I'm also pretty new to Linux, so sorry if this may be an obvious answer. Also, I've tried running the code in some package directories (such as linux-2.6.16.38, linux-libc-headers-2.6.12.0, and a few subdirectories), and all it says, after running "make headers_check" is "make: *** No rule to make target 'headers_check'. Stop." I've guessed that it means that I'm in the wrong place. Please tell me where to run the lines in chapter 5.6.1, and where to find the Linux kernel API headers. Thanks in advance!
 
Old 02-14-2009, 11:48 AM   #2
gerald_M2B
Member
 
Registered: Oct 2007
Posts: 34

Rep: Reputation: 15
chapter 5.6.1 is not different from any other packages. The linux kernel headers are in the linux kernel source tarball. Unpack the kernel that you are going to use
and cd into the top level, just as instructed at the end of chapter 5.3. Expect to find a Makefile in it. Check the Makefile with the command:
grep "headers_check" Makefile
$(Q)$(MAKE) -f $(srctree)/Makefile headers_check
PHONY += headers_check_all
headers_check_all: headers_install_all
PHONY += headers_check
headers_check: headers_install
echo ' headers_check - Sanity check on exported headers'; \

That should answer your question.

regards,
Gerald
 
Old 02-15-2009, 11:50 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,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
'cd linux-2.6.xx.x' ... where ever it is ....
and 'make headers_check' etc. like pointed out in # 2.

It shouldn't be possible to fail that, unless it is
a corrupt package with no 'Makefile'.

Last edited by knudfl; 02-15-2009 at 11:51 AM.
 
Old 02-16-2009, 09:19 AM   #4
healyma
Member
 
Registered: Feb 2009
Location: Mayo, Ireland
Distribution: LFS 6.4; Debian 5.4; Mythbuntu & Kubuntu 10.04
Posts: 49

Rep: Reputation: 18
Hi,
As far as I can recall, the LFS-LiveCD is based on version 6.2 of the book and has a slightly different build order than 6.4.

The easiest way to build it using the Live CD would be to press CTRL-ALT-F2 - this open a second, independant terminal window. Hit Enter to get a prompt and then type "lynx" to open a text only version of the LFS guide in the lynx borwser. I think the book is set as the homepage in lynx, otherwise append the path sapecified in the Live-CD welcome message to the lynx command (e.g. lynx /use/share....) from there you can use the arrow keys to navigaate through the manual.

CTRL-ALT-F1 will take you back to your original prompt and CTRL-ALT-F2 back to the book


Hope that helps

Mark
 
Old 02-16-2009, 09:08 PM   #5
Memory_the_Hedgehog
LQ Newbie
 
Registered: Feb 2009
Distribution: LFS
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by healyma View Post
Hi,
As far as I can recall, the LFS-LiveCD is based on version 6.2 of the book and has a slightly different build order than 6.4.

The easiest way to build it using the Live CD would be to press CTRL-ALT-F2 - this open a second, independant terminal window. Hit Enter to get a prompt and then type "lynx" to open a text only version of the LFS guide in the lynx borwser. I think the book is set as the homepage in lynx, otherwise append the path sapecified in the Live-CD welcome message to the lynx command (e.g. lynx /use/share....) from there you can use the arrow keys to navigaate through the manual.

CTRL-ALT-F1 will take you back to your original prompt and CTRL-ALT-F2 back to the book


Hope that helps

Mark
Thanks, I think it works now.
 
  


Reply

Tags
api, headers, lfs, livecd


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
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM
LFS-book vs LiveCD-hints Chapter 6.2 confusion AkBrian Linux From Scratch 2 03-04-2007 09:03 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
How to convert xml version of LFS-5.1.1 book to txt format? jml75 Linux From Scratch 1 06-18-2004 06:51 PM
How many time before a new LFS book version? mullog Linux From Scratch 3 06-11-2004 10:20 AM


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