Other Parts Discussed in Thread: DP83620, TPS65218, AM4372, TLV320AIC3106
Tool/software: Linux
HI all,
I am using a customised board GC150 based on am437x processor. I am using ti-linux-sdk-04.00.00.04. I have modified the dts as per my board the two ethernet ports are getting detected as mdio PHY 1 and 2 but link is not detected. None of ethernet is working, link led is also not glowing. here i have attached the required details.
root@am437x-evm:~# uname -a
Linux am437x-evm 4.9.28-geed43d1050 #7 PREEMPT Fri Sep 1 20:15:16 IST 2017 armv7l GNU/Linux
root@am437x-evm:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000000 (0)
Link detected: no
root@am437x-evm:~# ethtool -S eth0
NIC statistics:
Good Rx Frames: 0
Broadcast Rx Frames: 0
Multicast Rx Frames: 0
Pause Rx Frames: 0
Rx CRC Errors: 0
Rx Align/Code Errors: 0
Oversize Rx Frames: 0
Rx Jabbers: 0
Undersize (Short) Rx Frames: 0
Rx Fragments: 0
Rx Octets: 0
Good Tx Frames: 0
Broadcast Tx Frames: 0
Multicast Tx Frames: 0
Pause Tx Frames: 0
Deferred Tx Frames: 0
Collisions: 0
Single Collision Tx Frames: 0
Multiple Collision Tx Frames: 0
Excessive Collisions: 0
Late Collisions: 0
Tx Underrun: 0
Carrier Sense Errors: 0
Tx Octets: 0
Rx + Tx 64 Octet Frames: 0
Rx + Tx 65-127 Octet Frames: 0
Rx + Tx 128-255 Octet Frames: 0
Rx + Tx 256-511 Octet Frames: 0
Rx + Tx 512-1023 Octet Frames: 0
Rx + Tx 1024-Up Octet Frames: 0
Net Octets: 0
Rx Start of Frame Overruns: 0
Rx Middle of Frame Overruns: 0
Rx DMA Overruns: 0
Rx DMA chan 0: head_enqueue: 1
Rx DMA chan 0: tail_enqueue: 127
Rx DMA chan 0: pad_enqueue: 0
Rx DMA chan 0: misqueued: 0
Rx DMA chan 0: desc_alloc_fail: 0
Rx DMA chan 0: pad_alloc_fail: 0
Rx DMA chan 0: runt_receive_buf: 0
Rx DMA chan 0: runt_transmit_bu: 0
Rx DMA chan 0: empty_dequeue: 0
Rx DMA chan 0: busy_dequeue: 0
Rx DMA chan 0: good_dequeue: 0
Rx DMA chan 0: requeue: 0
Rx DMA chan 0: teardown_dequeue: 0
Tx DMA chan 0: head_enqueue: 0
Tx DMA chan 0: tail_enqueue: 0
Tx DMA chan 0: pad_enqueue: 0
Tx DMA chan 0: misqueued: 0
Tx DMA chan 0: desc_alloc_fail: 0
Tx DMA chan 0: pad_alloc_fail: 0
Tx DMA chan 0: runt_receive_buf: 0
Tx DMA chan 0: runt_transmit_bu: 0
Tx DMA chan 0: empty_dequeue: 0
Tx DMA chan 0: busy_dequeue: 0
Tx DMA chan 0: good_dequeue: 0
Tx DMA chan 0: requeue: 0
Tx DMA chan 0: teardown_dequeue: 0
root@am437x-evm:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr C4:BE:84:CB:5E:69
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:139
root@am437x-evm:~#
root@am437x-evm:~# ifconfig eth1
eth1 Link encap:Ethernet HWaddr C4:BE:84:CB:5E:6B
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@am437x-evm:~#
root@am437x-evm:~# ethtool eth1
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 2
Transceiver: external
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000000 (0)
Link detected: no
root@am437x-evm:~#
root@am437x-evm:~# dmesg |grep mdio
[ 1.298583] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.304725] davinci_mdio 4a101000.mdio: detected phy mask fffffff9
[ 1.312430] libphy: 4a101000.mdio: probed
[ 1.316486] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver TI DP83620 10/100 Mbps PHY
[ 1.326288] davinci_mdio 4a101000.mdio: phy[2]: device 4a101000.mdio:02, driver TI DP83620 10/100 Mbps PHY
[ 9.919321] TI DP83620 10/100 Mbps PHY 4a101000.mdio:01: attached PHY driver [TI DP83620 10/100 Mbps PHY] (mii_bus:phy_addr=4a101000.mdio:0)
[ 10.189002] TI DP83620 10/100 Mbps PHY 4a101000.mdio:02: attached PHY driver [TI DP83620 10/100 Mbps PHY] (mii_bus:phy_addr=4a101000.mdio:0)
root@am437x-evm:~# dmesg |grep cpsw
[ 1.336983] cpsw 4a100000.ethernet: Detected MACID = c4:be:84:cb:5e:69
[ 1.343864] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[ 1.352317] cpsw 4a100000.ethernet: cpsw: Detected MACID = c4:be:84:cb:5e:6b
[ 9.819227] net eth0: initializing cpsw version 1.15 (0)
[ 9.819238] net eth0: initialized cpsw ale version 1.4
[ 10.095738] net eth1: initializing cpsw version 1.15 (0)
I have attached the serial log and dts file is next post. Any suggestion on why its not working where i am going wrong.