Stop U-boot from booting [ Halt it ]
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080222/4464a0a1/attachment.htm
Hi,
Quoted 9 lines · Pawel Pastuszak
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,
I did not yet try it, but my idea to achieve this is to have bootcmd be a simple conditional chain containing all the tests and dependencies, in my case:
fpga loadmk 0 0x54000 && fpga loadmk 1 0x6c0000 && bootm 0x80000 || run_update
Again, this is just the idea I have for my own board, I did not yet try it! (run_update is what will be our firmware update function)
Regards,
Wolfgang
Quoted 3 lines · In message <[email protected]> you…
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.
That's what we call a "critical POST failure".
Quoted 5 lines
The only thing that i could think of was setting ....
setenv("bootcmd", "");But i think there is a better way. Any suggestions,
What you want is this commit:
8a484d2b87067bfbf83583606600486ff4b4f0a2
The patch introduces the CRITICAL feature of POST tests. If the test marked as POST_CRITICAL fails then the alternative, post_critical, boot-command is used. If this command is not defined then U-Boot enters into interactive mode.
You can find this in the lwmon5 branch of the U-Boot git repository where it is queued up ready for merge into mainline as soon as the next merge window opens again.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Documentation is the castor oil of programming. Managers know it must be good because the programmers hate it so much.
Thanks Denk,
This what i was looking for.....
Thanks,
Pawel
Quoted 33 lines · Wolfgang Denk
In message <[email protected]>
Quoted 2 lines · you
How would i go about halting u-boot, one on my requirement is to stop
the
Quoted 1 line
board from booting if one of the POST test fails or anthor test fails.
That's what we call a "critical POST failure".
Quoted 5 lines
The only thing that i could think of was setting ....
setenv("bootcmd", "");But i think there is a better way. Any suggestions,
What you want is this commit:
8a484d2b87067bfbf83583606600486ff4b4f0a2The patch introduces the CRITICAL feature of POST tests. If the test marked as
POST_CRITICALfails then the alternative,post_critical, boot-command is used. If this command is not defined then U-Boot enters into interactive mode.Signed-off-by Dmitry Rakhchev <[email protected]>Signed-off-by Yuri Tikhonov <[email protected]>You can find this in the lwmon5 branch of the U-Boot git repository where it is queued up ready for merge into mainline as soon as the next merge window opens again.
Best regards,
Quoted 9 lines
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Documentation is the castor oil of programming.
Managers know it must be good because the programmers hate it so much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080222/2f2e0038/attachment.htm