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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
10-01-2004, 09:45 AM
|
#1
|
LQ Newbie
Registered: Sep 2004
Posts: 10
Rep:
|
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?
|
|
|
10-01-2004, 09:58 AM
|
#2
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep: 
|
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?
|
|
|
10-01-2004, 10:04 AM
|
#3
|
Senior Member
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142
Rep:
|
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.
|
|
|
10-01-2004, 10:09 AM
|
#4
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep: 
|
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.
|
|
|
10-01-2004, 09:11 PM
|
#5
|
Senior Member
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142
Rep:
|
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.
|
|
|
10-01-2004, 10:16 PM
|
#6
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep: 
|
Quote:
I'd be willing to bet he wasn't running Linux.
|
You've got me there.
|
|
|
10-02-2004, 12:55 PM
|
#7
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
Linux from minix?
|
|
|
10-04-2004, 10:12 PM
|
#8
|
Member
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122
Rep:
|
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]
|
|
|
11-03-2004, 09:28 AM
|
#9
|
LQ Newbie
Registered: Oct 2004
Posts: 22
Rep:
|
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?
|
|
|
11-03-2004, 10:11 AM
|
#10
|
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577
Rep:
|
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.........
|
|
|
11-03-2004, 03:58 PM
|
#11
|
LQ Newbie
Registered: Oct 2004
Posts: 22
Rep:
|
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?
|
|
|
11-03-2004, 04:40 PM
|
#12
|
Member
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122
Rep:
|
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]
|
|
|
11-08-2004, 04:51 PM
|
#13
|
Member
Registered: Jan 2004
Distribution: LFS
Posts: 91
Rep:
|
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
|
|
|
11-09-2004, 07:49 AM
|
#14
|
LQ Newbie
Registered: Dec 2003
Posts: 24
Rep:
|
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!
|
|
|
11-15-2004, 12:27 AM
|
#15
|
Member
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 03:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|