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.

Compiler/TDA2SG: TDA2S eth0 link is not work well

Part Number: TDA2SG

Tool/software: TI C/C++ Compiler

HI ,  I use the rgmii1  port  connect to BCM89811,and my dts is like this,

 DTS:

&mac {
status = "okay";
dual_emac;
};
&davinci_mdio {
status = "okay";
};

&cpsw_emac0 {
phy_id = <&davinci_mdio>, <0>;
phy-mode = "rgmii";
dual_emac_res_vlan = <2>;
};

&cpsw_emac1 {
phy_id = <&davinci_mdio>, <1>;
phy-mode = "rgmii";
dual_emac_res_vlan = <1>;
};

I  set the command "ifconfig eth0 192.168.208.110 up" then  look the kernel message:

[ 70.109299] net eth0: initializing cpsw version 1.15 (0)
[ 70.109315] net eth0: initialized cpsw ale version 1.4
[ 70.109325] net eth0: ALE Table size 1024
[ 70.116837] net eth0: phy found : id is : 0xae025022
[ 70.123702] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

why my eth0 is link is not well   wrok?

  • [ 0.568411] ioctl DBUFIOC_EXPORT_VIRTMEM = -1072899120
    [ 0.570203] libphy: Fixed MDIO Bus: probed
    [ 0.616776] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
    [ 0.616787] davinci_mdio 48485000.mdio: detected phy mask fffffffe
    [ 0.618852] libphy: 48485000.mdio: probed
    [ 0.618865] davinci_mdio 48485000.mdio: phy[0]: device 48485000.mdio:00, driver unknown
    [ 0.619440] cpsw 48484000.ethernet: Detected MACID = 38:81:d7:73:ec:6a
    [ 0.619536] cpsw 48484000.ethernet: cpts: overflow check period 800
    [ 0.620208] cpsw 48484000.ethernet: cpsw: Detected MACID = 38:81:d7:73:ec:6b
    [ 0.621538] i2c /dev entries driver
    [ 0.626342] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr25 mode
    [ 0.632771] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr12 mode
    [ 0.639367] evm_1v8: supplied by smps9
    [ 0.677266] omap_hsmmc 4809c000.mmc: Got CD GPIO
    [ 0.718626] omap-rproc 55020000.ipu: assigned reserved memory node ipu2_cma@99000000
    [ 0.718678] remoteproc0: 55020000.ipu is available

    this is my kernel message about  mdio.

  • Hi ,now I  can link up eth1 ,how can  I set the  link  100Mbps/Half (now    is 10Mbps)

    my log is :

    [ 17.875266] net eth1: initializing cpsw version 1.15 (0)
    [ 17.875299] net eth0: initialized cpsw ale version 1.4
    [ 17.875309] net eth0: ALE Table size 1024
    [ 17.882989] net eth1: phy found : id is : 0xae025022
    [ 17.889122] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [ 23.879044] cpsw 48484000.ethernet eth1: Link is Up - 10Mbps/Half - flow control off
    [ 23.879129] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

  • Have you tried ethtool to change the speed/duplexity ?

    Regards

    Vineet