Building image for Routerstation Pro

Adrian Chadd adrian at freebsd.org
Fri Jun 11 13:40:06 UTC 2010


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 at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-mips
> To unsubscribe, send any mail to "freebsd-mips-unsubscribe at freebsd.org"
>


More information about the freebsd-mips mailing list