[U-Boot] How to reduce size of U-Boot image (i.MX31, NAND-Flash)

Wolfgang Denk wd at denx.de
Sun Jul 19 19:16:10 CEST 2009


Dear "Ulrich Gerster",

In message <4A63456C0200004D00014D4A at hochblauen.ba-loerrach.de> you wrote:
> 
> I'm trying to optimize the u-boot image I get after compiling. It's size is 13XkB depending on the features I define. I'm using a i.MX31 processor and only NAND-Flash. I think it should be possible to get a smaller Image.

Your lines are way too long. Please restrict your line length to some
70 characters or so.

Some 130 KiB are pretty normal (and actually even small) for a
current version of U-Boot.

> Are there some common tricks, or do you have some suggestions how to reduce the size of u-boot?

Undefine features you don't need to get any significant savings,  and
use a more recent tool chain version to get the last few percent.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You can do this in a number of ways.     IBM chose to do all of them.
Why do you find that funny?        -- D. Taylor, Computer Science 350


More information about the U-Boot mailing list