This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TDA2P-ACD: Custom Board Ethernet Link is not UP

Part Number: TDA2P-ACD

Tool/software: Linux

Hello.

We are make TDA2Px custom board and have a Ethernet problem.

Our custom board ethernet Link is not up, but ethernet phy(DP83867) is founded.

* TDA2Px EVM phy

PHY 0x02: OUI = 0x80028, Model = 0x23, Rev = 0x01, 1000baseT, FDX
PHY 0x03: OUI = 0x80028, Model = 0x23, Rev = 0x01,  10baseT, HDX

* TDA2Px Custom Board phy

PHY 0x00: OUI = 0x80028, Model = 0x23, Rev = 0x01,  10baseT, FDX

Q1: can we change 10baseT --> 1000baseT ?

we are using 1 ethernet phy (DP83867) and ethernet phy addr is changed compare to EVM ( 2 --> 0 )

We cannot read TDA2PX EVM Board Information EEPROM, because our custom board not have eeprom.

we are not hard copying MAC address because auto  Mac address generation code is exist.

modify Linux device tree setting

1. dra7.dtsi

--> delete : ethernet1 = &cpsw_emac1

--> change : mac ethernet@48484000 slave 2 --> 1

--> delete : cpsw_emac1: slave@48480300

2. dra76-evm.dts

--> delete : dual_emac at mac

--> delete: dp83867_1: ethernet-phy@3

--> change: dp83867_0: ethernet-phy@2 --> @0

* EVM link up LOG

root@dra7xx-evm:~# ifconfig eth0 down
[   32.001203] cpsw 48484000.ethernet eth0: Link is Down
root@dra7xx-evm:~# ifconfig eth0 up
[   37.385059] net eth0: initializing cpsw version 1.15 (0)
[   37.446415] net eth0: phy found : id is : 0x2000a231
[   37.455575] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
root@dra7xx-evm:~# [   40.010070] cpsw 48484000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   40.017990] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

* Custom Board link up LOG

root@dra7xx-evm:~# ifconfig eth0 down
root@dra7xx-evm:~# ifconfig eth0 up
[   31.977771] net eth0: initializing cpsw version 1.15 (0)
[   31.983114] net eth0: initialized cpsw ale version 1.4
[   31.988431] net eth0: ALE Table size 1024
[   32.043712] net eth0: phy found : id is : 0x2000a231
[   32.054588] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
root@dra7xx-evm:~# 

  • Please help us for ethernet link is came up.
    Give us any debug point or root-cause information.

    I attatch EVM & custom board logs below

    Thanks.

    ---------------------------------------------------------------------------------------
    * EVM Log
    ......
    Net:
    Warning: ethernet@48484000 using MAC address from ROM
    .......
    [ 1.906821] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
    [ 1.912946] libphy: 48485000.mdio: probed
    [ 1.921279] davinci_mdio 48485000.mdio: phy[2]: device 48485000.mdio:02, driver TI DP83867
    [ 1.929603] davinci_mdio 48485000.mdio: phy[3]: device 48485000.mdio:03, driver TI DP83867
    [ 1.938544] cpsw 48484000.ethernet: Detected MACID = 74:e1:82:b2:0e:72
    [ 1.945191] cpsw 48484000.ethernet: cpts: overflow check period 800
    [ 1.952163] cpsw 48484000.ethernet: cpsw: Detected MACID = 74:e1:82:b2:0e:73
    ......
    [ 7.926997] net eth1: initializing cpsw version 1.15 (0)
    [ 7.927019] net eth0: initialized cpsw ale version 1.4
    [ 7.927023] net eth0: ALE Table size 1024
    [ 8.064100] net eth1: phy found : id is : 0x2000a231
    [ 8.093188] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [ 8.127111] net eth0: initializing cpsw version 1.15 (0)
    [ 8.290946] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    ......
    root@dra7xx-evm:~# ifconfig eth0 down
    [ 32.001203] cpsw 48484000.ethernet eth0: Link is Down
    root@dra7xx-evm:~# ifconfig eth0 up
    [ 37.385059] net eth0: initializing cpsw version 1.15 (0)
    [ 37.446415] net eth0: phy found : id is : 0x2000a231
    [ 37.455575] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    root@dra7xx-evm:~# [ 40.010070] cpsw 48484000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
    [ 40.017990] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready



    ---------------------------------------------------------------------------------------
    * Custom Log
    ......
    Net: Could not get PHY for ethernet@48484000: addr 2

    Warning: ethernet@48484000 using MAC address from ROM
    ......
    [ 1.821376] libphy: Fixed MDIO Bus: probed
    [ 1.875241] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
    [ 1.881365] libphy: 48485000.mdio: probed
    [ 1.887680] davinci_mdio 48485000.mdio: phy[0]: device 48485000.mdio:00, driver TI DP83867
    [ 1.896497] cpsw 48484000.ethernet: Detected MACID = 40:06:a0:10:f2:d6
    [ 1.903149] cpsw 48484000.ethernet: cpts: overflow check period 800
    ......
    [ 6.942562] net eth0: initializing cpsw version 1.15 (0)
    [ 6.963013] net eth0: initialized cpsw ale version 1.4
    [ 6.978496] net eth0: ALE Table size 1024
    [ 7.096653] net eth0: phy found : id is : 0x2000a231
    [ 7.15009] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    ......
    root@dra7xx-evm:~# ifconfig
    eth0 Link encap:Ethernet HWaddr 40:06:A0:10:F2:D6
    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:93

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

    root@dra7xx-evm:~# ifconfig eth0 down
    root@dra7xx-evm:~# ifconfig eth0 up
    [ 31.977771] net eth0: initializing cpsw version 1.15 (0)
    [ 31.983114] net eth0: initialized cpsw ale version 1.4
    [ 31.988431] net eth0: ALE Table size 1024
    [ 32.043712] net eth0: phy found : id is : 0x2000a231
    [ 32.054588] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    root@dra7xx-evm:~#
  • Any body Ethernet Expert Can help me?
  • Hi Jukyeong,

    Basic configuration changes seems right, I will consult the Linux ethernet experts and get back to you.

    Regards,
    Anand
  • Hi Anand,

    I got a feedback that the issue was resolved - there was an issue  with the  system reset timing.

    Jukyeong,

    Could you please confirm if the issue was resolved?

    Regards,

    James

  • It is resolved and TDA2Px Reset timing is problem as james said.

    Thanks and regards.