mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* handling script/init errors
@ 2013-11-12  6:07 Marc Reilly
  2013-11-12  8:28 ` Sascha Hauer
  0 siblings, 1 reply; 6+ messages in thread
From: Marc Reilly @ 2013-11-12  6:07 UTC (permalink / raw)
  To: barebox

Hi,

Rarely, one of the commands (related to hardware access) in our startup 
scripts fails, and the unit startup ends up bailing to a console prompt. 
(Which is only on debug port, so no appropriate user feedback) 
This would end up appearing to the user that nothing has happened, and will 
either run until batteries are drained (or removed) or a special reset 
sequence is done.

Is there a way to set up an error handler in the scripts? Ideally, a command 
or script that could be called if /bin/sh encounters an error. 

I started looking through hush.c but soon thought it better to consult with 
anyone who actually might know ... :)

It's not an urgent problem, as all the troublesome units so far present 
themselves before they're shipped out, but now a more urgent (thankfully 
simple) problem has emerged, so now is a good time to try fix it.

Note: we're using a version based of 2012.07

Cheers,
Marc

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-11-18  9:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-12  6:07 handling script/init errors Marc Reilly
2013-11-12  8:28 ` Sascha Hauer
2013-11-12  9:05   ` Marc Reilly
2013-11-12 10:11     ` Sascha Hauer
2013-11-13  6:51       ` Marc Reilly
2013-11-18  9:40         ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox