From owner-freebsd-current@FreeBSD.ORG Tue Jun 21 18:57:32 2005 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BAD916A41C for ; Tue, 21 Jun 2005 18:57:32 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from mail.yazzy.org (mail.yazzy.org [217.8.140.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54B0C43D1D for ; Tue, 21 Jun 2005 18:57:32 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from localhost.localdomain (yazzy.yazzy.org [192.168.98.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.yazzy.org (Postfix) with ESMTP id 8D4D039814; Tue, 21 Jun 2005 20:58:07 +0200 (CEST) Date: Tue, 21 Jun 2005 20:57:30 +0200 From: Marcin Jessa To: Jeremie Le Hen Message-Id: <20050621205730.5ef76166.lists@yazzy.org> In-Reply-To: <20050621132608.GF738@obiwan.tataz.chchile.org> References: <20050619155228.Y6413@fledge.watson.org> <66959.1119209763@critter.freebsd.dk> <20050619213612.GD8597@over-yonder.net> <20050621132608.GF738@obiwan.tataz.chchile.org> Organization: YazzY.org X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: current@FreeBSD.org, fullermd@over-yonder.net Subject: Re: Summary: experiences with NanoBSD, successes and nits on a Soekris 4801 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2005 18:57:32 -0000 Hi. You can read how it's done on NetBSD: http://www.wifibsd.org/support/netbsd-on-cf.txt We do similar things with FreeBSD, but in opposite to nanobsd, picobsd and such we dont do any crunching of binaries, we just use dynamically linked libraries. This makes live a lot of easier (ever tried to crunch openssl?). Also the rootfs on FreeBSD can be loaded as a module by loader or "inserted" into the kernel. PicoBSD and i guess NanoBSD use the second option. What's neat is you can actually use the same configs with freebsd and netbsd and replace your "firmare" (rootfs and kernel) on the fly. Cheers. On Tue, 21 Jun 2005 15:26:08 +0200 Jeremie Le Hen wrote: > Hi Matthew, > > > I have to wonder if exclusion is a better route than inclusion. > > > > I've got several Soekris boxes (4501) out in production, running I > > think a 4.7ish FreeBSD. But I built up the images by including things > > in. I did a full normal buildworld, and a DESTDIR'd installworld. I > > didn't use any special options to trim out pieces of programs; just a > > few simple tweaks like -Os compiling Then I used a list of the > > programs, and used some ldd'ing and sed'ing in the Makefile to get all > > the libraries needed and copy everything over to another staging dir. > > > > Of course, manual tweaking for config files was needed. I handwrote > > the whole rc bootup process (independant scripts for ease of manual > > fiddling, but with a hardcoded sequence for the bootup process). > > Hand-trimmed passwd/group files. I had to pull some libraries > > manually (PAM was the major "offender" here). And so on; not stuff > > that would really fit in the NanoBSD schema. > > > > I built them rather more general than the project required, so I > > wouldn't have to carefully craft each future use; they had everything > > necessary to do most networking jobs you'd stick a 4501 in for. It > > still came in around around the 20 meg line. > > Is your work publishable ? In this case, I would be glad to have a > look at it. > > Thank you. > Regards, > -- > Jeremie Le Hen > < jeremie at le-hen dot org >< ttz at chchile dot org > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"