From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] NetConsole tstc problems
Date: Wed, 2 Nov 2005 19:10:33 +0100 [thread overview]
Message-ID: <200511021910.33962.sr@denx.de> (raw)
In-Reply-To: <20051102113447.bc4sw4gsoockkk40@secure.uwalumni.com>
Hi Brian,
On Wednesday 02 November 2005 18:34, Brian Prodoehl wrote:
> I'm not sure which fix you mean. The fix to the sleep command corrected
> the time issue, but there are still underlying problems with nc_tstc. Try
> hitting Ctrl+C to abort the sleep. I have to hit it between 3 and 10 times
> before it registers.
Hmmm. With my sleep fix, this works pretty well on my test platform. The main
problem seems to be, that the delay from the ethernet driver (I was using
ppc4xx by the way), can range from a few ms to some 100ms or even more in
your case.
What is your platform? Can you check your ethernet driver, if there are big
delays or timeouts.
> And that fix doesn't help at all with the
> CONFIG_BOOT_RETRY_TIME problem. I don't see any configs using NetConsole
> and bootretry, but I'd be interested to hear that someone has it working
> without having to change core code. My current fix is to change the
> following in main.c's readline():
>
> for (;;) {
> - #ifdef CONFIG_BOOT_RETRY_TIME
> + #if defined(CONFIG_BOOT_RETRY_TIME) && !defined(CONFIG_NETCONSOLE)
> while (!tstc()) { /* while no incoming data */
> if (retry_time >= 0 && get_ticks() > endtime)
> return (-2); /* timed out */
> }
> #endif
> WATCHDOG_RESET(); /* Trigger watchdog, if needed */
>
> With that change, I'm at least able to use NetConsole when
> CONFIG_BOOT_RETRY_TIME is defined, but only by skirting around a tstc that
> doesn't work very well.
Yes, we should try to solve the problem itself. Seems to be not easy
though. :-(
Best regards,
Stefan
prev parent reply other threads:[~2005-11-02 18:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-01 21:19 [U-Boot-Users] NetConsole tstc problems Brian Prodoehl
2005-11-02 7:51 ` Stefan Roese
2005-11-02 7:59 ` Wolfgang Denk
2005-11-02 17:34 ` Brian Prodoehl
2005-11-02 18:10 ` Stefan Roese [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200511021910.33962.sr@denx.de \
--to=sr@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox