[U-Boot] [U-boot] failed to boot an compressed u-boot.bin

Wolfgang Denk wd at denx.de
Thu Jul 18 14:50:41 CEST 2013


Dear TigerLiu at viatech.com.cn,

In message <FE7ADED5C2218B4786C09CD97DC4C49F99D600 at exchbj02.viatech.com.bj> you wrote:
>
> >Yes, that would be the U-Boot way to implement it. It allows you to
> >reusse existing code instead of adding new methods.
> 
> So, is there any example SPL code which contains uncompressed algorithm
> code?

No, none thaty I am aware of.

Note that usually this makes little sense.  Using a compressed U-Boot
image can have two effects:

- saving some memory on the boot device; usually reacent hardware has
  ample resources, so saving 100...200 kB is typically not important
  enough to add such complexity.
- saving time when loading the U-Boot image from the boot device *at
  the cost of adding time needed to uncompress it).  If you ant to
  reduce boot time, it is more efficient to use Falcon mode and skip
  loading U-Boot completely when running in production mode.

So there is actually little motivation to implement such a feature -
but your milage may vary, or you may have specific requrements where
it actually makes sense.

Patches welcome.

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
The computer can't tell you the emotional story. It can give you  the
exact mathematical design, but what's missing is the eyebrows.
- Frank Zappa


More information about the U-Boot mailing list