MAC#2 RGMII mode can't ping other IP address on AST2500

xiuzhi 1450335857 at qq.com
Wed Sep 26 12:17:46 AEST 2018


Hi All,
   My hardware set AST2500 MAC#2  on RGMII mode. the device is Broadcom BCM54612, The PHY and control is good . But it can not ping other IP. The .dts file is:
 
&mac1 {

        status = "okay";

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_rgmii2_default>;

};

The kernel boot info:

[    3.747357] ftgmac100 1e680000.ethernet: Error applying setting, reverse things back

[    3.755351] ftgmac100 1e680000.ethernet: Generated random MAC address 6a:ba:31:cd:e3:32

[    3.771891] libphy: ftgmac100_mdio: probed

[    3.776178] Generic PHY 1e680000.ethernet--1:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1e680000.ethernet--1:00, irq=POLL)

[    3.799636] ftgmac100 1e680000.ethernet eth0: irq 19, mapped at 5ae85020

... ...

[  OK  ] Found device /dev/aspeed-lpc-ctrl.

[  OK     17.494678] ftgmac100 1e680000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

m] Created slice[   17.503871] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

 system-xyz.openbmc_project.led.controller.slice.

         Starting Network Name Resolution...

[  OK  ] Reached target System Time Synchronized.

......

The values of register SCU0C and SCU70 are correct, the values are:

#devmem 0x1e6e200C

0xFFDD7A8B,  the bit 21 is 0(MAC#2 enable clock running) ,the bit 20 is 1

#dev mem 0x1e6e2070

0xF109F296 , the bit 7 is 1 (RGMII),the bit6 is 0




Execting the command "ifconfig eth0 up" log is:

root at romulus:~# ifconfig eth0 up  

[  274.978358] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

root at romulus:~# [  274.986878] ftgmac100 1e680000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

[  274.995944] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready 

My bmc ip is 192.168.120.141, it can't ping other IPs.

I also set the gateway. route add default gw 192.168.120.254.
I trace the error  "ftgmac100 1e680000.ethernet: Error applying setting, reverse things back" in file drivers/pinctrl/core.c  
L1206 
list_for_each_entry(setting, &stte->settings,node)
switch(setting->type){
case PIN_MAP_TYPE_MUX_GROUP
      ret = pinmux_enable_setting(setting); 
}
the ret value is -1 
My kernel version is 4.17.14. The other kernel versions reproduce the same error.
What is wrong with it?


Xiuzhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20180926/3c861bce/attachment.html>


More information about the openbmc mailing list