OpenWrt Forum Archive

Topic: Supporting Ubiquiti Rocket M5 XW wired network (AR8035 chip)

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,

Ubiquiti recently released the XW version of the Rocket M5. The hardware is very similar to other M5 XW devices (like the NanoStation M5 XW and the NanoStation Loco M5 XW) already supported by OpenWrt.

I've connected the TTL port and flashed the factory images of both the NSM5XW and the NSLM5XW with partial success. The device boots and everything seems to be working OK except the Ethernet device. I see this message during boot with the NSM5XW image:

[    0.630000] libphy: ag71xx_mdio: probed
[    1.220000] ag71xx ag71xx.0: no PHY found with phy_mask=00000023

or phy_mask=00000002 with the NSLM5XW image (see full dmesg output link below).

From the bootloader and the stock firmware logs I see that the Ethernet chip is an AR8035, which I believe is not present in the other XW devices. I also see this message there:

[   15.754000] ATH_MAC_TIMER: MAC 0 PHY 0x04 - LINK NOW UP [link=UP speed=100Mbps duplex=full duplex carrier=0]

I've tried tweaking the 608-MIPS-ath79-ubnt-xm-add-more-boards.patch file in target/linux/ar71xx/patches-3.18 to use phy_mask=0x04 and a couple of things more but I couldn't make it work.

Any ideas, please?

Thanks for your help!

Roger


OpenWrt trunk (NanoStation M5 XW): bootlog: http://pastebin.com/ERN6ARCU
Stock firmware (XW.v5.5.10): bootlog: http://pastebin.com/t2YqhHfx
Stock firmware (XW.v5.5.10): modules: http://pastebin.com/e2iE6NLN
Stock firmware (XW.v5.5.10): interfaces: http://pastebin.com/PR6fQFbG
Stock firmware (XW.v5.5.10): U-Boot: http://pastebin.com/Wa53K1jv
Stock firmware (XW.v5.5.10): partitions: http://pastebin.com/1abeb9ru

- increase the verbosity of Kernel by adding debug / other switches to commandline
- look at other commits / platforms that use the same AR8035 and look how its setup there regarding pins/registers

found:
- https://dev.openwrt.org/changeset/40509 ("AR8035 PHYs requires special register settings to work reliably on these boards.")
- https://github.com/openwrt/bcm63xx-next … r8035.dtsi

look at the ag71xx driver in
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx

Any progress to make the XW work?

Awesome, thank you!

The discussion might have continued from here.