|author||Luigi Rizzo <luigi@FreeBSD.org>||2001-04-21 00:04:29 +0000|
|committer||Luigi Rizzo <luigi@FreeBSD.org>||2001-04-21 00:04:29 +0000|
Updated picobsd manpage, reflecting reality a bit more than
the previous one. Not-explicitly-approved-by-but-I-hope-it's-ok: jkh
Notes: svn path=/stable/4/; revision=75749
1 files changed, 59 insertions, 171 deletions
diff --git a/share/man/man8/picobsd.8 b/share/man/man8/picobsd.8
index da90cd2025a8..8a863659d61a 100644
@@ -4,16 +4,20 @@
.Dt PicoBSD 8
.Nd Floppy disk based FreeBSD system
+.Op Fl n
+.Op Ar floppy-type Op Ar site-name
is a minimal implementation of
on one or more floppy disks. The
floppies are required for loading only; the system runs from ramdisk and is thus
not limited to the speed of the floppies.
The first (and only required)
floppy contains a compressed kernel and compressed MFS root file system, as well
@@ -54,7 +58,7 @@ and
a cut-down version of
.Nm vmstat .
-.Sh BUILDING PicoBSD
+.Sh BUILDING picobsd
sources reside in the hierarchy
@@ -62,20 +66,17 @@ sources reside in the hierarchy
In the following discussion, all relative path names are relative to this
-build process is designed to be flexible in order to cram as much as possible on
-to the floppies. In particular, the following possibilities exist:
-The old style of building uses a script called
-.Pa build/build .
-To use it, change directory to
-.Cm build .
-is an interactive script which will ask for parameter entries and then build the
-appropriate single floppy version. Five kinds of floppy are envisaged:
+build process has changed slightly over time, in order to cope
+with the unavoidable increase of code size, which requires more and more
+tricks to cram as much as possible on
+to the floppies. In FreeBSD 4.3, the supported build script is
+which can be run from anywhere.
+This interactive script will ask for parameter entries and then build the
+appropriate single floppy version. The following kinds of floppy are envisaged:
+is a configuration suitable for bridges, routers and firewalls
is a configuration suitable for dial-out (ppp) networking.
@@ -88,99 +89,35 @@ is a configuration suitable for general networking.
is a configuration suitable for use as a router. This particular configuration
aims to work on minimal hardware.
-The new style of building uses
-.Cm make .
-will build in the directory
-.Pa custom .
-The build process involves the following steps. In the examples, the
-is used, but the principle also applies to the subdirectories
-.Pa dial ,
-.Pa install ,
-.Pa isp ,
-.Pa router .
-.It Em "Build the kernel" .
-Each directory contains a configuration file with a name starting with
-.Pa PICOBSD .
-When building a custom
-it is important to review this file carefully. The smallest possible kernel
-occupies about 600 kB after compression, and it is easy to have a kernel as
-large as 900 kB. It is probably not possible to build a first
-floppy with a kernel of 900 kB.
-.It Em "Create the MFS image" .
-The MFS image for the first floppy is created as a
-file system which is subsequently mounted as
-.Pa custom/mmnt .
-.It Em "Create the crunched executables" .
-The executables for the first floppy are built in the directory
-.Pa crunch/crunch1/ .
-The contents of this executable are determined by the file
-.Pa crunch/crunch1/crunch.conf .
-.It Em "Build the floppy image" .
-A second file system image, which will later become the first floppy, is built
-and mounted as
-.Pa custom/fmnt .
-It receives the compressed kernel, the compressed MFS file system, the contents
-of the tree
-if the latter directory exists. This dual method allows specific files in
-to overlay files from
-.Pa floppy.tree/ .
-.It Em "Create the image for the second floppy" .
-Finally, the image for the second floppy is built. There is only one file on
-this floppy, which will be copied to the MFS-relative directory
-at boot time. The contents are built in the directory
-.Pa crunch/crunch2/ .
-The contents of this executable are determined by the file
-.Pa crunch/crunch2/crunch.conf .
-.It Em "Copy the data to the floppies" .
-The previous steps are performed by the
-.Nm make all
-.Nm make all
-does not copy data to the floppy disks. Instead, use
-.Nm make floppy
-for the first floppy, and
-.Nm make floppy2
-for the second disk.
-.It Em "Create additional floppies" .
-You can theoretically possible to read a large number of floppies into the MFS.
-Each additional floppy, including the second, is a gzipped tar file containing
-files relative to
-.Pa /bin .
-You can put any statically linked program on a floppy in this form, and the
-startup routines will automatically read it in. Remember that there are no
-dynamic libraries, so the programs must be static.
+These configurations serve only as examples to build your
+own. Not all of them have been tested, and you might need small tweaks
+to the configuration files to make them work or even fit into
+the available disk space as code size increases.
+You can define your own floppy type, by creating a directory
+with a name of your choice (e.g. FOO) which contains
+.Bl -tag -width "floppy.tree.exclude" -compact
+the kernel configuration file (required).
+crunchgen configuration (required).
+shell variables, sourced by the "picobsd" script (optional).
+files from the standard floppy tree which are not needed (optional).
+local additions to the standard floppy tree (optional).
+same as above, site-specific (optional).
-.\" .Sh FILES
-.\" .Sh EXAMPLES
-.\" This next request is for sections 1, 6, 7, 8 & 9 only
-.\" (command return values (to shell) and
-.\" fprintf/stderr type diagnostics)
-.\" .Sh DIAGNOSTICS
-.\" The next request is for sections 2, 3 and 9 error
-.\" and signal handling only.
-.\" .Sh ERRORS
+More information on the build process can be found in
+the "picobsd" script.
+Sample configurations can be found in
.Sh BOOTING PicoBSD
@@ -188,28 +125,16 @@ insert the floppy and reset the machine. The boot procedure is similar to the
boot, but proceeds at a snail's pace. From the end of the POST
-(BIOS Power On Self Test) until the prompt for the second floppy takes about 3
+(BIOS Power On Self Test) until the system is up and running takes
+anywhere between 1 and 3 minutes.
-When the prompt for additional floppies appears, first insert the floppy in the
-drive, then answer
-.Em y .
-When you have no more floppies, enter
-.Em n .
-This version of
-does not have a root password. If you require greater security, you can copy
-to the first boot floppy. These are the only files you need: the boot process
-generates the files
-.Pa /etc/passwd ,
+To speed up booting, you can use
+to load the preloaded, uncompressed kernel image
+which is a byproduct of the picobsd build. In this case
+the load time is a matter of a few seconds, even on a 10Mbit/s
.Ss Swap space
@@ -225,13 +150,6 @@ partition does not contain a dump you want to keep, you can use this swap with
.Xr swapon 8
-.Sh RECOVERING CRASHED SYSTEMS
-configuration contains all the programs that are present on the
-floppy, so you can use it instead of the fixit floppy.
.Sh SEE ALSO
.Xr crunchgen 1 ,
.Xr swapon 8 ,
@@ -240,7 +158,10 @@ floppy, so you can use it instead of the fixit floppy.
.\" .Sh HISTORY
-.An Andrzej Bialecki Aq abial@FreeBSD.org .
+.An Andrzej Bialecki Aq abial@FreeBSD.org ,
+with subsequent work on the scripts by
+.An Luigi Rizzo Aq email@example.com
Man page and Makefiles created by
.An Greg Lehey Aq firstname.lastname@example.org .
@@ -251,43 +172,10 @@ the kernel of the system on which it is built must have the
The build process must be run as
-.Nm root .
-The build process does not search for unused vnode devices; it uses
-.Pa /dev/vn1 .
-If these files are not in use by other programs, unexpected behaviour may
+because of the need of running vnconfig and mount.
is still a black art. The biggest problem is determining what will fit on the
floppies, and the only practical method is trial and error.
-The original version of
-fits on one floppy. Since
-.Fx 4.0 ,
-the kernel is so large that most
-configurations will need a second floppy to do any productive work.
-Nevertheless, it should be possible to create minimal kernels which will fit
-alongside sufficient other programs on a single floppy.
-The approach of building executables with
-.Xr crunchgen 1
-means that considerable duplication of libraries occurs between the floppies.
-At the current time (December 1999), the old-style build is broken in
-.Fx Ns -CURRENT .
-In view of the significant increase in size of the 4.x kernel
-compared to the 3.x kernel, it is not certain that it can be fixed.
-has suffered some bit rot in 1999, and currently most of the old-style
-configurations do not build.
-There appears to be no way to get
-to run on