Ethernet PHY KSZ9031 is not working
gianluca
gianlucarenzi at eurek.it
Thu Mar 3 05:47:26 PST 2016
On 03/03/2016 02:52 PM, Antony Pavlov wrote:
>> When Barebox takes control over, those pins are turned off, the device
>> tree information is telling me:
>>
>>> `-- 2188000.ethernet
>>> `-- miibus0
>>> `-- phy0
>>> `-- 0x00000000-0x0000003f ( 64 Bytes): /dev/phy0
>>> `-- eth0
>>
>> but when I try to bring up the ethernet connection here is the message:
>>
>>> dhcp
>>> warning: No MAC address set. Using random address ae:05:f1:62:bd:d8
>>> ksz9031rn_phy_fixup Called
>>> ksz9031rn_phy_fixup Exit
>>> dhcp: Network is down
>>
>> And all leds in the RJ-45 JackMag are still turned off.
>>
>> I don't know where I can check if something goes wrong. May be a failure
>> on board, but at this time this board is the ONLY BOARD I can use.
>
> Use 'miitool -v -v' command to check your phy registers and the link status.
>
Thank you for this hint.
Before digging on the Datasheet for the explanation of all MII PHY
registers, here is the output of the command you wrote above:
> barebox at EK360 Eurek i.MX6 Quad:/ miitool -v -v
> phy0: 2188000.ethernet-1: no link
> registers for MII PHY:
> 1140 7949 0022 1622 01e1 0000 0006 2001
> 0000 0300 0000 0000 0000 0000 0000 3000
> 0000 00f4 0000 0000 0000 0000 0000 0200
> 0000 0000 0000 0028 0000 0000 0000 0301
> product info: Micrel KSZ9031 Gigabit PHY (vendor 00:08:85, model 34 rev 2)
> basic mode: autonegotiation enabled
> basic status: no link
> capabilities: 1000baseT-FD 1000baseT-HD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
> advertising: 1000baseT-FD 1000baseT-HD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
>
So, the link between the FEC and the PHY it is seems to working good.
If everything seems to be ok (speaking about registers) maybe there is
some issue on the RJ-45 MagJack connector.
What kind of RJ45 are you using?? I am using a 1000/100/10 from Wuerth
Elektronic named:
Artikelnummer / part number :
Bezeichnung :
description :
7499111121A
LAN-Übertrager WE-RJ45LAN 10/100/1000 BaseT
LAN-Transformer WE-RJ45LAN 10/100/1000 BaseT
Best Regards,
Gianluca
--
Eurek s.r.l. |
Electronic Engineering | http://www.eurek.it
via Celletta 8/B, 40026 Imola, Italy | Phone: +39-(0)542-609120
p.iva 00690621206 - c.f. 04020030377 | Fax: +39-(0)542-609212
More information about the barebox
mailing list