AnsweredAssumed Answered

mx6 ethernet ping fail

Question asked by Xiaoqiang Yang on Apr 20, 2015
Latest reply on Apr 22, 2015 by alejandrolozano

Hi all,

 

We designed a new mx6q board based on i.MX6Q-SDP. We replaced the PHY chip AR8031 with RTL8211F.

Our IOMUX is the same as the reference board :

MX6Q_PAD_ENET_MDIO__ENET_MDIO,

MX6Q_PAD_ENET_MDC__ENET_MDC,

MX6Q_PAD_RGMII_TXC__ENET_RGMII_TXC,

MX6Q_PAD_RGMII_TD0__ENET_RGMII_TD0,

MX6Q_PAD_RGMII_TD1__ENET_RGMII_TD1,

MX6Q_PAD_RGMII_TD2__ENET_RGMII_TD2,

MX6Q_PAD_RGMII_TD3__ENET_RGMII_TD3,

MX6Q_PAD_RGMII_TX_CTL__ENET_RGMII_TX_CTL,

MX6Q_PAD_ENET_REF_CLK__ENET_TX_CLK,

MX6Q_PAD_RGMII_RXC__ENET_RGMII_RXC,

MX6Q_PAD_RGMII_RD0__ENET_RGMII_RD0,

MX6Q_PAD_RGMII_RD1__ENET_RGMII_RD1,

MX6Q_PAD_RGMII_RD2__ENET_RGMII_RD2,

MX6Q_PAD_RGMII_RD3__ENET_RGMII_RD3,

MX6Q_PAD_RGMII_RX_CTL__ENET_RGMII_RX_CTL,

In u-boot, after I set mac addr and ipaddr, I use ping command  to test the ethernet:

MX6Q  U-Boot > ping 192.168.2.1

FEC: Link is Up 79ad

Using FEC0 device

ping failed; host 192.168.2.1 is not alive

I can get a standard 125M Hz clock on CLK_OUT pin as ETH_REF_CLK. And the green led on RJ45 flashed very fast.

I can't get any packets using wireshark.

Below is the return of mii info command--->

MX6Q U-Boot > mii info

PHY 0x00: OUI = 0x0732, Model = 0x11, Rev = 0x06, 100baseT, FDX

PHY 0x01: OUI = 0x0732, Model = 0x11, Rev = 0x06, 100baseT, FDX

I can access RTL8211 with either adress 0 or 1, Why there are two devices?

 

In linux it have the same result, it indicated "PHY: 1:00 - Link is Up - 100/Full" and "PHY: 1:00 - Link is Down"

when I connect or disconnect it to network.(Our network switch is 100baseT)

 

The network environment is OK and the reference board's ethernet is OK with the same setting.

Who can help me?

 

 

Any advice will be appreciated.

 

Best Regargs

Xiaoqiang

 

Outcomes