Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jun 2010 17:02:59 +0300
From:      "Ain" <freebsd@luftivennad.com>
To:        "Adrian Chadd" <adrian@freebsd.org>
Cc:        freebsd-mips@freebsd.org
Subject:   Re: Building image for Routerstation Pro
Message-ID:  <6d625a568cdee81a51c155bbae240244.squirrel@webmail.equix.ee>
In-Reply-To: <AANLkTimh9nAVBO69NFOvsYaa_T-JH8zb32cmBeR3_86e@mail.gmail.com>
References:  <9c83a480a3f456a711411e7b458fdd41.squirrel@webmail.equix.ee> <AANLkTimh9nAVBO69NFOvsYaa_T-JH8zb32cmBeR3_86e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <freebsd@luftivennad.com> 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"
>>
>





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6d625a568cdee81a51c155bbae240244.squirrel>