Tool/software:
Hi,
I have a carrier board with 2 ethernets:
- 1st is directly connected to the toradex am62 verdin board.
-2nd is my hardware with dp83867:
- Strapped phy adress: 0x01
- rgmii rx delays: 2ns
- rgmii tx delays: 0ns
I´m pretty sure DP83867 is working, since it shows activity and the link is up on the LEDs.
However, when connecting an ethernet cable and configure ip and route, there is no link.Settings for ethernet1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
1000baseX/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
1000baseX/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
master-slave cfg: forced master
master-slave status: resolution error
Port: Twisted Pair
PHYAD: 1
Transceiver: external
MDI-X: Unknown
netlink error: Operation not permitted
Current message level: 0x000020f7 (8439)
drv probe link ifdown ifup rx_err tx_err hw
Link detected: no
But I believe there is something missing, since autoneg is on and the configuration should be hanble by both machines.
I tried to for master-slave cfg to forced-slave
using ethtool ethernet1 -s master-slave force-slave
, but it didn´t work despite applying the configuration.
So I went deeper in the problem and compile mii-tool to access the registers. For the first interface (phy0) i can read and write the registers:
root@verdin-am62-15363911:~/mdio-tool# mdio-tool -e ethernet0 -r -a 0x0 -l 0x0A Probed phyaddr: 0 PHY: 0|REG: 0 ---> 0x1140 PHY: 0|REG: 1 ---> 0x796d PHY: 0|REG: 2 ---> 0x2000 PHY: 0|REG: 3 ---> 0xa231 PHY: 0|REG: 4 ---> 0x05e1 PHY: 0|REG: 5 ---> 0x41e1 PHY: 0|REG: 6 ---> 0x0065 PHY: 0|REG: 7 ---> 0x2001 PHY: 0|REG: 8 ---> 0x0000 PHY: 0|REG: 9 ---> 0x0200
For phy1 every single register returned 0xffff even after writing to it.
root@verdin-am62-15363911:~/mdio-tool# mdio-tool -e ethernet1 -r -a 0x0 -l 0x0A
Probed phyaddr: 1
PHY: 1|REG: 0 ---> 0xffff
PHY: 1|REG: 1 ---> 0xffff
PHY: 1|REG: 2 ---> 0xffff
PHY: 1|REG: 3 ---> 0xffff
PHY: 1|REG: 4 ---> 0xffff
PHY: 1|REG: 5 ---> 0xffff
PHY: 1|REG: 6 ---> 0xffff
PHY: 1|REG: 7 ---> 0xffff
PHY: 1|REG: 8 ---> 0xffff
PHY: 1|REG: 9 ---> 0xffff
So I believe something is causing this issue and that might be the reason why both devices can negotiate a feasible communication.
Any thoughts on this?
I'll also send you the schematic if necessary.
Best Regards,
Carla