Hi,
We have two DP83630 on ATMEL AT91SAM9x25, Kernel 3.10, u-boot 2014.07-at91
I can see 3 LEDs of each chip are blinking with hubs (NIC ports), from both DP83630 chips.
From u-boot level, I tried to ping with gateway – hubs work fine, but it showed:
ETH0: macb_phy_find - macb0: PHY not found
ETH1:
macb_phy_find - macb1: PHY present at 1
macb_phy_init - PHY is up for macb1
phy_connect - macb1, calling phy_connect_dev with NatSemi DP83630
phy_connect_dev - macb1:1 is connected to macb1. Reconnecting to macb1
phy_connect_dev - macb1 connected to NatSemi DP83630
macb_phy_init - CONFIG_PHYLIB - pass phy_connect, link=1
macb_phy_reset - macb1: Starting autonegotiation...
macb1: Autonegotiation complete
macb1: link up, 100Mbps full-duplex (lpa: 0xcde1)
--- NetState set to 0
--- NetLoop Init
ping_start - Using macb1 device
--- NetLoop timeout handler set (2ff8a57c)
sending ARP for 192.168.0.1
ARP broadcast 1
macb_send - macb1: TX timeout
--- NetLoop timeout
--- NetState set to 3
--- NetLoop UDP handler set (00000000)
--- NetLoop ARP handler set (00000000)
--- NetLoop timeout handler cancelled
--- NetLoop Fail!
ping failed; host 192.168.0.1 is not alive
we configure physical address of ETH0 to be 0x01, and ETH1 to be 0x03.
When address is 1, 3:
U-Boot> mii info
PHY ID register 2 read failed
MII_PHYSID2 @ 0x1 = 0xffff
PHY ID register 2 read failed
U-Boot> mii device macb1
U-Boot> mii info
PHY ID register 2 read failed
MII_PHYSID2 @ 0x3 = 0xffff
It would show garbage for both phy: (regardless of ‘reset’ in
U-Boot> mii dump 3
0. (ffff) -- PHY control register --
(8000:8000) 0.15 = 1 reset
(4000:4000) 0.14 = 1 loopback
(2040:2040) 0. 6,13 = b11 speed selection = 10 Mbps
(1000:1000) 0.12 = 1 A/N enable
(0800:0800) 0.11 = 1 power-down
(0400:0400) 0.10 = 1 isolate
(0200:0200) 0. 9 = 1 restart A/N
(0100:0100) 0. 8 = 1 duplex = full
(0080:0080) 0. 7 = 1 collision test enable
(003f:003f) 0. 5- 0 = 63 (reserved)
…
When address is 1, 1
Mii info for macb0 is the same with above, but:
U-Boot> mii device macb1
PHY ID register 2 read failed
MII_PHYSID2 @ 0x1 = 0x5ce1
PHY_PHYIDR[1,2] @ 0x1 = 0x20005ce1
PHY 0x01: OUI = 0x80017, Model = 0x0E, Rev = 0x01, 100baseT, FDX
U-Boot> mdio list
macb0:
macb1:
1 - NatSemi DP83630 <--> macb1 << only macb1
For ETH0, I never be able to access it and not scanable from u-boot. How we can tell that this chip is still alive – even 3 LEDs are blinking?
For ETH1, it appeared that phy address is always 0x01 other than given 0x03. We have added Pin 43 on Eth1 (only) with a pull up using a 2.2 K ohm resister. This will make the Eth1 as address 3.
What additional information that you need such that we can diagnose above issues?
Thanks,
Kevin