LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-01-2007, 09:11 PM   #1
kz_chopper
LQ Newbie
 
Registered: Feb 2007
Location: Halifax
Distribution: Debian Etch & Lenny
Posts: 14

Rep: Reputation: 0
LFS Chapter 5 Questions


This is my first attempt at building an LFS kernel...I am building LFS 6.2. My computer is running Debian Sarge 3.1 with a 2.6.8 kernel using all files from the LFS live CD 6.2-4

I have managed to find the answers to most of my questions but...

How do I apply patches? I have gotten as far as chapter 5.5, Binutils-2.16.1 and GCC-4.0.3 installed with no errors but after rereading the chapters, I have not applied any patches. Looking for both the code and where to find reference.

 
Old 02-01-2007, 11:12 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
At that point, there isn't any patching to be done. The first patch gets applied at 5.9. Expect-5.43.0. Have a look there - they provide the command line to run.
 
Old 02-02-2007, 07:25 PM   #3
kz_chopper
LQ Newbie
 
Registered: Feb 2007
Location: Halifax
Distribution: Debian Etch & Lenny
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks Steve...I guess I better RTFM a little more carefully
 
Old 02-02-2007, 07:55 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
It's a good project for RTFM practice too I'm just about to start on another box at work. LFS is a good choice because I want to keep as much space free for data as possible.
 
Old 02-02-2007, 08:55 PM   #5
kz_chopper
LQ Newbie
 
Registered: Feb 2007
Location: Halifax
Distribution: Debian Etch & Lenny
Posts: 14

Original Poster
Rep: Reputation: 0
Yeah...I was so keen to get on with it that I wasn't reading ahead to understand what was happening/going to happen...just blindly entering commands into the terminal. Not a good way for me to grasp what I am doing...

Last edited by kz_chopper; 02-02-2007 at 08:59 PM.
 
Old 02-04-2007, 04:13 AM   #6
kz_chopper
LQ Newbie
 
Registered: Feb 2007
Location: Halifax
Distribution: Debian Etch & Lenny
Posts: 14

Original Poster
Rep: Reputation: 0
OK, I finished chapter 5 with no errors. I have a dual boot machine, Sarge - 2.6.8 and Etch - 2.6.17-2...the build thus far has been using Sarge as the host. The book says that the rest of the build is done as root...can I switch to using Etch as the host or will this cause any issues?
 
Old 02-04-2007, 05:45 AM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
No, you need to be chroot'ed into the new environment so that everything you do is with the tools you have created and in the correct environment. Have you had a chance to read through 6.4. Entering the Chroot Environment yet?
 
Old 02-04-2007, 09:53 AM   #8
kz_chopper
LQ Newbie
 
Registered: Feb 2007
Location: Halifax
Distribution: Debian Etch & Lenny
Posts: 14

Original Poster
Rep: Reputation: 0
G'Day

Not yet, I'm at work for the next few hours...planning to have a read this afternoon and maybe chroot in to have a look around.

The build is going pretty well so far. I have run all of the tests as I progressed through (even though they are not required), the only errors were the ones that were to be expected.
 
  


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
LFS 6 Chapter 6.3 chroot error gatblast45 Linux From Scratch 8 01-01-2008 04:12 AM
lfs chapter 6.12 deucedlt Linux From Scratch 1 08-13-2006 11:03 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM
chapter 6.3 of LFS 6.1 Stamp Linux From Scratch 2 07-22-2005 08:10 AM
LFS 5.0 Chapter 5 cuco76 Linux From Scratch 1 11-23-2003 11:28 PM


All times are GMT -5. The time now is 12:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration