On Wed, Apr 02, 2008 at 10:56:34PM -0400, Joey Hess wrote: > Joey Hess wrote: > > Dropping klibc sh and rewriting init as a custom klibc executable would > > probably save about 25kb.. > > Done, new C init is about 3kb, and once klibc sh, mkdir, and mknod are > removed and a kernel with modular ext2 used, and all the syslinux help > screens dropped, it fits. Barely. Less than 1k free.. :-/ > > A few things can still be done to reduce size. Embedding mount, umount, > cat, gunzip, and cpio code in the init binary and statically linking it > to klibc would probably save 30 kb or so. (This would also allow upxing > init.)
I have not done much research yet, but would another compression algorithm than gzip be an option? I know that people from the OpenWRT project are using kernel compressed with LZMA, as you can see in the wl500g loader [1]. Now that init has now been rewritten in C, it might also be easier to switch to another decompression engine. That would probably help us to make a little more room for the next kernel size increase… Any comments? [1] http://wl500g.dyndns.org/loader/ Cheers, -- Jérémy Bobbio .''`. [EMAIL PROTECTED] : :Ⓐ : # apt-get install anarchism `. `'` `-
signature.asc
Description: Digital signature