From: Marian Balakowicz <m8@semihalf.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [rfc] warning about overlapping regions whenbooting with bootm
Date: Fri, 22 Feb 2008 18:49:39 +0100 [thread overview]
Message-ID: <47BF0B33.5000403@semihalf.com> (raw)
In-Reply-To: <20080217220908.CC54924544@gemini.denx.de>
Wolfgang Denk wrote:
> In message <200802171529.23434.rgetz@blackfin.uclinux.org> you wrote:
>> I always thought that when decompressing a uImage, that the entry point was
>> stored in the header, (at the beginning of the file) and was read after the
>> decompression took place - is that wrong?
>
> I'm not sure what all the different architectures do, but at least
> for PowerPC, ARM and MIPS I know that one of the very first things we
> do in the bootm code is to create a local copy of the image header.
The image header copy is created but its not always properly used,
do_bootm_netbsd() and do_bootm_linux() for AVR32 and I386 are the
examples where we access image location directly instead of the header
copy. This might be fixed, but other, serious problem is concerning
MULTI images, where we need to access second or third component. If the
original image gets overwritten with the uncompressed kernel u-boot will
not be able read len_ptr[] table and access components.
New uImage format is even more demanding. As there is no such thing as
image header (data is spread across the new uImage blob as a various
properties) we are unable to create a header copy, thus we may not
accept image overwrites.
I have already posted a patch that adds overwrite checks, see:
http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot/u-boot-testing.git;a=commit;h=7582438c285bf0cef82909d0f232de64ec567a8a
Overwrite checking is done in bootm code as we may be using gunzip,
bunzip or no compression and need to handle all the cases.
Cheers,
m.
prev parent reply other threads:[~2008-02-22 17:49 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
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 [this message]
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=47BF0B33.5000403@semihalf.com \
--to=m8@semihalf.com \
--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