
On Wednesday 19 October 2011 17:05:12 Moffett, Kyle D wrote:
On Oct 19, 2011, at 16:35, Wolfgang Denk wrote:
Moffett, Kyle D wrote:
Since "reset" is basically just like any other U-Boot shell command,
No, it ain't.
(except with some side-effects) it seems reasonable to allow a board handler to return an error instead of resetting.
No. Reset will never return. It is supposed to hard reset the board, which means crossing the point of no return.
Ok.
By that definition, my board cannot safely use U-Boot's "reset" command.
Would you accept a patch which makes it possible for a board to not implement a "reset" command at all?
There are a few places in common/cmd_bootm.c which are converted to use panic("...") instead of printf("...")+do_reset().
i guess i'm dumb, but i don't understand why it can't be made to work on your board. but worse comes to worse, you could have your board reset call hang() or panic() ... -mike