Problem with the ip configuration

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

Problem with the ip configuration

894 Views
dhanushvenugopa
Contributor I

Hi,

Im using the imx6ul-evk board, connected the ethernet cable to the board and when i try to configure the ipaddress to the board error occurs.Please can i know how to resolve this issue.

command : ifconfig eth0 <ip-address> up

Error:fec 2188000.ethernet eth0: Unable to connect to phy
ifconfig: SIOCSIFFLAGS: No such device

Labels (1)
0 Kudos
2 Replies

793 Views
radhika_somaiya
NXP Employee
NXP Employee

Hi Dhanush V,

It is being a long time for this query, have you resolved the problem? I just figure out that this is an issue of improper dts node settings for PHY. Make sure that you define "ethphy0" as a child node of mdio. Please refer to the proper settings as shown below :

&fec1 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_enet1>;
    phy-mode = "rmii";
    phy-handle = <&ethphy0>;
    status = "okay";
};

&fec2 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_enet2>;
    phy-mode = "rmii";
    phy-handle = <&ethphy1>;
    status = "okay";

    mdio {
        #address-cells = <1>;
        #size-cells = <0>;

        ethphy0: ethernet-phy@2 {
            compatible = "ethernet-phy-ieee802.3-c22";
            reg = <2>;
            micrel,led-mode = <1>;
            clocks = <&clks IMX6UL_CLK_ENET_REF>;
            clock-names = "rmii-ref";
        };

        ethphy1: ethernet-phy@1 {
            compatible = "ethernet-phy-ieee802.3-c22";
            reg = <1>;
            micrel,led-mode = <1>;
            clocks = <&clks IMX6UL_CLK_ENET2_REF>;
            clock-names = "rmii-ref";
        };
    };
};
        

Hope this will help you.

Regards,

Radhika Somaiya

0 Kudos

793 Views
joanxie
NXP TechSupport
NXP TechSupport

what bsp do you use? demo image or customized image? pls share the log file with me

0 Kudos