From: Pieter <phenning@vastech.co.za>
To: linuxppc-embedded@ozlabs.org
Cc: Andy Fleming <afleming@gmail.com>
Subject: Re: networking fails to activate - more info
Date: Wed, 15 Oct 2008 17:03:15 +0200 [thread overview]
Message-ID: <48F60633.3030805@vastech.co.za> (raw)
In-Reply-To: <2acbd3e40810141538w3781fa4r75cfbe2833a21f81@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2746 bytes --]
>> Hi
>>
>> We have a powerpc (8548) based board. running eldk4.1. the board has
>> three ethernet ports using Gainfair ethernet controller v1.2.
>>
>> If the board powers up with any network cable plugged in, that specific
>> network is accessible.
>> if the board powers up without network cables connected and a cable is
>> plugged in, the network does not become active.
>> The kernal makes a log entry stating that the phy is up when the cable
>> is plugged in - but the interface is not pingable
>> Running ifdown and ifup manually does not result in a pingable interface.
>> Neither does running /etc/init.d/network restart
>>
>> can anyone help me pls.
>>
>
>
> Check the statistics counters to see if you are getting any bad
> packets, or to see if you are getting interrupts. Several people have
> reported that their PHYs have powerdown issues, though I wouldn't
> expect the PHY to report the link as up, then. Make sure that your
> dts specifies the correct PHY address for the connected PHY.
>
> What happens if you start up with the PHY connected, bring up the
> interface, and *then* disconnect and reconnect the cable (after a
> delay)?
Hi
I have checked the counters in both ifconfig and with ethtool. both show
TX counts but no RX count and no errors
ethtool reports that the link is detected.
The phy addresses are correct (ethtool and kernel log shows the
exspected addresses)
I have found that the networking scripts are not called (ifup or down)
when a cable is pluged or unplugged.
I also found that udev is not in my current linux platform - can this
contribute to the problem?
To rule out the phys. I powered on the system with all network cables
plugged in. ping all three to confirm that they work. i then issue a
reset signal (hardware routed) to the phys. when the phys reappear im
still able to ping all three interfaces.
The log file entries for unplugging and connecting the cable are :
(logged by /driver/phy/phy.c )
Oct 15 14:36:56 equus user.info kernel: PHY: 0:00 - Link is
Down
Oct 15 14:36:59 equus user.info kernel: PHY: 0:00 - Link is Up - 100/Full
what is the sequence of events that should follow?
Another test i tried, powered the system up with no cables plugged in
and "ONBOOT=no" in ifcgf-eth sctipts. I then manually run the ifup
scripts one by one. then plug in the three network cables. when i ping
the three interfaces and ping targets on the three networks i find that
one interface is pingable, one is not and one returns "ping: sendto:
Network is unreachable" - these results were reproducible about 25% of
attempts but varied according to order in with cables were plugged in.
I would appreciate any help.
thanks pieter
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 2722 bytes --]
next prev parent reply other threads:[~2008-10-15 15:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-14 7:57 networking fails to activate Pieter
2008-10-14 22:38 ` Andy Fleming
2008-10-15 15:03 ` Pieter [this message]
2008-10-16 15:02 ` networking fails to activate - even more info Pieter
2008-10-27 6:47 ` Solved: " Pieter
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=48F60633.3030805@vastech.co.za \
--to=phenning@vastech.co.za \
--cc=afleming@gmail.com \
--cc=linuxppc-embedded@ozlabs.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 NNTP newsgroup(s).