From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] cmd_bootm.c: Correct BOOTM_ERR_OVERLAP handling
Date: Tue, 02 Jul 2013 12:49:51 +0200 [thread overview]
Message-ID: <51D2B04F.5090003@gmail.com> (raw)
In-Reply-To: <CAPnjgZ1KjiejPm+e_ikC0tM0_5jNbuREuJy9ZG_gTadWGfz7kw@mail.gmail.com>
Hi all,
On 06/28/2013 11:41 PM, Simon Glass wrote:
> Hi Tom,
>
> On Fri, Jun 28, 2013 at 1:25 PM, Tom Rini <trini@ti.com> wrote:
<snip>
>> @@ -660,34 +680,25 @@ static int do_bootm_states(cmd_tbl_t *cmdtp, int
>> flag, int argc,
>> }
>> #endif
>> /* Now run the OS! We hope this doesn't return */
>> - if (!ret && (states & BOOTM_STATE_OS_GO))
>> + if (!ret && (states & BOOTM_STATE_OS_GO)) {
>> ret = boot_selected_os(argc, argv, BOOTM_STATE_OS_GO,
>> images, boot_fn, &iflag);
>> + if (ret)
>> + goto err;
>> + }
>> +
>> + return ret;
>>
>
> Thanks for getting to the bottom of this.
>
> Just a question here - should this fall through to display the error with
> the code below? For example if the subcommand is not supported...
as pointed out by Simon the error message 'subcommand not supported'
disappears with this patch. On avr32 this means currently:
---8<---
## Booting kernel from Legacy Image@10400000 ...
Image Name: Linux-3.6.2
Image Type: AVR32 Linux Kernel Image (gzip compressed)
Data Size: 1846216 Bytes = 1.8 MiB
Load Address: 10000000
Entry Point: 90000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
U-Boot>
--->8---
Before it was at least:
---8<---
## Booting kernel from Legacy Image@10400000 ...
Image Name: Linux-3.6.2
Image Type: AVR32 Linux Kernel Image (gzip compressed)
Data Size: 1846216 Bytes = 1.8 MiB
Load Address: 10000000
Entry Point: 90000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
subcommand not supported
U-Boot>
--->8---
Who will fix that? I'll have a look for the avr32 specific part.
Regards
Andreas Bie?mann
next prev parent reply other threads:[~2013-07-02 10:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-28 18:21 [U-Boot] [PATCH] cmd_bootm.c: Correct BOOTM_ERR_OVERLAP handling Tom Rini
2013-06-28 20:25 ` [U-Boot] [PATCH v2] " Tom Rini
2013-06-28 21:41 ` Simon Glass
2013-06-28 22:07 ` Tom Rini
2013-06-28 23:59 ` Simon Glass
2013-07-02 10:49 ` Andreas Bießmann [this message]
2013-07-02 12:35 ` Tom Rini
2013-07-02 12:58 ` Andreas Bießmann
2013-07-02 13:01 ` 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=51D2B04F.5090003@gmail.com \
--to=andreas.devel@googlemail.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