Problem with the ip configuration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problem with the ip configuration

928 次查看
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

标签 (1)
0 项奖励
2 回复数

827 次查看
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 项奖励

827 次查看
joanxie
NXP TechSupport
NXP TechSupport

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

0 项奖励