Thanks Denk,<br><br>This what i was looking for.....<br><br>Thanks,<br>Pawel<br><br><div class="gmail_quote">On Fri, Feb 22, 2008 at 10:53 AM, Wolfgang Denk <<a href="mailto:wd@denx.de">wd@denx.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">In message <<a href="mailto:8ff29df80802220653u7af49b35sf2d437baa4afa461@mail.gmail.com">8ff29df80802220653u7af49b35sf2d437baa4afa461@mail.gmail.com</a>> you wrote:<br>
><br>
> How would i go about halting u-boot, one on my requirement is to stop the<br>
> board from booting if one of the POST test fails or anthor test fails.<br>
<br>
</div>That's what we call a "critical POST failure".<br>
<div class="Ih2E3d"><br>
> The only thing that i could think of was setting ....<br>
><br>
> setenv("bootcmd", "");<br>
><br>
> But i think there is a better way. Any suggestions,<br>
<br>
</div>What you want is this commit:<br>
<br>
8a484d2b87067bfbf83583606600486ff4b4f0a2<br>
<br>
The patch introduces the CRITICAL feature of POST tests. If the test<br>
marked as POST_CRITICAL fails then the alternative, post_critical,<br>
boot-command is used. If this command is not defined then U-Boot<br>
enters into interactive mode.<br>
<br>
Signed-off-by: Dmitry Rakhchev <<a href="mailto:rda@emcraft.com">rda@emcraft.com</a>><br>
Signed-off-by: Yuri Tikhonov <<a href="mailto:yur@emcraft.com">yur@emcraft.com</a>><br>
<br>
You can find this in the lwmon5 branch of the U-Boot git repository<br>
where it is queued up ready for merge into mainline as soon as the<br>
next merge window opens again.<br>
<br>
Best regards,<br>
<br>
Wolfgang Denk<br>
<font color="#888888"><br>
--<br>
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel<br>
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany<br>
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: <a href="mailto:wd@denx.de">wd@denx.de</a><br>
Documentation is the castor oil of programming.<br>
Managers know it must be good because the programmers hate it so much.<br>
</font></blockquote></div><br>