AnsweredAssumed Answered

Ping happening in uboot but not in kernel

Question asked by sameerarvikar on Jun 21, 2017
Latest reply on Jun 26, 2017 by Yiping Wang

I am using p2041 and vsc8514 phy

in uboot i can ping successfully using fm1-gb4(rgmii) interface

but when i try in kernel ,it doesn't pings

other interfaces are working fine in uboot and kernel

I have found that phy is not getting configured in case of fm1-gb4

below log is for fm1-gb4

root@p2041rdb:~# ifconfig fm1-gb4 down                                                                                                                 
root@p2041rdb:~# ifconfig fm1-gb4 up
mdio bus Freescale PowerQUICC MII Bus
RGMII_reg22 = 0
RGMII_reg22 = 0, err = 0
RGMII_Init 0x1f = 0, err = 0
RGMII_Init 0x13 = 0, err = 0
RGMII_Init 0x1f = 0, err = 0
RGMII_Init 0x18 = 0, err = 0
RGMII_Init 0x12 = 0, err = 0
RGMII_Init 0x1f = 0, err = 0
RGMII_Init 0x12 = 0, err = 0
RGMII_Init 0x1f = 0
 err = 0
Autonseg 0x00 = 1140
 err = 0
phyaddr 5 phyid 459986

below log is for fm1-gb3

root@p2041rdb:~# ifconfig fm1-gb3 down
root@p2041rdb:~# ifconfig fm1-gb3 up   
mdio bus Freescale PowerQUICC MII Bus
RGMII_reg22 = 3200
RGMII_reg22 = 3200, err = 0
RGMII_Init 0x1f = 10, err = 0
RGMII_Init 0x13 = 800f, err = 0
RGMII_Init 0x1f = 0, err = 0
RGMII_Init 0x18 = 2041, err = 0
RGMII_Init 0x12 = a8, err = 0
RGMII_Init 0x1f = 0
 err = 0
Autonseg 0x00 = 1140
 err = 0
phyaddr 4 phyid 459986

As we can see clearly fm1-gb3 interface phy registers are initialized but in case of fm1-gb4 all values are 0

what should i change in dts file or kernel to make it work

 

Thanks and Regards

Outcomes