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

Cédric Le Goater clg at kaod.org
Wed Sep 26 16:58:14 AEST 2018


On 9/26/18 5:49 AM, Andrew Jeffery wrote:
> Hello,
> 
> On Wed, 26 Sep 2018, at 11:47, xiuzhi wrote:
>> 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
> 
> The failure to apply the pinctrl configuration isn't going to help. Can you please open an issue on GitHub, provide the full dmesg output and point to the kernel tree and configuration you are building?

yes. 

The OpenBMC kernel works fine but the DTS is adding the mdio pins. 

Thanks,

C.  


> Thanks,
> 
> Andrew
> 
>>
>> [    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



More information about the openbmc mailing list