From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] tools: fix FIT image with ramdisk
Date: Fri, 12 Jul 2013 15:20:40 +0200 [thread overview]
Message-ID: <20130712152040.716d3679@lilith> (raw)
In-Reply-To: <1373634563-9446-1-git-send-email-sbabic@denx.de>
Hi Stefano,
On Fri, 12 Jul 2013 15:09:23 +0200, Stefano Babic <sbabic@denx.de>
wrote:
> Booting a FIT image containing a ramdisk,
> the ramdisk is loaded at address 0x0 that causes
> bus errors for architectures that do not have
> RAM starting at address zero.
Kind-of-minor nitpick: ARMs which have RAM at address 0 might well have
their exception tables there too (and will if they don't right now),
which makes it always bad to to load anything there anyway.
Properly major nitpick: the commit message explains what needed fixing,
but neither the commit message nor the code (to an admittedly completely
unFIT reader) explain *how* exactly it was fixed.
> Signed-off-by: Stefano Babic <sbabic@denx.de>
>
> ---
> common/image.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/common/image.c b/common/image.c
> index 1be384f..08f712a 100644
> --- a/common/image.c
> +++ b/common/image.c
> @@ -910,7 +910,7 @@ int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images,
> fit_uname_config, arch,
> IH_TYPE_RAMDISK,
> BOOTSTAGE_ID_FIT_RD_START,
> - FIT_LOAD_REQUIRED, &rd_data, &rd_len);
> + FIT_LOAD_IGNORED, &rd_data, &rd_len);
> if (rd_noffset < 0)
> return 1;
>
Amicalement,
--
Albert.
next prev parent reply other threads:[~2013-07-12 13:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-12 13:09 [U-Boot] [PATCH] tools: fix FIT image with ramdisk Stefano Babic
2013-07-12 13:20 ` Albert ARIBAUD [this message]
2013-07-12 21:24 ` Tom Rini
2013-07-13 7:17 ` Albert ARIBAUD
2013-07-13 9:33 ` Stefano Babic
2013-07-13 11:21 ` Wolfgang Denk
2013-07-13 20:02 ` Tom Rini
2013-07-14 2:26 ` Stephen Warren
2013-07-14 2:55 ` Tom Rini
2013-07-20 22:06 ` Simon Glass
2013-07-20 22:38 ` Tom Rini
2013-07-20 23:29 ` Simon Glass
2013-07-20 23:36 ` Tom Rini
2013-08-13 13:53 ` Tom Rini
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=20130712152040.716d3679@lilith \
--to=albert.u.boot@aribaud.net \
--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