Problem with the ip configuration

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Problem with the ip configuration

927件の閲覧回数
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 返答(返信)

826件の閲覧回数
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 件の賞賛

826件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

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

0 件の賞賛