Skip to contentSkip to conversation

help - u-boot header & compression

U-Boot-Users Luigi 'Comio' Mantellini 1 participant 2 messages Apr 2, 2008 – Apr 3, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Avinash,

see inline.

Il giorno mer, 02/04/2008 alle 14.26 -0700, Avinash Vijayvergia ha scritto:

Quoted 8 lines

Hi LuigI

Thank you for your mail. I actually have two questions:
1. What is the format of u-boot header? Can you refer me to some documentation?

What do you intend for "u-boot header"? U-boot uses the uImage format for the kernels images. You can check the file include/image.h (row 175) to understand the (old) uImage format. See this link:
http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=blob;f=include/image.h;h=36143e25acfe3684a751a4ee6a5cf945524ef424;hb=74d1e66d22dac91388bc538b2fe19f735edc5b82

Quoted 6 lines

1. I want to compress u-boot. I have picked up nrv2b.c from Koders.com which is in use by many people :). I couldn't understand how it does encoding and decoding. I wanted to use this algo and do compression and decompression of my binaries. You can search google for nrv2b.c and you will get it from Koder.com.

U-boot is the object code, the bootloader... how can you compress it? it is a non-sense for me. Anyway, if you need to compress the kernel image, you need to use the uImage format and the utility mkimage (see tools directory). I recently posted a patch to support the lzma compression algorithm (that works better than bzip2 and gzip): you can search in the mailing list archive to retrieve this patch.

Are you sure that nrv2b is better than powerful lzma or bzip2? Do you have benchmarks on this point? If you demonstrate me that nrv2b is a good choice I can consider to make the patch for the community... I have an application that has a very small flash memory... nrv2b should be a choice...

Best regards,

luigi

Quoted 66 lines

Thanks for your help
Avinash

----- Original Message ----
From: Luigi 'Comio' Mantellini <[email protected]>
To: Avinash Vijayvergia <[email protected]>
Cc: u-boot-users at lists.sourceforge.net
Sent: Wednesday, April 2, 2008 2:19:36 PM
Subject: Re: [U-Boot-Users] help - u-boot header & compression

Hi Avinash,

I'm not undestanding if you want compress the U-Boot code or if you want compress the uImage image.
Anyway, I don't know the nrv2b algorithm, can you give me any links?

thanks,

luigi

Il giorno mer, 02/04/2008 alle 13.54 -0700, Avinash Vijayvergia ha scritto:

Quoted 17 lines

Hi All

I am working on AT91SAM9260 ARM9 core. I have very small flash memory and hence need to compress the u-boot. I have picked nrv2b algo for that. Can someone suggest me how to put the compression info in the u-boot header. I want to know the details of u-boot header too.

Thanks
Avinash

____________________________________________________________________

You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.

Quoted 6 lines

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ U-Boot-Users mailing list U-Boot-Users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

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

Quoted 3 lines

______________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080402/43e1520a/attachment.htm

#2 lore raw
In reply to a message not in the archive

Hi Avinash,

You should check the nand_spl and openand_ipl directories to see examples how to start u-boot from a not bootable memory (like nand).

Best regards,

luigi

Quoted 74 lines · Avinash Vijayvergia

Hi Luig

Thank you for your mail. I actually have two questions:
1. What is the format of u-boot header? Can you refer me to some documentation?
2. I want to compress u-boot. I have picked up nrv2b.c from Koders.com which is in use by many people :). I couldn't understand how it does encoding and decoding. I wanted to use this algo and do compression and decompression of my binaries. You can search google for nrv2b.c and you will get it from Koder.com.
Thanks for your help
Avinash

----- Original Message ----
From: Luigi 'Comio' Mantellini <[email protected]>
To: Avinash Vijayvergia <[email protected]>
Cc: u-boot-users at lists.sourceforge.net
Sent: Wednesday, April 2, 2008 2:19:36 PM
Subject: Re: [U-Boot-Users] help - u-boot header & compression

Hi Avinash,

I'm not undestanding if you want compress the U-Boot code or if you want compress the uImage image.
Anyway, I don't know the nrv2b algorithm, can you give me any links?

thanks,

luigi

Il giorno mer, 02/04/2008 alle 13.54 -0700, Avinash Vijayvergia ha scritto:

Quoted 14 lines

Hi All

I am working on AT91SAM9260 ARM9 core. I have very small flash memory and hence need to compress the u-boot. I have picked nrv2b algo for that. Can someone suggest me how to put the compression info in the u-boot header. I want to know the details of u-boot header too.

Thanks
Avinash

____________________________________________________________________

Quoted 8 lines

You rock. That's why Blockbuster's offering you one month of
Blockbuster Total Access, No Cost.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ U-Boot-Users mailing list U-Boot-Users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

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

______________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.

Signature · 10 lines
     ______       Luigi 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
Ind.  Dial Face   Email: luigi.mantellini at idf-hit.com
www.idf-hit.com   GPG fingerprint: 3DD1 7B71 FBDF 6376 1B4A
                                   B003 175F E979 907E 1650