From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from www6.jnb1.host-h.net (www6b.your-server.co.za [196.22.132.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 77F38DE328 for ; Thu, 16 Oct 2008 02:03:25 +1100 (EST) Message-ID: <48F60633.3030805@vastech.co.za> Date: Wed, 15 Oct 2008 17:03:15 +0200 From: Pieter MIME-Version: 1.0 To: linuxppc-embedded@ozlabs.org Subject: Re: networking fails to activate - more info References: <48F450CD.8060309@vastech.co.za> <2acbd3e40810141538w3781fa4r75cfbe2833a21f81@mail.gmail.com> In-Reply-To: <2acbd3e40810141538w3781fa4r75cfbe2833a21f81@mail.gmail.com> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms060803070505050007030307" Cc: Andy Fleming List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a cryptographically signed message in MIME format. --------------ms060803070505050007030307 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit >> 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 --------------ms060803070505050007030307 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIHIDCC A4wwggJ0oAMCAQICAVwwCwYJKoZIhvcNAQEFMGcxMDAuBgNVBAMMJ1ZBU1RlY2ggMjAwOC0y MDA5IENlcnRpZmljYXRlIEF1dGhvcml0eTELMAkGA1UEBhMCWkExJjAkBgkqhkiG9w0BCQEW F3dlYm1hc3RlckB2YXN0ZWNoLmNvLnphMB4XDTA4MDYxMDA4NTcxMloXDTA5MDYxMDA4NTcx MlowXzEpMCcGA1UEAwwgUGlldGVyIEhlbm5pbmcgVkFTVGVjaCAyMDA4LTIwMDkxCzAJBgNV BAYTAlpBMSUwIwYJKoZIhvcNAQkBFhZwaGVubmluZ0B2YXN0ZWNoLmNvLnphMIIBIjANBgkq hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7cW4073b1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