Skip to contentSkip to conversation

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

DISCUSSION xiuzhi 3 participants 3 messages Sep 26, 2018

lore
Share & tools
lore

xiuzhi

author
#0 lore raw

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@romulus:~# ifconfig eth0 up  
[  274.978358] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
root@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

#1 lore raw

Hello,

Quoted 13 lines · xiuzhi

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>;
Quoted 6 lines

};

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?

Thanks,

Andrew

Quoted 71 lines
[    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@romulus:~# ifconfig eth0 up  
[  274.978358] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
root@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

#2 lore raw
Quoted 16 lines · Andrew Jeffery

Hello,

Quoted 13 lines · xiuzhi

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>;
Quoted 8 lines
Quoted 6 lines

};

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.

Quoted 75 lines

Thanks,

Andrew

Quoted 71 lines
[    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@romulus:~# ifconfig eth0 up  
[  274.978358] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
root@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