public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Sleep doesn't work in NetConsole mode?
@ 2005-10-17 15:02 André Berggren
  2005-10-17 15:14 ` Wolfgang Denk
  2005-10-22  9:05 ` Stefan Roese
  0 siblings, 2 replies; 3+ messages in thread
From: André Berggren @ 2005-10-17 15:02 UTC (permalink / raw)
  To: u-boot

Hi all!

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?

//Andr?
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20051017/d663b069/attachment.htm 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] Sleep doesn't work in NetConsole mode?
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2005-10-17 15:14 UTC (permalink / raw)
  To: u-boot

In message <518B77BB6246D54D9E88FC49AFB0389D2F1C2B@seskoptronicmsx.optronic.local> you 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?

Because of a bug? Which processor and board is this, and which  exact
version of U-Boot (which commit id) ?

> ------_=_NextPart_001_01C5D32B.DB2B36DF
> Content-Type: text/html;
> 	charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <HTML>

And please: do NOT post HTML here.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Don't try to outweird me, three-eyes. I get stranger things than you
free with my breakfast cereal."
           - Zaphod Beeblebrox in  "Hitchhiker's Guide to the Galaxy"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] Sleep doesn't work in NetConsole mode?
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2005-10-22  9:05 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-22  9:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox