Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

DP83849IVS-EVK: Ethernet link is up , but unable to ping

$
0
0

Part Number:DP83849IVS-EVK

Hi,

I have AM4376 custom board with  DP83849IVS.

link is up but  not getting the ip [manually set the ip]

But unable to ping  to any other ip, only 127.0.0.1 is working 

Please help to resolve the issue

=> mii info
PHY 0x02: OUI = 0x80017, Model = 0x0A, Rev = 0x02, 100baseT, FDX

PHY 0x03: OUI = 0x80017, Model = 0x0A, Rev = 0x02, 100baseT, FDX


=> mii dump 0
Error reading from the PHY addr=00 reg=00

=> mii dump 1
Error reading from the PHY addr=01 reg=00

=> mii dump 2
0.     (2100)                 -- PHY control register --
  (8000:0000) 0.15    =     0    reset
  (4000:0000) 0.14    =     0    loopback
  (2040:2000) 0. 6,13 =   b01    speed selection = 100 Mbps
  (1000:0000) 0.12    =     0    A/N enable
  (0800:0000) 0.11    =     0    power-down
  (0400:0000) 0.10    =     0    isolate
  (0200:0000) 0. 9    =     0    restart A/N
  (0100:0100) 0. 8    =     1    duplex = full
  (0080:0000) 0. 7    =     0    collision test enable
  (003f:0000) 0. 5- 0 =     0    (reserved)


=> mii dump 3
0.     (2100)                 -- PHY control register --
  (8000:0000) 0.15    =     0    reset
  (4000:0000) 0.14    =     0    loopback
  (2040:2000) 0. 6,13 =   b01    speed selection = 100 Mbps
  (1000:0000) 0.12    =     0    A/N enable
  (0800:0000) 0.11    =     0    power-down
  (0400:0000) 0.10    =     0    isolate
  (0200:0000) 0. 9    =     0    restart A/N
  (0100:0100) 0. 8    =     1    duplex = full
  (0080:0000) 0. 7    =     0    collision test enable
  (003f:0000) 0. 5- 0 =     0    (reserved)

=> mdio list
ethernet@4a100000:

minicom log :

[   44.945955] net eth0: initializing cpsw version 1.15 (0)
[   44.951628] net eth0: initialized cpsw ale version 1.4
[   45.095880] net eth0: ALE Table size 1024
[   45.176498] net eth0: phy found : id is : 0x20005ca2
[   45.479818] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   48.218265] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

root@am437x-evm:~# ifconfig
eth0      Link encap:Ethernet  HWaddr C4:BE:84:CB:12:32  
          inet6 addr: fe80::c6be:84ff:fecb:1232%132688/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:7667 (7.4 KiB)
          Interrupt:143

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1%132688/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:323 errors:0 dropped:0 overruns:0 frame:0
          TX packets:323 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:24632 (24.0 KiB)  TX bytes:24632 (24.0 KiB)

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
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 3
        Transceiver: external
        Auto-negotiation: on
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x00000000 (0)
                               
        Link detected: yes

Device tree changes:

&cpsw_emac0 {

   phy_id = <&davinci_mdio>, <3>;
    phy-mode = "gmii";
  
};

Thanks in advance


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>