All of lore.kernel.org
 help / color / mirror / Atom feed
From: rhabarber1848 <rhabarber1848@web.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Refresh LZMA-lib to 4.65
Date: Wed, 15 Jul 2009 16:35:56 +0200	[thread overview]
Message-ID: <h3kpg6$r7h$1@ger.gmane.org> (raw)
In-Reply-To: 1246985548-24183-1-git-send-email-luigi.mantellini.ml@gmail.com

Luigi 'Comio' Mantellini wrote:

> ---
>  common/cmd_bootm.c                 |    5 +-
>  include/lzma/LzmaDec.h             |   31 +
>  include/lzma/LzmaDecode.h          |   31 -
>  include/lzma/LzmaTools.h           |    2 +-
>  include/lzma/LzmaTypes.h           |   15 +-
>  lib_generic/lzma/LGPL.txt          |  502 --------------
>  lib_generic/lzma/LzmaDec.c         | 1007 +++++++++++++++++++++++++++++

Hi,

I tried your code and it could decompress a LZMA-compressed kernel, very
nice. I had to add some WATCHDOG_RESET() calls to LzmaDec.c because my
device has a slow mpc823 CPU.
However booting does not continue and I do not know why.

> Un-Protected 63 sectors
> ## Booting kernel from Legacy Image at 00500000 ...
>    Image Name:   Linux LZMA
>    Image Type:   PowerPC Linux Kernel Image (lzma compressed)
>    Data Size:    589824 Bytes = 576 kB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
>    Uncompressing Kernel Image ... OK
> ERROR: Failed to allocate 0x200 bytes below 0x800000.
> ERROR with allocation of cmdline

After this the device reboots.

Attached you will find the config used to compile U-Boot.
I started with CONFIG_SYS_LOAD_ADDR 0x200000 and increased it to 0x500000,
but it did not help. I suppose decompressing a LZMA-compressed kernel takes
more RAM, my box has 64MB which I think should be enough. The decompression
should work with 32MB RAM as well as this is the standard amount.

I am not an expert when it comes to handling a Linux kernel at boot time so
pointing to lots of howto's is appreciated ;)

Cheers, rhabarber1848

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbox2.h
Type: text/x-objchdr
Size: 19996 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090715/d8fb1599/attachment.bin 

  parent reply	other threads:[~2009-07-15 14:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-07 16:52 [U-Boot] [PATCH] Refresh LZMA-lib to 4.65 Luigi 'Comio' Mantellini
     [not found] ` <h3kpg6$1@ger.gmane.org>
     [not found]   ` <h3kq0c$2@ger.gmane.org>
2009-07-08 11:07 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-15 14:35 ` rhabarber1848 [this message]
2009-07-15 14:44   ` rhabarber1848
2009-07-15 16:33     ` rhabarber1848
2009-07-16 21:11       ` Wolfgang Denk
2009-07-17  6:59         ` rhabarber1848
2009-07-17 10:31           ` Wolfgang Denk
2009-07-17 11:47             ` rhabarber1848
2009-07-17 12:17               ` Wolfgang Denk
     [not found]             ` <h3pocf$1@ger.gmane.org>
2009-07-17 12:26               ` Alessandro Rubini
2009-07-20 21:46 ` Wolfgang Denk
2009-07-21  8:52   ` Luigi 'Comio' Mantellini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h3kpg6$r7h$1@ger.gmane.org' \
    --to=rhabarber1848@web.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.