LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-01-2004, 09:45 AM   #1
rmy1
LQ Newbie
 
Registered: Sep 2004
Posts: 10

Rep: Reputation: 0
The true meaning of LFS?


Is LFS made to be a "Gentoo-like" generic distro for my home PC or was it made specifically to create my own custome distribution that I can create an ISO from and distribute universally with all the other distros?
 
Old 10-01-2004, 09:58 AM   #2
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
If you consider that another name for "Linux from Scratch" could be "Do It Yourself Linux" you would see that it is an excellent tutorial to show the possibility of building a Linux system that is custom taylored to your own needs.
Since LFS has been around longer than Gentoo, I do not think it is correct to say that it's intention was to create a Gentoo-like distro. I believe that Linux from Scratch was around before any of the "source distros". Is that correct?
 
Old 10-01-2004, 10:04 AM   #3
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
I still shake my head everytime I see "Linux From Scratch"... It's like making a chocolate cake from scratch, and the first ingredient listed is an already baked Betty Crocker chocolate cake.
 
Old 10-01-2004, 10:09 AM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
It's like making a chocolate cake from scratch, and the first ingredient listed is an already baked Betty Crocker chocolate cake.
You will be disappointed to learn that Linus created the kernel on a computer that already had software on it. And that really was Linux from Scratch.
 
Old 10-01-2004, 09:11 PM   #5
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Quote:
You will be disappointed to learn that Linus created the kernel on a computer that already had software on it. And that really was Linux from Scratch.
I'd be willing to bet he wasn't running Linux.
 
Old 10-01-2004, 10:16 PM   #6
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
I'd be willing to bet he wasn't running Linux.
You've got me there.
 
Old 10-02-2004, 12:55 PM   #7
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Linux from minix?
 
Old 10-04-2004, 10:12 PM   #8
mdh
Member
 
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122

Rep: Reputation: 16
Give us a bit, we have a build for building LFS from pretty much anything that you can build gcc on.
When time permits it will be merged into the lfs-unstable branch.

Of course from M$ or MacOSX you need to patch glibc to build on a non-case-sensitive filesystem,
and with non-gnu based unices you gotta lot of extra (GNU) packages to build before you start,
to use instead of the build-hosts which may not have all required features.

[R]
 
Old 11-03-2004, 09:28 AM   #9
rickseiden
LQ Newbie
 
Registered: Oct 2004
Posts: 22

Rep: Reputation: 15
Quote:
Originally posted by mdh
Give us a bit, we have a build for building LFS from pretty much anything that you can build gcc on.
When time permits it will be merged into the lfs-unstable branch.

Of course from M$ or MacOSX you need to patch glibc to build on a non-case-sensitive filesystem,
and with non-gnu based unices you gotta lot of extra (GNU) packages to build before you start,
to use instead of the build-hosts which may not have all required features.

[R]
I think that would just about blow Bill Gates' head right off. Linux from Scratch done on a Windows system!

All of this really is just raising the question, which came first, the chicken or the egg. In this case, the egg is Linux, and the chicken is the OS being used to build Linux. Obviously it couldn't have been Linux, but now that we have it, is it really a big deal that we're using Linux as a host OS to build Linux? I mean, doesn't LFS go out of it's way NOT to use the host system as much as possible?
 
Old 11-03-2004, 10:11 AM   #10
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Quote:
Originally posted by rickseiden
I mean, doesn't LFS go out of it's way NOT to use the host system as much as possible?
Yes LFS does go out of it's way, but there are some needed tools provided by the host that LFS needs..........but once you build the /LFS/tools and chroot to build the filesystem, LFS is on it's own.........
 
Old 11-03-2004, 03:58 PM   #11
rickseiden
LQ Newbie
 
Registered: Oct 2004
Posts: 22

Rep: Reputation: 15
Quote:
Originally posted by 320mb
Yes LFS does go out of it's way, but there are some needed tools provided by the host that LFS needs..........but once you build the /LFS/tools and chroot to build the filesystem, LFS is on it's own.........
Yes, but as someone else pointed out, you don't have to start it on Linux to get to Linux. LFS just happens to work best on there because it's easiest, and LFS is an educational tool as much as it is a Linux building tool. In theory, you could do the same thing on AIX, as long as you've got GCC installed, right?
 
Old 11-03-2004, 04:40 PM   #12
mdh
Member
 
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122

Rep: Reputation: 16
If you feel like some pain^H^H^H^Hfun I do have some proof of concept scripts up.

http://www.linuxfromscratch.org/~rya...pts/cross-lfs/

Will have a new set up over the weekend sometime...
Scripts cross-compile all of chapter 5.

Scripts also handle nptl enabled glibc, and can build bi-arch cross-toolchains
(ie 32/64bit for eg x86_64)

Still needs a patch for glibc to build on case-insensitive filesystem though
(I have no windows, nor MacOS X boxes to play with)

Regards
[R]
 
Old 11-08-2004, 04:51 PM   #13
Paulsuk
Member
 
Registered: Jan 2004
Distribution: LFS
Posts: 91

Rep: Reputation: 15
Hummm, an interesting thread, but ultimately...?

I mean, surely the Linux Kernel 2.6 was developed on a machine running 2.4.x and I'm sure the programmers at M$ wrote XP code on machines running 2000.

I'll bet that if anyone REALLY wanted to, they could manually enter a bootstrap in hex, using switches (or whatever) and bring a system up that way, but what's the point? Certainly, that's the way it was done "in the beginning" but it really isn't required now!

The point is that ANY modern system is initially built using tools on another (often earlier version of the same) system. LFS isn't any different here. The important issue is that the toolchain thing means you are sure that the tools you ultimately use, are tools that you know the pedigree of.

Paul
 
Old 11-09-2004, 07:49 AM   #14
lloyd_smart
LQ Newbie
 
Registered: Dec 2003
Posts: 24

Rep: Reputation: 15
Quote:
manually enter a bootstrap in hex, using switches (or whatever) and bring a system up that way
That would be a cool project! LFS from . . . SCRATCH!
 
Old 11-15-2004, 12:27 AM   #15
mdh
Member
 
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122

Rep: Reputation: 16
LOL, why stop there ;-)
Grab an FPGA, a copy of LEON (sparcv8 in VHDL, see http://www.gaisler.com/ )
Build your processor from scratch, then linux from scratch for your processor from scratch ;-)

/me runs
 
  


Reply



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 Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM
cannot login as user 'lfs' [su - lfs] mayasedai Linux From Scratch 2 07-26-2005 06:10 AM
LFS a true Learning Experience or just Routine Steps ? rvijay Linux From Scratch 9 01-24-2005 01:16 PM
creating a custom linux, not meaning lfs... czarherr Linux - Software 4 04-25-2004 10:53 AM

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

All times are GMT -5. The time now is 02:29 PM.

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