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

PROCESSOR-SDK-AM437X: CPSW dual_emac only eth0 or eth1 is working

$
0
0

Part Number: PROCESSOR-SDK-AM437X

Hello TI Team,

Hardware Reference :

Software Reference :

  • ti-linux-4.19.y

We are experiencing an issue with two network interfaces and CPSW, maybe a configuration issue.

We have two AR8033-AL1B

  • One RJ45 Copper
  • One SFP Fiber

We can use eth0 or eth1 in Linux. But, we can't use both together.

CPSW Driver :

[ 1.087680] cpsw 4a100000.ethernet: Detected MACID = 9c:1d:58:82:47:0f
[ 1.094287] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[ 1.100726] cpsw 4a100000.ethernet: ALE Table size 1024
[ 1.105985] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[ 1.113909] cpsw 4a100000.ethernet: cpsw: Detected MACID = 9c:1d:58:82:47:11
[ 9.711302] net eth0: initializing cpsw version 1.15 (0)
[ 14.024986] cpsw 4a100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off

RTNETLINK answers: File exists :

root@varsomam43:~# ifup eth1
udhcpc: started, v1.30.1
[  204.235601] net eth1: initializing cpsw version 1.15 (0)
[  204.346604] at803x_config_init: register phy fiber
[  204.353069] Atheros 8031 ethernet 4a101000.mdio:02: attached PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=4a101000.mdio:02, irq=POLL)
udhcpc: sending discover
[  205.448071] at803x_aneg_done: in SGMII mode, if copper side autoneg is successful also check SGMII side autoneg result
[  205.459070] at803x_aneg_done: auto_done via reg_chip_config 32
[  205.464956] cpsw 4a100000.ethernet eth1: Link is Up - 10Mbps/Half - flow control off
udhcpc: sending discover
udhcpc: sending select for 192.168.100.159
udhcpc: lease of 192.168.100.159 obtained, lease time 7200
RTNETLINK answers: File exists
/etc/udhcpc.d/50default: Adding DNS 192.168.100.1
/etc/udhcpc.d/50default: Adding DNS 192.168.0.244

Devicetree

&mac {
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&cpsw_default>;
	pinctrl-1 = <&cpsw_sleep>;
	dual_emac = <1>;
	status = "okay";
};

&davinci_mdio {
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&davinci_mdio_default>;
	pinctrl-1 = <&davinci_mdio_sleep>;
	status = "okay";

};

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

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

Full Log

Could you please provide some hints on this?

Best regards,


Viewing all articles
Browse latest Browse all 262198

Latest Images

Trending Articles



Latest Images

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