AnsweredAssumed Answered

RMII phy not supported on imx_4.1.15_1.2.0_ga kernel

Question asked by wenming feng on Feb 10, 2017
Latest reply on Feb 13, 2017 by wenming feng

Hi 

I used the buildroot build freescale_imx6dl_sabresd_defconfig the kernel and uboot is used 4.1.15_1.2.0_ga.

I modified the enet to RMII pad as below

MX6_PAD_ENET_MDIO__ENET_MDIO | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_MDC__ENET_MDC | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_CRS_DV__ENET_RX_EN | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_REF_CLK__ENET_TX_CLK | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_TX_EN__ENET_TX_EN | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_RXD0__ENET_RX_DATA0 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_RXD1__ENET_RX_DATA1 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_TXD0__ENET_TX_DATA0 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_ENET_TXD1__ENET_TX_DATA1 | MUX_PAD_CTRL(ENET_PAD_CTRL),
MX6_PAD_GPIO_8__GPIO1_IO08 | MUX_PAD_CTRL(ENET_PAD_CTRL),
/* KSZ8863 PHY Reset */
MX6_PAD_GPIO_7__GPIO1_IO07 | MUX_PAD_CTRL(NO_PAD_CTRL),

 in uboot the mii info can detect the phy, 

 

 

 

=> mii info
PHY 0x01: OUI = 0x0885, Model = 0x03, Rev = 0x00, 100baseT, FDX
PHY 0x02: OUI = 0x0885, Model = 0x03, Rev = 0x00, 10baseT, HDX
PHY 0x03: OUI = 0x0885, Model = 0x03, Rev = 0x00, 100baseT, FDX

 

but in kernel,

 

buildroot login: root
# random: nonblocking pool is initialized
ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

# ifconfig eth0 up
fec 2188000.ethernet eth0: no PHY, assuming direct connection to switch
libphy: PHY fixed-0:00 not found
fec 2188000.ethernet eth0: could not attach to PHY
ifconfig: SIOCSIFFLAGS: No such device
# uname -a
Linux buildroot 4.1.15 #8 SMP PREEMPT Fri Feb 10 13:29:38 PST 2017 armv7l GNU/Linux
#

In another thread I used 3.14.51_1.1.0 the kernel can detect the phy, but no ping send out.

please help,

 

thanks.

wenming

Outcomes