[U-Boot-Users] NetConsole tstc problems

Stefan Roese sr at denx.de
Wed Nov 2 08:51:57 CET 2005


Hi Brian,

On Tuesday 01 November 2005 22:19, Brian Prodoehl wrote:
> Has anyone else experienced problems with NetConsole's tstc?  In
> particular, defining CONFIG_BOOT_RETRY_TIME makes NetConsole almost
> unusable for me, because then readline() in main.c blocks on tstc and the
> result (for me, at least) is that NetConsole accepts a character every
> second or so.

Depending on your network driver, tstc() can take pretty long. I experienced a 
similar problem in sleep() using tstc() via ctrlc(). I solved this problem 
using a "better" timeout mechanism with get_timer(). This could probably help 
here too.

> For everything that doesn't depend on tstc, NetConsole works 
> beautifully for me. I'm just wondering if anyone else has seen problems, or
> if anyone has suggestions on how to make tstc less of a show-stopper
> (something I haven't been able to accomplish).

Take a look at the sleep() fix:

http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=commit;h=c4c13df284cb06156c16ee6aef49b8d23be3fadd

Best regards,
Stefan




More information about the U-Boot mailing list