From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Wed, 2 Nov 2005 08:51:57 +0100 Subject: [U-Boot-Users] NetConsole tstc problems In-Reply-To: <20051101151924.c9ww4408kw8ososc@secure.uwalumni.com> References: <20051101151924.c9ww4408kw8ososc@secure.uwalumni.com> Message-ID: <200511020851.57643.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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