[oe] getting back to < 2MB rootfs with mtd-utils

Phil Blundell philb at gnu.org
Sun Aug 30 18:56:15 UTC 2009


On Sat, 2009-08-29 at 16:51 -0400, Cliff Brake wrote:
> micro-base-image is currently 1.6MB for cpio.gz, which is much larger
> than the 1MB uclibc images I built about a year ago, but that would be
> acceptable.
> 
> However, adding mtd-utils to the image which I need for system update
> functionality bloats it up to 4MB.

Per our conversation on IRC yesterday, I built a micro-base-image for
micro-uclibc, with mtd-utils added and dropbear removed, and it comes
out as:

-rw-r--r-- 1 pb pb  964394 2009-08-30 19:51 tmp/deploy/images/nslu2be/micro-micro-base-image-uclibc-ipk-20090830-nslu2be.rootfs.tar.gz

Without mtd-utils I get:

-rw-r--r-- 1 pb pb 550078 2009-08-30 19:53 tmp/deploy/images/nslu2be/micro-micro-base-image-uclibc-ipk-20090830-nslu2be.rootfs.tar.gz

... so, it does appear that mtd-utils adds a non-trivial amount of bloat, though nowhere near the amount you seem to be suffering.

Looking at the contents of mtd-utils itself, it seems that you would
probably benefit from breaking that one package up into multiple
subpackages for different binaries.  It currently contains more than 40
separate executables, most of which are probably unnecessary in any
given system.

p.






More information about the Openembedded-devel mailing list