Skip to content
Snippets Groups Projects
Commit 40530c8e authored by Petr Štetiar's avatar Petr Štetiar Committed by Daniel Golle
Browse files

ath79: Add support for Ubiquiti Nanostation M (XW)


CPU:  AR9342 SoC
RAM:      64 MB DDR2
Flash:     8 MB NOR SPI
Ports: 2x100 MBit (24V PoE in, 24V PoE out), AR8236 switch
WLAN:  2.4/5 GHz
UART:      1 UART
LEDs:        Power, 2x Ethernet, 4x RSSI LEDs (orange, red, 2x green)
Buttons:     Reset

Flashing instructions using recovery method over TFTP

 1. Unplug the ethernet cable from the router.
 2. Using paper clip press and hold the router's reset button. Make sure
    you can feel it depressed by the paper clip. Do not release the button
    until step 4.
 3. While keeping the reset button pressed in, plug the ethernet cable
    back into the AP. Keep the reset button depressed until you see the
    device's LEDs flashing in upgrade mode (alternating LED1/LED3 and
    LED2/LED4), this may take up to 25 seconds.
 4. You may release the reset button, now the device should be in TFTP
    transfer mode.
 5. Set a static IP on your Computer's NIC. A static IP of 192.168.1.25/24
    should work.
 6. Plug the PoE injector's LAN cable directly to your computer.
 7. Start tftp client and issue following commands:
     tftp> binary
     tftp> connect 192.168.1.20
     tftp> put openwrt-ath79-generic-ubnt-nano-m-xw-squashfs-factory.bin

Tested-by: default avatarJoe Ayers <ae6xe@arrl.net>
Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
parent 368b6d1a
No related branches found
No related tags found
No related merge requests found
...@@ -149,6 +149,7 @@ tplink,tl-wr841-v11) ...@@ -149,6 +149,7 @@ tplink,tl-wr841-v11)
ubnt,bullet-m|\ ubnt,bullet-m|\
ubnt,bullet-m-xw|\ ubnt,bullet-m-xw|\
ubnt,nano-m|\ ubnt,nano-m|\
ubnt,nanostation-m-xw|\
ubnt,rocket-m) ubnt,rocket-m)
ucidef_set_rssimon "wlan0" "200000" "1" ucidef_set_rssimon "wlan0" "200000" "1"
ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100" ucidef_set_led_rssi "rssilow" "RSSILOW" "ubnt:red:link1" "wlan0" "1" "100"
......
...@@ -212,6 +212,10 @@ ath79_setup_interfaces() ...@@ -212,6 +212,10 @@ ath79_setup_interfaces()
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"0@eth1" "2:lan:3" "3:lan:2" "4:lan:1" "0@eth1" "2:lan:3" "3:lan:2" "4:lan:1"
;; ;;
ubnt,nanostation-m-xw)
ucidef_add_switch "switch0" \
"0@eth0" "5:lan" "1:wan"
;;
ubnt,nanostation-ac|\ ubnt,nanostation-ac|\
ubnt,unifiac-mesh-pro|\ ubnt,unifiac-mesh-pro|\
ubnt,unifiac-pro) ubnt,unifiac-pro)
......
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "ar9342_ubnt_xw.dtsi"
/ {
compatible = "ubnt,nanostation-m-xw", "ubnt,xw", "qca,ar9342";
model = "Ubiquiti Nanostation M (XW)";
};
&mdio0 {
status = "okay";
phy4-mii-enable;
phy-mask = <0x23>;
phy4: ethernet-phy@0 {
reg = <0>;
phy-mode = "mii";
};
};
&eth0 {
status = "okay";
phy-mode = "mii";
phy-handle = <&phy4>;
gmac-config {
device = <&gmac>;
mii-gmac0 = <1>;
mii-gmac0-slave = <1>;
};
};
...@@ -113,6 +113,12 @@ define Device/ubnt_nano-m ...@@ -113,6 +113,12 @@ define Device/ubnt_nano-m
endef endef
TARGET_DEVICES += ubnt_nano-m TARGET_DEVICES += ubnt_nano-m
define Device/ubnt_nanostation-m-xw
$(Device/ubnt-xw)
DEVICE_TITLE := Ubiquiti Nanostation M (XW)
endef
TARGET_DEVICES += ubnt_nanostation-m-xw
define Device/ubnt_lap-120 define Device/ubnt_lap-120
$(Device/ubnt-wa) $(Device/ubnt-wa)
DEVICE_TITLE := Ubiquiti LiteAP ac (LAP-120) DEVICE_TITLE := Ubiquiti LiteAP ac (LAP-120)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment