How would i go about halting u-boot, one on my requirement is to stop the board from booting if one of the POST test fails or anthor test fails.

The only thing that i could think of was setting ....

setenv("bootcmd", "");


But i think there is a better way. Any suggestions,


Pawel