Date: Fri, 11 Jun 2010 21:40:04 +0800 From: Adrian Chadd <adrian@freebsd.org> To: Ain <freebsd@luftivennad.com> Cc: freebsd-mips@freebsd.org Subject: Re: Building image for Routerstation Pro Message-ID: <AANLkTimh9nAVBO69NFOvsYaa_T-JH8zb32cmBeR3_86e@mail.gmail.com> In-Reply-To: <9c83a480a3f456a711411e7b458fdd41.squirrel@webmail.equix.ee> References: <9c83a480a3f456a711411e7b458fdd41.squirrel@webmail.equix.ee>
next in thread | previous in thread | raw e-mail | index | archive | help
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 =A0mfs wri= tes > mdroot in kernel and then =A0mkfwimage (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 =A0temporary file system image size is 13-14 MB (created by =A0Adrian = mfs > script, named /tmp/mfsroot). > mkfwimage raports =A0combined image filesize 19MB (i added little printin= g > 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, kerne= l > options MD_ROOT_SIZE=3D8192 > > 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?AANLkTimh9nAVBO69NFOvsYaa_T-JH8zb32cmBeR3_86e>