Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 2000 13:28:52 -0700 (PDT)
From:      papowell@astart.com
To:        freebsd-small@FreeBSD.ORG
Subject:   Make Based PicoBSD
Message-ID:  <200007232028.NAA16375@h4.private>

next in thread | raw e-mail | index | archive | help
I have spent a couple of days fixing up/hacking/slashing the
current PicoBSD 'custom' distribution.  I started with the
basic Makefile stuff in it and extended it ummmm... vigorously.

Yes.  That is the word.  Vigorously.

It now generates 1 or 2 floppy versions, as well as a
system suitable for CDROM boots.

You can get the current version that I have done from:

ftp://ftp.astart.com/pub/LPRng/PICOBSD/...
    check the version that is there - there are
    quite a few things in this directory.

I have created bridge.new custom.new dial.new doc.new isp.new
net.new router.new which are the Makefile based version of the
packages currently there.

I will write a new HOWTO which documents how to use this
together with quite a few examples of various configurations.

Note:  the doc.new contains a couple of documents in the
DOCBOOK format - I will be doing the documentation in it
so that it can be put together with the other FreeBSD docs.

If you are intersted,  see the DocProject Primer,  and then
look the Makefile in the doc.new/src/Makefile, to see how to
produce the HTML from SGML.

Here is the top level README.new:

Patrick Powell
Sun Jul 23 12:57:42 PDT 2000
This is a quick description of a Work In Progress

Goal: Fix up PicoBSD and turn it into Makefile driven

Organization:

  Project        custom.new       Project Directory
   Makefile         -               Makefile for project
   project.options                  options for project
   crunch1/                         crunch build directory
     Makefile       -               Makefile for building crunch
     crunch.conf                      crunch information
     crunch.options                   options passed to compiles and
                                      makes invoked by crunch
     <programs>                     Programs used by this project
                                      in the crunch
    mfs.mtree       -               Memory File System (MFS) template
    mfs.tree/                       MFS files
     etc/
     root/
     ...
    mfs.tree.exclude                Specifies files NOT to copy to MFS
    floppy.tree/                    Floppy files
     boot/                          essential boot files
         kernel.conf
         boot.help
    loader.rc.*     -               loader.rc files for various configurations
    Makefile.conf   -               Makefile to build kernel
    PICOBSD-name                    kernel config file - note the suffix!
    Makefile.mfs    -               Makefile to make MFS


Overall method:

   The project.options has a couple of options that seem to change
or are different for the various projects:

# Information about mfs parameters
# Size of mfs in kilobytes
MFS_SIZE        =       3500               <- pretty safe
#FLOPPY_SIZE    =       1722

# Suffix to tack on somewhere
suffix          =       custom             <- name of config file
                                              PICOBSD-${suffix}
# default is for a single floppy system
FLOPPY_N    = floppy1of1                   <- single floppy

# for a two floppy system
FLOPPY_N    = floppy1of2 floppy2of2        <- two floppies

# and we can do a CDROM boot image as well
#FLOPPY_N    += cdrom


The Makefile will:
  a. build a kernel
  b. Build a loader WITHOUT the forth stuff so it is small
  c. build the crunched files in crunch1
  d. Make an MFS image
  e. for a single floppy system, create floppy1of1 image,
     that has all the stuff on it.
     The floppy /etc and /root directories on the floppy
     are copied to the MFS at run time
  f. for a two floppy system,  creates
     floppy1of2 - kernel, loader, and boot/ files
     floppy2of2 - MFS /etc, /root


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-small" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007232028.NAA16375>