From subsecret
No edit summary |
mNo edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Building Linux from scratch= | =Building Linux from scratch= | ||
'''NOTE: The guide is not complete'''<br/> | |||
This is a guide on how to build an entire linux system from scratch. | This is a guide on how to build an entire linux system from scratch. | ||
Line 15: | Line 16: | ||
==Building tools (stage 2)== | ==Building tools (stage 2)== | ||
*[[Recompiling]] | *[[Recompiling]] | ||
==Building tools (stage 3)== | ==Building tools (stage 3)== | ||
*[[Installing zlib, binutils]] | *[[Installing zlib, binutils]] | ||
*[[Installing M4, ncurses, bash]] | *[[Installing M4, ncurses, bash]] | ||
*[[Installing attr, coreutils]] | *[[Installing attr, coreutils]] | ||
==Testing new environment== | ==Testing new environment== | ||
*[[Trying tools in clean environment]] | *[[Trying tools in clean environment]] | ||
==Building tools (stage 3 cont.)== | |||
*[[Installing tar, pcre, grep]] | *[[Installing tar, pcre, grep]] | ||
*[[Installing gzip, bzip2, make]] | *[[Installing gzip, bzip2, xz, make]] | ||
*[[Installing sed, findutils, gawk, util-linux]] | |||
*[[Installing patch, ncurses, nano, diffutils]] | |||
*[[Installing gdbm, db, perl, bc, openssl]] | |||
*[[Building kernel]] | |||
==Finishing building the tools== | ==Finishing building the tools== | ||
*[[Installing the rest]] | *[[Installing the rest]] | ||
Latest revision as of 22:23, 19 April 2016
Building Linux from scratch
NOTE: The guide is not complete
This is a guide on how to build an entire linux system from scratch.
Prerequisites: Linux installation on same architecture as the one you want to build Linux from scratch for. A working version of GCC. Files needed for guide
Using the guide: All steps have to be followed in the order they are for the program dependencies to work. However after finishing the building of the tools, you can add more tools yourself.
Building tools (stage 1)
- Creating build directory
- Installing Kernel libraries
- Installing libcap, glibc
- Installing libelf, MPC, GMP, MPFR, GCC
Building tools (stage 2)
Building tools (stage 3)
Testing new environment
Building tools (stage 3 cont.)
- Installing tar, pcre, grep
- Installing gzip, bzip2, xz, make
- Installing sed, findutils, gawk, util-linux