From owner-freebsd-mips@FreeBSD.ORG Fri Jun 11 14:01:36 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A87B61065676 for ; Fri, 11 Jun 2010 14:01:36 +0000 (UTC) (envelope-from freebsd@luftivennad.com) Received: from fiona.equix.ee (fiona.equix.ee [188.92.161.31]) by mx1.freebsd.org (Postfix) with ESMTP id 06E958FC12 for ; Fri, 11 Jun 2010 14:01:35 +0000 (UTC) Received: by fiona.equix.ee (Postfix, from userid 2500) id A8EAB26F947; Fri, 11 Jun 2010 17:03:02 +0300 (EEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.equix.ee X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=AWL autolearn=disabled version=3.2.5 Received: from webmail.equix.ee (localhost [188.92.161.31]) by fiona.equix.ee (Postfix) with ESMTP id 3DED826F93A; Fri, 11 Jun 2010 17:02:59 +0300 (EEST) Received: from 62.65.217.127.cable.starman.ee ([62.65.217.127]) (SquirrelMail authenticated user zwoz) by webmail.equix.ee with HTTP; Fri, 11 Jun 2010 17:02:59 +0300 Message-ID: <6d625a568cdee81a51c155bbae240244.squirrel@webmail.equix.ee> In-Reply-To: References: <9c83a480a3f456a711411e7b458fdd41.squirrel@webmail.equix.ee> Date: Fri, 11 Jun 2010 17:02:59 +0300 From: "Ain" To: "Adrian Chadd" User-Agent: SquirrelMail/1.4.19 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-mips@freebsd.org Subject: Re: Building image for Routerstation Pro X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2010 14:01:36 -0000 Thank You for answer! I think i get some ideas, what i can try next WBR, Ain > Hi! > > Ok, so: > > The mkfwimage program is from ubiquiti and the openwrt project. It's > based on "Linux" assumptions - that there's a small kernel partition > that is booted, then a large rootfs partition which holds the root > filesystem, (device driver, etc) modules, etc. > > My images at work are integrated kernel+mdroot (gzip'ed). I'd like to > eventually be able to run off of a read-only rootfs on the SPI flash > but that will require some significant twiddling of the flash device > code. For now, I use a user-space filestore program and a small rootfs > (1mb) for config file and other sundry storage. > > There should be a cut down config file example in the config file > there. You could try adding the various bits to make a geom_gzip > mdroot - this significantly reduced my image size. > > HTH, > > > adrian > > On 11 June 2010 21:07, Ain wrote: >> Hello! >> >> I am trying get big picture, what is needed to make standalone, all in >> onboard flash installation. I found some good pointers, like Adrian >> Chadd >> patched utilities and README at http://people.freebsd.org/~adrian/rspro/ >> But something seems to missing, from example, i don't get, why  mfs >> writes >> mdroot in kernel and then  mkfwimage (used by mkflash script) combines >> new >> kernel with mdroot file again. >> Second thing is (if i understand correctly) 13 MB is allowed RSPRO image >> size. >> My  temporary file system image size is 13-14 MB (created by  Adrian mfs >> script, named /tmp/mfsroot). >> mkfwimage raports  combined image filesize 19MB (i added little printing >> statement in create_image_layout, before if (filelength(rootfsfile) + >> kernel->partition_length > p->firmware_max_length) ). >> What is needed to make system smaller? Sources are 8. june CURRENT, >> kernel >> options MD_ROOT_SIZE=8192 >> >> Any pointers or questions are welcomed, >> >> Ain >> >> _______________________________________________ >> freebsd-mips@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-mips >> To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" >> >