RFC: Force a 2s delay on startup to allow bypassing /dev/env0.

Sascha Hauer s.hauer at pengutronix.de
Sun May 6 14:08:35 EDT 2012

On Sun, May 06, 2012 at 07:50:14PM +0200, Krzysztof Halasa wrote:
> Sascha Hauer <s.hauer at pengutronix.de> writes:
> > Being able to interrupt before environment processing is a good thing to
> > have, the delay though is not acceptable because it would increase the
> > boot time on some systems by 400%. It should work without the delay
> > aswell.
> Actually the delay is a bit problematic for me as well.
> Unfortunately the boot code has to initialize the serial port, clearing
> the incoming FIFO. This means I can't "queue" the ^C character, barebox
> has to wait for it (maybe not for the whole 2 seconds).
> Or am I mistaken?

On my boards I can still interrupt even with autoboot_timeout=0. Have
you tried it? It may be a bit dependent on the UART driver, I don't


Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

More information about the barebox mailing list