[U-Boot] [PATCH 2/3] mpc85xx: Add a board-specific restart hook

Mike Frysinger vapier at gentoo.org
Wed Oct 19 23:55:19 CEST 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111019/3a76bd69/attachment.pgp 


More information about the U-Boot mailing list