[U-Boot] [RFC 0/2] Add support for bootstrap stage and compressed U-Boot image

Luigi 'Comio' Mantellini luigi.mantellini at idf-hit.com
Tue Nov 30 15:35:05 CET 2010


Look the following benchmark (qemu-mips board):

U-Boot Vanilla
179600 bytes u-boot.bin

Bootstrap code w/o compresion (memcpy)
189224 bytes u-boot-bootstrap.bin
--> size 105%

Bootstrap code using BZIP2 compression
114388 bytes u-boot-bootstrap.bin
-->size 64%

Bootstrap code using GZIP compression
114204 bytes u-boot-bootstrap.bin
-->size 64%

Bootstrap code using LZMA compression
89456 bytes u-boot-bootstrap.bin
-->size 50% <-- BEST

Bootstrap code using LZO compression
104388 bytes u-boot-bootstrap.bin
-->size 58%

ciao ciao

luigi

martedì 30 novembre 2010 11:30 luigi.mantellini at idf-hit.com ha scritto:
> From: Luigi 'Comio' Mantellini <luigi.mantellini at idf-hit.com>
> 
> Hi All,
> 
> The following patches introduce the bootstrap support that enable to have a
> compressed U-Boot image. The bootstrap code supports the uncompressed as
> well as compressed payloads, using LZMA, GZIP, BZIP2 and LZO.
> 
> Actually I developed just the mips version (using qemu-mips board)...
> 
> Please see the Patch #1 for the required defines to enable the required
> features.
> 
> Of course, any suggestion is welcome.
> 
> ciao
> 
> luigi
> 
> Luigi 'Comio' Mantellini (2):
>   Add support for bootstrap stage that allows to have a compressed
>     U-Boot image.     The final image will named "u-boot-bootstrap".
>   Add support for bootstrap stage to QEMU-MIPS board.
> 
>  .gitignore                            |   24 ++-
>  Makefile                              |  172 ++++++++++++-
>  arch/mips/config.mk                   |    2 +-
>  arch/mips/cpu/Makefile                |   28 ++-
>  arch/mips/cpu/cpu.c                   |   12 -
>  arch/mips/cpu/reset.c                 |   39 +++
>  arch/mips/cpu/reset_bootstrap.c       |   39 +++
>  arch/mips/cpu/start_bootstrap.S       |  452
> +++++++++++++++++++++++++++++++++ arch/mips/lib/Makefile                | 
>  15 +-
>  arch/mips/lib/board_bootstrap.c       |  261 +++++++++++++++++++
>  board/qemu-mips/Makefile              |   15 +-
>  board/qemu-mips/config.mk             |    7 +-
>  board/qemu-mips/qemu-mips_bootstrap.c |   48 ++++
>  board/qemu-mips/u-boot-bootstrap.lds  |   73 ++++++
>  common/Makefile                       |   15 +-
>  common/console_bootstrap.c            |   85 ++++++
>  config.mk                             |   19 ++-
>  include/common.h                      |   21 ++
>  include/configs/qemu-mips.h           |   14 +-
>  lib/Makefile                          |   28 ++-
>  lib/bootstrap.c                       |   89 +++++++
>  lib/lzma/Makefile                     |    4 +-
>  lib/lzo/Makefile                      |    4 +-
>  23 files changed, 1434 insertions(+), 32 deletions(-)
>  create mode 100644 arch/mips/cpu/reset.c
>  create mode 100644 arch/mips/cpu/reset_bootstrap.c
>  create mode 100644 arch/mips/cpu/start_bootstrap.S
>  create mode 100644 arch/mips/lib/board_bootstrap.c
>  create mode 100644 board/qemu-mips/qemu-mips_bootstrap.c
>  create mode 100644 board/qemu-mips/u-boot-bootstrap.lds
>  create mode 100644 common/console_bootstrap.c
>  create mode 100644 lib/bootstrap.c

-- 


Luigi 'Comio' Mantellini
R&D - Software

Industrie Dial Face S.p.A.
Via Canzo, 4
20068 Peschiera Borromeo (MI) Italy
Tel.: +39 02 5167 2813
Fax: +39 02 5167 2459 
E-mail: luigi.mantellini at idf-hit.com 
Website: http://www.idf-hit.com


Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle 
persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla 
conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate 
ricevuto questo documento per errore siete cortesemente pregati di darne 
immediata comunicazione al mittente e di provvedere alla sua distruzione, 
Grazie.

Rispetta l'ambiente. Non stampare questa mail se non è realmente necessario.

This e-mail and any attachments is confidential and may contain privileged 
information intended for the addressee(s) only. Dissemination, copying, 
printing or use by anybody else is unauthorized. If you are not the intended 
recipient, please delete this message and any attachments and advise the 
sender by return e-mail, Thanks.

Help the environment. Please do not print this email unless it is absolutely 
necessary.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 8938 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101130/099b9c81/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101130/099b9c81/attachment.pgp 


More information about the U-Boot mailing list