public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [rfc] warning about overlapping regions when booting with bootm
Date: Sat, 16 Feb 2008 18:19:21 -0500	[thread overview]
Message-ID: <200802161819.22422.vapier@gentoo.org> (raw)
In-Reply-To: <20080216230600.1BFCA24D10@gemini.denx.de>

On Saturday 16 February 2008, Wolfgang Denk wrote:
> In message <200802160259.32371.vapier@gentoo.org> you wrote:
> > we semi-frequently get users who try to boot an image on top of itself
> > and when when things crash, dont realize why.  i put together this quick
> > little warning, but i'm guessing that Wolfgang's answer is "don't bloat
> > the code for stupid people" ...
>
> Indeed I reject the patch as is, but not because I think it would be
> not useful, but rather because it is IMHO not correct.
>
> The thing is that images *may* overlap, at least a bit. When the  de-
> compressor is running, it starts from the beginning of the compressed
> image  and progrsses towards the end. The already preocessed parts of
> the image are not neede dany longer - if they later  get  overwritten
> by  umcompressed  code  this does no hard. Problems arise only if the
> write pointer catches up with the read pointer.

right ... it isnt a big deal for us on Blackfin as people tend to have a ton 
of RAM compared to many boards, so the decompression areas need not overlap.

> Unfortunaltely I don't know of an  intelligent  way  to  handle  this
> situation.  I  think  I  remember that RMK claims that the ARM kernel
> uncompressor was really clever in this respect, but never found  time
> to check it.

it'd be better moved to the actual decompression routines rather than top of 
bootm.  and either check it before decompressing each chunk, or have a good 
heuristic to estimate things ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20080216/538eb9c7/attachment.pgp 

  reply	other threads:[~2008-02-16 23:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-16  7:59 [U-Boot-Users] [rfc] warning about overlapping regions when booting with bootm Mike Frysinger
2008-02-16 23:06 ` Wolfgang Denk
2008-02-16 23:19   ` Mike Frysinger [this message]
2008-02-17 20:29   ` [U-Boot-Users] [rfc] warning about overlapping regions whenbooting " Robin Getz
2008-02-17 22:09     ` Wolfgang Denk
2008-02-17 22:55       ` Robin Getz
2008-02-22 17:49       ` Marian Balakowicz

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=200802161819.22422.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox