• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to build linux from scratch?  RSS feed

 
Calvin Zeus
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,
Can anyone guide me how to build linux from scratch. Any good books for that.
Regards
 
Calvin Zeus
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Ben Souther,

Thanks for that mate. Thats a great link. I'll buy that book. How long do u think it would take to make an OS like the one given in the book. Let me
tell u i am not a linux guru.

Regards
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While it's something I'd love to find time for, I've never done it.
I'm guessing that it's not a trivial endevor.
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I showed it a linux expert and he told me that there is newer version of the description on this site (http://www.linuxfromscratch.org/)
I did not even know the existence of such a document
 
Calvin Zeus
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Axel Janssen,
Thanks for ur intrest.Can u just find out a good book for that.
Regards
 
Tim Holloway
Saloon Keeper
Posts: 18792
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:
While it's something I'd love to find time for, I've never done it.
I'm guessing that it's not a trivial endevor.


Depends. The Kernel build is a cookbook recipe and quite simple. The hardest part is figuring out what goodies you want and which ones should be resident instead of modules.

However, that's just the kernel. To build a complete Linux, you have to construct an appropriate root filesystem.

To do all of the above, try gentoo. It's very popular locally.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim,


To do all of the above, try gentoo. It's very popular locally.


LFS, aka 'Linux from scratch' is a concrete project, where you build your whole system from source, while gentoo is, according to www.distrowatch.com, a distribution.

You need a running linux to build a LFS, download several tools - the major one being gnu-cc.
You compile your binutils, the gcc itself, and all the c-libraries, and do it again a second time, with your newly build libs and compiler, and then you start building the kernel.

I started it two times, allways running into errors - perhaps my own ones.
Depending on the experience with compiling and installing, download-speed and machine-speed at compilation, I guess it's a one-day job.

A mythical man-day.
 
Calvin Zeus
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai friends,

Thank you for all ur opinions. I have started up now. I am referring LFS to first build the linux kernel. Will let u know soon about the latest status.

Regards
Calvin.
 
Calvin Zeus
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai friends,

Thank you for all ur opinions. I have started up now. I am referring LFS to first build the linux kernel. Will let u know soon about the latest status.

Regards
Calvin.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!