Tool/software:
Hi All,
I am facing an issue while accessing etherent I have am335x-icev2 and i deployed two etherent ports (eth0 and eth1).
I am able to ping back at Kernel level from both port.But i cant get same thing at uboot level ,eth0 is working fine at uboot but eth1 is not working when eth0 is connected then eth1 is also working but as linking up at port 0 but independently eth1 is not working .
Please help to solve this issue if possible:
Here is the DTS structure:
&mac {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&cpsw_default>;
pinctrl-1 = <&cpsw_sleep>;
slaves = <2>;
active_slave = <1>; //added
// dual_emac; //commented
status = "okay";
};
&davinci_mdio {
pinctrl-names = "default", "sleep";
compatible = "ti,cpsw-mdio","ti,davinci_mdio";
pinctrl-0 = <&davinci_mdio_default>;
pinctrl-1 = <&davinci_mdio_sleep>;
status = "okay";
reset-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
//reset-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>, <&gpio3 21 GPIO_ACTIVE_HIGH>;
//reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
reset-delay-us = <2>
};
&cpsw_emac0 {
phy_id = <&davinci_mdio>, <0>;
phy-mode = "rgmii-id";
dual_emac_res_vlan = <1>;
};
&cpsw_emac1 {
phy_id = <&davinci_mdio>, <3>;
phy-mode = "rgmii-id";
dual_emac_res_vlan = <2>;
};
You can see the output when eth0 is connected:
=>ping 192.168.1.20 link up on port 0, speed 100, full duplex Using cpsw device host 192.168.1.20 is alive------->eth1
=> ping 192.168.1.25 link up on port 0, speed 100, full duplex Using cpsw device host 192.168.1.25 is alive------->eth0
when eth0 is not connected:
ping 192.168.1.20 cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT ! mscc_startup ret :-110 before parse status using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in MAC cc:33:31:35:3a:2d HOST MAC de:ad:be:ef:00:00 RNDIS ready ping failed; host 192.168.1.20 is not alive....