From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luigi 'Comio' Mantellini Date: Fri, 28 Mar 2008 19:06:00 +0100 Subject: [U-Boot-Users] LZMA support (patch) In-Reply-To: <47ED2B8F.3020002@ge.com> References: <1206718963.23627.16.camel@localhost> <1206724722.23627.28.camel@localhost> <47ED2B8F.3020002@ge.com> Message-ID: <1206727560.23627.41.camel@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jerry, see inline comments. On ven, 2008-03-28 at 13:31 -0400, Jerry Van Baren wrote: > Luigi 'Comio' Mantellini wrote: > > Hi everyone, > > > > this patch adds the lzma support with the following constraints: > > > > - it doesn't install the LZMA SDK files. I provide the import_lzma.sh > > script to import the needs file from a lzma sdk release > > - the imported lzma sdk files are _not touched_ > > - the lzma support is enabled defining the CONFIG_LZMA define > > - I haven't tested this patch > > - ?Use this patch at your own risk > > > > The patch creates: > > > > - the lib_lzma directory with the import_lzmasdk.sh script and a simple > > front-end to LzmaDecode() fuction > > - the include/lzma directory with some include files to use in the > > U-Boot code > > > > modifies: > > > > - common/do_bootm.c file > > - common/image.c file > > - include/image.h file > > > > Please read the lib_lzma/README.txt file. > > > > Luigi > > Hi Luigi, > > I have a stupid question in return: why do we want lzma (7zip) added to > u-boot? The linux/uboot world is dominated by gzip. I realize 7zip has > advantages over gzip albeit incremental, not revolutionary IIRC. > LZMA usually performs better than gzip in terms compression ratio. My application has a small flash memory and I need to keep two (2) kernel images... >From these observations born my need to save as much memory as possible. Best regards, luigi > I am not aware of proposals or implementations of kernels compressed > with lzma (could well be my ignorance). Adding more code for minimal > benefits is a hard sell (we already have plenty of bloat :-O). > > Best regards, > gvb -- ______ 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