On Sun, 2007-05-06 at 14:25 +0200, Raphael Wimmer wrote: > Package: whereami > Version: 0.3.32 > Severity: normal > > --- Please enter the report below this line. --- > Hi, > > I have a MacBook Pro C2D with a Marvell 88E8053 PCI-E Gigabit Ethernet > Controller (rev 22) (driver is sky2). > The testmii script brings up the interface and instantly uses mii-tool to > determine its state. > As the sky2 driver seems to take some time to bring the interface up, > mii-tool usually reports no link. > I've manually added a two second wait between bringing the interface up > and testing its link status. That seems to work. > Probably testmii should try several times before giving up.
Hi, I'm kind of loathe to add delays in everywhere to make stuff work, but I feel your pain :-) Does it work any better using ethtool rather than mii-tool? I know that there are many newer cards where mii-tool doesn't work at all, but historically it has worked slightly more reliably... Otherwise I will make it retry the test in a loop, with a 1 second delay after each failure, for three tests (maximum of two seconds delay). I'd also be interested in the output of the following: export INTERFACE=eth0 ifconfig ${INTERFACE} down sleep 5 ifconfig ${INTERFACE} up mii-tool -v ${INTERFACE} sleep 1 mii-tool -v ${INTERFACE} sleep 1 mii-tool -v ${INTERFACE} sleep 1 mii-tool -v ${INTERFACE} Likewise, if you do try ethtool: export INTERFACE=eth0 ifconfig ${INTERFACE} down sleep 5 ifconfig ${INTERFACE} up ethtool ${INTERFACE} sleep 1 ethtool ${INTERFACE} sleep 1 ethtool ${INTERFACE} sleep 1 ethtool ${INTERFACE} There may be something that I can use to identify the fact that the device is not yet ready to be tested, but that it will be in just a few moments... Thanks, Andrew. ------------------------------------------------------------------------- Andrew @ Catalyst .Net .NZ Ltd, PO Box 11-053, Manners St, Wellington WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St DDI: +64(4)803-2201 MOB: +64(272)DEBIAN OFFICE: +64(4)499-2267 I have not seen high-discipline processes succeed in commercial settings. - Alistair Cockburn -------------------------------------------------------------------------
signature.asc
Description: This is a digitally signed message part