Confusion on LFS book version 6.4 Chapter 5.6.1 with LiveCD on x86
Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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'; \
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.