From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 6/17] Reorganize and fix problems (returns) in the bootm command.
Date: Thu, 05 Jul 2007 10:30:37 -0400 [thread overview]
Message-ID: <468D008D.9030901@smiths-aerospace.com> (raw)
In-Reply-To: <fa686aa40707050713y2a4301a6y9e31156f812c54fb@mail.gmail.com>
Grant Likely wrote:
> On 7/5/07, Jerry Van Baren <gvb.uboot@gmail.com> wrote:
>> Grant Likely wrote:
>>> On 7/4/07, Jerry Van Baren <gvb.uboot@gmail.com> wrote:
>>>> Do *NOT* return after the "point of no return" has been passed.
>>>> If something goes wrong, the board must be reset after that point.
>>>> Move the "Transferring control to Linux" debug message back to where it
>>>> belongs: just before transferring control to linux.
>>> Why is it necessary to reset the board at this point? The failure
>>> paths here seem to be things like invalid checksums and the like. Why
>>> are these tests after a point of no return?
>>>
>>> I would think that if any of these failures are hit, you would *not*
>>> want to reset the board so you can figure out what was going on.
>>>
>>> Cheers,
>>> g.
>> We've smashed our underpinnings by uncompressing linux over our
>> interrupt vectors before the checksum catches the problem. There is no
>> way back other than a reset. The error I fixed (in a couple of places)
>> was returns. FWIIW, my experience with the erroneous returns is that it
>> sort of works, but not right and then funky stuff happens. :-/
>>
>> I presume the comment was a general one. If you have any specific reset
>> vs. return questions, hollar and I'll justify them or eat crow.
>
> Ah, okay that makes sense. So the obvious next question is: can any
> of those tests be performed before uncompressing Linux? If so, then
> they probably should be moved. If not...
>
> Acked-by: Grant Likely <grant.likely@secretlab.ca>
Sorry, no. The CRC is over the uncompressed data, and for good reason -
it will detect if Something Bad[tm] happened during the decompression.
The good news is, the reset-to-recover path /should/ never be taken.
gvb
next prev parent reply other threads:[~2007-07-05 14:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-05 1:15 [U-Boot-Users] [PATCH 6/17] Reorganize and fix problems (returns) in the bootm command Jerry Van Baren
2007-07-05 2:43 ` Grant Likely
2007-07-05 10:54 ` Jerry Van Baren
2007-07-05 14:13 ` Grant Likely
2007-07-05 14:30 ` Jerry Van Baren [this message]
2007-07-05 19:36 ` Wolfgang Denk
2007-07-05 15:29 ` Timur Tabi
2007-07-05 15:33 ` Jerry Van Baren
2007-07-05 19:38 ` Wolfgang Denk
2007-07-05 23:46 ` Jerry Van Baren
2007-07-06 2:25 ` Timur Tabi
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=468D008D.9030901@smiths-aerospace.com \
--to=gerald.vanbaren@smiths-aerospace.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