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
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 = <ðphy0>;
status = "okay";
};&fec2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2>;
phy-mode = "rmii";
phy-handle = <ðphy1>;
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
what bsp do you use? demo image or customized image? pls share the log file with me