Ethernet PHY KSZ9031 is not working [SOLVED]
gianluca
gianlucarenzi at eurek.it
Fri Mar 4 03:12:10 PST 2016
On 03/03/2016 04:21 PM, Antony Pavlov wrote:
> On Thu, 3 Mar 2016 14:47:26 +0100
> gianluca <gianlucarenzi at eurek.it> wrote:
>
>> On 03/03/2016 02:52 PM, Antony Pavlov wrote:
>>
>> 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
>
>
> 'no link' here, so please check your magnetics and RJ-45 connector.
>
I found the problem. I did a wrong connection (PCB) between common line
of the magnetics to the ethernet-vcc line. This line has to be connected
ONLY to the GND with a single 10nF capacitor only.
When connecting to a Gigabit Ethernet switch:
> barebox at EK360 Eurek i.MX6 Quad:/ dhcp
> warning: No MAC address set. Using random address 8e:0c:97:9d:0d:fd
> eth0: 1000Mbps full duplex link detected
> T T T DHCP client bound to address 192.168.143.194
When connecting to a 100Mb Ethernet switch:
> barebox at EK360 Eurek i.MX6 Quad:/ dhcp
> warning: No MAC address set. Using random address 2e:a7:4d:11:f2:65
> ksz9031rn_phy_fixup Called
> ksz9031rn_phy_fixup Exit
> eth0: 100Mbps full duplex link detected
> T DHCP client bound to address 192.168.1.165
Right now, I have no 10Mb HUB but who cares? I will face the problem (if
any) when somebody will point me this issue... ;-)
I would to thank everybody on the mailing list for all hints!
The next step is to calibrate the skew-rate of the lines (if needed)
when facing some problems during high load transfer in both modes
(100/1000) but for this I need to boot up in Linux first.
Next step is to connect a USB Disk and try to mount it...
Stay tuned! ;-)
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