OpenWrt Forum Archive

Topic: Ubiquiti PowerBeam M5 400 PBE-M5-400 Ethernet only works in 100baseT

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I've flashed a Ubiquiti PowerBeam M5 400 with the rocket-m-xw trunk firmware, since they have a very similar hardware (SoC, wireless, NIC, etc.). Everything works fine except for the Ethernet port at Gigabit speeds.

When I connect the PBE-M5-400 to a 100baseT device (e.g. laptop, USB Ethernet dongle, etc.) the Ethernet interface works fine. However, when I connect a Gigabit (1000baseT) device, the interface does not respond. This is the dmesg output when I switch from a 100baseT device to a 1000baseT one:

[ 2976.960000] eth0: link down
[ 2976.960000] br-lan: port 1(eth0) entered disabled state
[ 2978.960000] eth0: link up (100Mbps/Full duplex)
[ 2978.960000] br-lan: port 1(eth0) entered forwarding state
[ 2978.970000] br-lan: port 1(eth0) entered forwarding state
[ 2980.970000] br-lan: port 1(eth0) entered forwarding state
[ 2982.960000] eth0: link down
[ 2982.960000] br-lan: port 1(eth0) entered disabled state
[ 2983.960000] eth0: link up (1000Mbps/Full duplex)
[ 2983.960000] br-lan: port 1(eth0) entered forwarding state
[ 2983.970000] br-lan: port 1(eth0) entered forwarding state
[ 2985.970000] br-lan: port 1(eth0) entered forwarding state

The kernel output shows that the Ethernet PHY  (Atheros AR8035) is detected:

[    0.610000] 0x0000007f0000-0x000000800000 : "EEPROM"
[    0.630000] libphy: ag71xx_mdio: probed
[    1.300000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:04 [uid=004dd072, driver=Atheros 8035 ethernet]
[    1.310000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    1.310000] TCP: cubic registered

Maybe this is because of the pll_1000 value missing? I have no clue which can be this value, other than just testing the ones found in other devices.

Roger

Ok, this was missing:

<code>
ath79_eth0_pll_data.pll_1000 = 0x06000000;
</code>

Sending patch smile

The discussion might have continued from here.