eth1 can not work when eth0 is down

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

eth1 can not work when eth0 is down

963 Views
zhipengxie
Contributor II

I have found that some issues in the imx6ul platform,please see below:

1. ifconfig eth0 192.168.1.164 up  <ok>

    ifconfig eth1 192.168.1.149 up  <ok>

2. Plug into eth0,ping 192.168.1.1 <ok>

3. Plug into eth1,ping 192.168.1.1 <ok>

4. Plug into eth1,if I exec the cmd “ifconfig eth0 down”,it will prompt “fec 2188000.ethnet eth1: Link is Down”,and 

    ping 192.168.1.1 is failed

The following is my dts config:

&fec1 {

    pinctrl-name = “default”;

    pinctrl-0 = <&pinctrl_enet1>;

    phy-mode = "rmii";

    phy-handle = <&ethphy0>;

    status = "okay";

}

&fec2 {

    pinctrl-name = “default”;

    pinctrl-0 = <&pinctrl_enet2>;

    phy-mode = "rmii";

    phy-handle = <&ethphy1>;

    status = "okay";

   

    mdio {

        #address-cells = <1>;

        #size-cells = <0>;

        ethphy0: ethernet-phy@1 {

            compatible = "ethernet-phy-ieee802.3-c22";

            reg = <1>;

        }

        ethphy1: ethernet-phy@5 {

            compatible = "ethernet-phy-ieee802.3-c22";

            reg = <5>;

        }

    }

}

Hope for your support, thanks.

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

675 Views
BiyongSUN
NXP Employee
NXP Employee

We have tested on the i.MX6UL evk board, didn't find any issue.

Please check the below test result.

You'd better to check the hardware to confirm the phy address.

Untitled.png