From owner-freebsd-questions@FreeBSD.ORG Sat Sep 11 03:56:39 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 637CF106566C for ; Sat, 11 Sep 2010 03:56:39 +0000 (UTC) (envelope-from jcw@speakeasy.net) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.42]) by mx1.freebsd.org (Postfix) with ESMTP id 3F8048FC0C for ; Sat, 11 Sep 2010 03:56:39 +0000 (UTC) Received: (qmail 15747 invoked from network); 11 Sep 2010 03:56:38 -0000 Received: from dsl081-163-120.sea1.dsl.speakeasy.net (HELO w16.stradamotorsports.com) (jcw@[64.81.163.120]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 11 Sep 2010 03:56:38 -0000 Message-ID: <4C8AFDF6.5030205@speakeasy.net> Date: Fri, 10 Sep 2010 20:56:38 -0700 From: "Jason C. Wells" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.10) Gecko/20100808 Lightning/1.0b1 Thunderbird/3.0.5 MIME-Version: 1.0 To: CyberLeo Kitsana References: <4C8AF124.5050808@cyberleo.net> In-Reply-To: <4C8AF124.5050808@cyberleo.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= , freebsd-questions@freebsd.org Subject: Re: kernel replacement in installation media X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2010 03:56:39 -0000 On 09/10/10 20:01, CyberLeo Kitsana wrote: > On 09/10/2010 07:57 PM, Samuel Martín Moro wrote: > >> Hi, >> ... >> The thing is, it only have a 128M flash disk (seen as /dev/da0) >> GENERIC needs almost 250M. >> > I have run into something similar, while building a ZFS install to run > on an Intel SS4200EHW NAS device. Utilizing a series of scripts I have > developed[1], I was able to compact an entire functional FreeBSD system > into 4.6MB /boot and 84MB root with mkisofs and mkuzip, without > permanently tying up a bunch of the machine's limited RAM with an MFS, > and with acceptable performance despite the IDE channel's speed limit of > 1.6MB/sec. Plus, boot and root are read-only, so the CompactFlash card > won't wear out prematurely. > > You can make use of src.conf(5) while building world and kernel to > eliminate a lot of unnecessary userland components, and MODULES_OVERRIDE > and WITHOUT_MODULES to control what modules get built, as the kernel > build process will build all modules regardless of what might be in your > kernel config. Be prepared to perform lots of testing, though, as a > missed critical dependency can appear to succeed, but leave something > else broken. > I do believe you can omit the *.symbols files. I plan to try it myself. Would someone please confirm this? And you might look at resurrecting the picobsd method of crunching binaries into one single statically linked binary with hard links of differing file names if you want to get really small. I used to do this when compactflash was only 128MiB. Thanks, Jason C. Wells