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-188.8.131.52, linux-libc-headers-184.108.40.206, 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
PHONY += headers_check
echo ' headers_check - Sanity check on exported headers'; \
That should answer your question.
'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'.
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
|All times are GMT -5. The time now is 09:53 PM.|