From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Sleep doesn't work in NetConsole mode?
Date: Sat, 22 Oct 2005 11:05:50 +0200 [thread overview]
Message-ID: <200510221105.52084.sr@denx.de> (raw)
In-Reply-To: <518B77BB6246D54D9E88FC49AFB0389D2F1C2B@seskoptronicmsx.optronic.local>
Andre,
On Monday 17 October 2005 17:02, Andr? Berggren wrote:
> I started using NetConsole today and it's working almost as expected.
>
> When I run sleep 2 in u-boot with serial connected u-boot sleeps for 2 s,
> but when I do the same when connected with NetConsole sleep never returns.
> I have to abort it with Ctrl + C. Why?
The sleep 2 with NetConsole does return, but much later. On my test system
(bubinga, 405EP), a sleep 1 returns after approx. 13 seconds! This is related
to the current implementation of "do_sleep()", just doing 1000 times
udelay(1000). This should work of course, but the test in this loop for
ctrlc() now introduces a lot of delay (timeouts, delays in the ethernet
driver etc...).
As you my have noticed, I changed "do_sleep()" to use "get_timer()". This way
it works without any problems. Please give the latest cvs/git version a try,
and let me know if you still experience any problems.
Best regards,
Stefan
prev parent reply other threads:[~2005-10-22 9:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-17 15:02 [U-Boot-Users] Sleep doesn't work in NetConsole mode? André Berggren
2005-10-17 15:14 ` Wolfgang Denk
2005-10-22 9:05 ` 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=200510221105.52084.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