Re: The end of embedded Linux?

From: Jan-Benedict Glaw (jbglaw@lug-owl.de)
Date: Mon Oct 07 2002 - 04:10:21 EST


On Sat, 2002-10-05 12:36:50 -0700, Gigi Duru <giduru@yahoo.com>
wrote in message <20021005193650.17795.qmail@web13202.mail.yahoo.com>:
> Trivial experiment: configure out _ALL_ the options on
> 2.5.38 and build bzImage. My result? A totally useless
> 270KB kernel (compressed).

Well, from time to time, there are patches/suggestions on how to get the
footprint smaller. If you do embedded work, you're oftenly not
interestes in all the kernel's printk() messages. I have sent around
some patch some time ago which (in kernel.h) simply #define's a printk
to do nothing. Then, rename original printk() to your_real_printk() and
convert _really_ important printk() calls to your_real_printk(), eg.
Oops messages:-)

On a small kernel, you can save 50..100 KB (in the bzImage)! That's a
lot; think about uncompressed size!

And - there are other options as well. Just _look_ at the code, _think_
about it and (possibly) _change_ it if needed (and publish the changes
so that they're available to others).

MfG, JBG

-- 
   - Eine Freie Meinung in einem Freien Kopf für
   - einen Freien Staat voll Freier Bürger
   						Gegen Zensur im Internet
Jan-Benedict Glaw   .   jbglaw@lug-owl.de   .   +49-172-7608481
	 -- New APT-Proxy written in shell script --
	   http://lug-owl.de/~jbglaw/software/ap2/


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:57 EST