From owner-freebsd-mips@FreeBSD.ORG Fri Jun 11 13:24:39 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 EC1A2106566C for ; Fri, 11 Jun 2010 13:24:39 +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 21D0B8FC12 for ; Fri, 11 Jun 2010 13:24:38 +0000 (UTC) Received: by fiona.equix.ee (Postfix, from userid 2500) id 47BEE26F94B; Fri, 11 Jun 2010 16:07:31 +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.0 required=5.0 tests=none autolearn=disabled version=3.2.5 Received: from webmail.equix.ee (localhost [188.92.161.31]) by fiona.equix.ee (Postfix) with ESMTP id 508C526F949 for ; Fri, 11 Jun 2010 16:07:28 +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 16:07:28 +0300 Message-ID: <9c83a480a3f456a711411e7b458fdd41.squirrel@webmail.equix.ee> Date: Fri, 11 Jun 2010 16:07:28 +0300 From: "Ain" To: freebsd-mips@freebsd.org 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 Subject: 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 13:24:40 -0000 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