[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: busybox still too bloated



Erik Andersen <andersen@codepoet.org> writes:
> I suspect that all of the following could probably be eliminated: ar, date,
> echo, env, expr, gzip, halt, lsmod, poweroff, wc, which, whoami.  
>
> A quick check shows that disabling just , ar + date + echo + env + expr + gzip
> + lsmod adds up to 21k (x86).

You are talking about reducing out of busybox?  We'd have to make sure
all the install.sh and the pcmcia stuff doesn't use this before we can
be certain it is not needed..

> Hmm.  I just noticed...  It looks like we do not use busybox
> ifconfig or busybox route on the boot floppies.  We could save quite
> a bit of space that way.
> 
> $ du -hc /sbin/ifconfig /sbin/route            
> 56k     /sbin/ifconfig
> 44k     /sbin/route
> 100k    total
> 
> By way of comparision, a full featured busybox ifconfig + route cost
> just 12k, thereby saving us 88k (x86).

Wow.  Last I heard, though, this didn't work too well on non-x86
arches?  Is that not true?  Is it mature now?

This sort of this is how we should go about it.

Also, what about busybox ash?  Is that mature enough to use instead of
the proper ash package?  Or did it have some problems?

> Then if we switch to using
> udhcp, we could save another 88k over dhcp-client.

Yah.  I built an i386 version.  I will try out using this as a
replacement as well.

-- 
...Adam Di Carlo..<adam@onshore-devel.com>...<URL:http://www.onshored.com/>



Reply to: