From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 26 19:02:41 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC62C16A4BF for ; Tue, 26 Aug 2003 19:02:41 -0700 (PDT) Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B10A43FCB for ; Tue, 26 Aug 2003 19:02:40 -0700 (PDT) (envelope-from louie@whizzo.transsys.com) Received: from whizzo.transsys.com (#6@localhost [127.0.0.1]) by whizzo.transsys.com (8.12.9/8.12.9) with ESMTP id h7R22OJ7067193; Tue, 26 Aug 2003 22:02:24 -0400 (EDT) (envelope-from louie@whizzo.transsys.com) Message-Id: <200308270202.h7R22OJ7067193@whizzo.transsys.com> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: "M. Warner Losh" X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg From: "Louis A. Mamakos" References: <3F4B9BE0.5010209@acm.org> <001a01c36bff$cff9e840$a700000a@TYBOX> <20030826213939.GA10898@funkthat.com> <20030826.191811.22016699.imp@bsdimp.com> In-reply-to: Your message of "Tue, 26 Aug 2003 19:18:11 MDT." <20030826.191811.22016699.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 26 Aug 2003 22:02:24 -0400 Sender: louie@TransSys.COM cc: freebsd-hackers@freebsd.org cc: gurney_j@efn.org cc: tyler@statuo.com cc: kientzle@acm.org Subject: Re: Minimalist FreeBSD 4.8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2003 02:02:41 -0000 > Actually, I have a small script that does something like this. Here's > a breif sketch. > > # prepare /cf > make buildworld > > ${chroot} /bin/sh -${e}c "(cd $srcdir > env MAKEOBJDIRPREFIX=$objdir make -m ${srcdir}/share/mk -f \ > Makefile.inc1 hierarchy DESTDIR=$dstdir NOMAN=yes > (cd etc ; env MAKEOBJDIRPREFIX=$objdir make -m ${srcdir}/share/mk \ > distribution DESTDIR=$dstdir NOMAN=yes) > for i in ${FreeBSDProgramDirs}; do > echo \"==> \$i\" > test -d \$i && > (cd \$i ; env MAKEOBJDIRPREFIX=$objdir make -m ${srcdir}/share/mk \ > install -DNOINFO -DNOMAN DESTDIR=$dstdir -DNOPROFILE) > done)" > > Here's my current minimal list for a bootable system, although you > might be able to trim it a little. Also, it is optimized for 4.5. > There will some tweaks needed for 4.8. Also, I've done the buildworld > with NOSHARED=no since we put both / and /usr on the same partition in > our systems. > > My scripts are more complete, but also very specific to Timing > Solutions' needs. I've used these scripts to build flashes that take > up about 12M or so. There's about 2M that can be trimmed. > > Warner > > P.S. Maybe I should find some time to pull together these scripts in > a releaseable format... > > P.P.S., Here's what I use to set FreeBSDProgramDirs to in an > over-arching makefile. I've used a hacked-on version of Warner's scripts to build a FreeBSD based firewall distribution to run on the Soekris 4501 box. I was able to get a running system for that application on an 8MB CF card. Of course, the kernel was compressed and it was pretty stripped down.. I'm currently using a 32MB CF card, with two 16MB partitions for this purpose (so I can back up to the previous version easily). Of course, no gcc. And heavens, no VI! Got a microemacs on there instead, whew! I also built my system with NOSHARED=no to dramatically reduce the space requirements for the root (and only) file system, and it works great. louie