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/AM3352: Fail communicate by dual ethernet.

Part Number: AM3352


Tool/software: Linux

Hello,

1,Now the dts file about Dual ethernet as below:

&mac {
slaves = <2>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&cpsw_default>;
pinctrl-1 = <&cpsw_sleep>;
dual_emac = <1>;
// active_slave = <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>, <4>;
phy-mode = "rgmii-txid";
// dual_emac_res_vlan=<0>;
};

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

2,operate step case 1:
1, ifconfig eth0 192.168.1.12 netmask 255.255.255.0
2, ifconfig eth1 192.168.1.13 netmask 255.255.255.0
3,The host computer is 192.168.1.22
4,connect eth0 to the host computer.
5,From the Board ,ping 192.168.1.22,OK.
6,Switch the cable,connect eth1 to the host computer.
7,From the Board ,ping 192.168.1.22,Fail!

3,operate step case 2:
1, ifconfig eth0 192.168.1.12 netmask 255.255.255.0
2, ifconfig eth1 192.168.2.13 netmask 255.255.255.0
3,The host computer is 192.168.1.22 and 192.168.2.22 on the same NIC card.
4,connect eth0 to the host computer.
5,From the Board ,ping 192.168.1.22,OK.
6,Switch the cable,connect eth1 to the host computer.
7,From the Board ,ping 192.168.2.22,OK!

help me fix it.

Thanks a lot.

Best regards