public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Peter Graf <p.graf@itknet.de>
To: eCos Discussion <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] possible bug in if_fcc ethernet driver?
Date: Tue, 15 Jun 2004 13:53:00 -0000	[thread overview]
Message-ID: <40CEFF5E.5080909@itknet.de> (raw)
In-Reply-To: <1087227443.8094.17.camel@hermes>

Gary Thomas wrote:

>On Mon, 2004-06-14 at 09:15, agyhoo wrote:
>  
>
>>Hi,
>>
>>In the if_fcc ethernet driver, the fcc_eth_init routine
>>returns "false" if there is no LINK detected (ie, network
>>cable is unplugged). However, there is a compile switch
>>around the return false statement (CYGPKG_REDBOOT).
>>Therefore, when I run my eCos application, it hangs when
>>the network cable is unplugged. I think this is because the
>>network alarm thread and the background thread think the
>>device status is available and try to access it.
>>
>>Am I missing something? Can someone tell me why the compile
>>switch is present?
>>    
>>
>
>We explicitly want RedBoot to not try and use the network if there
>is no cable in place (it just wastes time).  In the case of eCos,
>I doubt that your program "hangs", but rather it is waiting to
>get an ethernet IP address via DHCP (the default behaviour).  If
>the network is unplugged, this process will take quite a long time
>(more than 30 seconds), waiting for the network to come available.
>Eventually, the DHCP will timeout and your code will continue,
>but if it needs the network, it will probably have other problems.
>
>  
>
It might be a matter of timeout(s) length(s) around phy inialization. I 
vaguely remember I had to shorten them, so it recognizes the missing 
cable sooner.

All the best
Peter


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

  parent reply	other threads:[~2004-06-15 13:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-14 15:15 agyhoo
2004-06-14 15:37 ` Gary Thomas
2004-06-14 15:46   ` agyhoo
2004-06-14 16:23     ` Gary Thomas
2004-06-14 17:17       ` agyhoo
2004-06-15 13:53   ` Peter Graf [this message]
2004-06-15 14:02     ` [ECOS] Enabling Second Eth interface causes system stop Rajeev Gaba
2004-06-15 18:01 [ECOS] possible bug in if_fcc ethernet driver? agyhoo

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=40CEFF5E.5080909@itknet.de \
    --to=p.graf@itknet.de \
    --cc=ecos-discuss@ecos.sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).