<div dir="ltr">Yes, but you can't connect an openwrt flashed unit to a stock airmax AP and if you wanted to convert the AP to openwrt the performance tanks unbelievably for outdoor PtMP. easily a 30%+ loss. However, if you're wanting to get into 'wifi' at range this does work but you can't get very far because most wifi APs timings are too tight.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 15, 2023 at 9:18 AM Dave Taht via LibreQoS <<a href="mailto:libreqos@lists.bufferbloat.net">libreqos@lists.bufferbloat.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">anybody still using these?<br>
<br>
---------- Forwarded message ---------<br>
From: Daniel González Cabanelas <<a href="mailto:dgcbueu@gmail.com" target="_blank">dgcbueu@gmail.com</a>><br>
Date: Wed, Mar 15, 2023 at 8:13 AM<br>
Subject: [PATCH] ath79: Add support for Ubiquiti NanoBeam AC Gen2 XC<br>
To: <<a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank">openwrt-devel@lists.openwrt.org</a>><br>
<br>
<br>
The Ubiquiti NanoBeam AC Gen2 XC (NBE-5AC-Gen2) is an outdoor 802.11ac CPE<br>
with a waterproof casing (ultrasonically welded) and bulb shaped.<br>
<br>
It's the same board as Gen1 but with a small antenna routed out of the SoC<br>
and calibration data for this management radio in the "art" partition.<br>
<br>
Hardware:<br>
SoC: Qualcomm Atheros QCA9558<br>
CPU: MIPS 74Kc V5.0 720 MHz, 1 core<br>
RAM: 128 MB DDR2<br>
Flash: 16 MB SPI-NOR, MX25L12805D<br>
Ethernet: 1x GbE<br>
WiFi 5 GHz: Qualcomm Atheros QCA988X<br>
WiFi 2.4 GHz: SoC (management radio)<br>
Internal antenna 1: 19 dBi planar (5 GHz)<br>
Internal antenna 2: 2 dBi PCB, connected via UFL (SoC)<br>
Buttons: 1x reset<br>
LEDs: 1x power, 1x Ethernet, 4x RSSI, all blue<br>
PSU: 24 Vdc passive PoE<br>
<br>
Installation from stock airOS firmware:<br>
- Follow instructions for XC-type Ubiquiti devices on OpenWrt wiki at<br>
<a href="https://openwrt.org/toh/ubiquiti/common" rel="noreferrer" target="_blank">https://openwrt.org/toh/ubiquiti/common</a><br>
<br>
Back to stock firmware:<br>
- Follow instructions for Ubiquiti recovery via TFTP at OpenWrt wiki.<br>
<br>
Signed-off-by: Daniel González Cabanelas <<a href="mailto:dgcbueu@gmail.com" target="_blank">dgcbueu@gmail.com</a>><br>
---<br>
.../dts/qca9558_ubnt_nanobeam-ac-gen2-xc.dts | 17 +++<br>
.../ath79/dts/qca9558_ubnt_nanobeam-ac-xc.dts | 105 +----------------<br>
.../dts/qca9558_ubnt_nanobeam-ac-xc.dtsi | 107 ++++++++++++++++++<br>
.../generic/base-files/etc/board.d/01_leds | 1 +<br>
.../generic/base-files/etc/board.d/02_network | 2 +<br>
.../etc/hotplug.d/firmware/11-ath10k-caldata | 1 +<br>
target/linux/ath79/image/<a href="http://generic-ubnt.mk" rel="noreferrer" target="_blank">generic-ubnt.mk</a> | 10 ++<br>
7 files changed, 141 insertions(+), 102 deletions(-)<br>
create mode 100644 target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-gen2-xc.dts<br>
create mode 100644 target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-xc.dtsi<br>
<br>
diff --git a/target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-gen2-xc.dts<br>
b/target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-gen2-xc.dts<br>
new file mode 100644<br>
index 0000000000..629b5bfe0a<br>
--- /dev/null<br>
+++ b/target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-gen2-xc.dts<br>
@@ -0,0 +1,17 @@<br>
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT<br>
+/*<br>
+ * Device Tree file for Ubiquiti Nanobeam NBE-5AC-Gen2 (XC)<br>
+ */<br>
+<br>
+#include "qca9558_ubnt_nanobeam-ac-xc.dtsi"<br>
+<br>
+/ {<br>
+ compatible = "ubnt,nanobeam-ac-gen2-xc", "ubnt,xc", "qca,qca9558";<br>
+ model = "Ubiquiti NanoBeam AC Gen2 (XC)";<br>
+};<br>
+<br>
+&wmac {<br>
+ status = "okay";<br>
+<br>
+ mtd-cal-data = <&art 0x1000>;<br>
+};<br>
diff --git a/target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-xc.dts<br>
b/target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-xc.dts<br>
index 91675ff615..898c249154 100644<br>
--- a/target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-xc.dts<br>
+++ b/target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-xc.dts<br>
@@ -1,110 +1,11 @@<br>
-// SPDX-License-Identifier: GPL-2.0-only<br>
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT<br>
/*<br>
* Device Tree file for Ubiquiti Nanobeam NBE-5AC-19 (XC)<br>
- *<br>
- * Copyright (C) 2022 Daniel González Cabanelas <<a href="mailto:dgcbueu@gmail.com" target="_blank">dgcbueu@gmail.com</a>><br>
- * based on device tree from qca9558_ubnt_powerbeam-5ac-500.dts<br>
*/<br>
-<br>
-#include "qca955x_ubnt_xc.dtsi"<br>
+<br>
+#include "qca9558_ubnt_nanobeam-ac-xc.dtsi"<br>
<br>
/ {<br>
compatible = "ubnt,nanobeam-ac-xc", "ubnt,xc", "qca,qca9558";<br>
model = "Ubiquiti NanoBeam AC Gen1 (XC)";<br>
-<br>
- aliases {<br>
- led-boot = &led_power;<br>
- led-failsafe = &led_power;<br>
- led-running = &led_power;<br>
- led-upgrade = &led_power;<br>
- };<br>
-<br>
- keys {<br>
- compatible = "gpio-keys";<br>
-<br>
- reset {<br>
- label = "Reset button";<br>
- linux,code = <KEY_RESTART>;<br>
- gpios = <&gpio 19 GPIO_ACTIVE_LOW>;<br>
- debounce-interval = <60>;<br>
- };<br>
- };<br>
-<br>
- led_spi {<br>
- compatible = "spi-gpio";<br>
- #address-cells = <1>;<br>
- #size-cells = <0>;<br>
-<br>
- sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;<br>
- mosi-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;<br>
- cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;<br>
- num-chipselects = <1>;<br>
-<br>
- led_gpio: led_gpio@0 {<br>
- compatible = "fairchild,74hc595";<br>
- reg = <0>;<br>
- gpio-controller;<br>
- #gpio-cells = <2>;<br>
- registers-number = <1>;<br>
- spi-max-frequency = <10000000>;<br>
- enable-gpios = <&gpio 18 GPIO_ACTIVE_LOW>;<br>
- };<br>
- };<br>
-<br>
- leds {<br>
- compatible = "gpio-leds";<br>
-<br>
- rssi0 {<br>
- label = "blue:rssi0";<br>
- gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;<br>
- };<br>
- rssi1 {<br>
- label = "blue:rssi1";<br>
- gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;<br>
- };<br>
- rssi2 {<br>
- label = "blue:rssi2";<br>
- gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;<br>
- };<br>
- rssi3 {<br>
- label = "blue:rssi3";<br>
- gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;<br>
- };<br>
- led_power: power {<br>
- label = "blue:power";<br>
- gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;<br>
- default-state = "on";<br>
- };<br>
- };<br>
-};<br>
-<br>
-&mdio0 {<br>
- status = "okay";<br>
-<br>
- phy4: ethernet-phy@4 {<br>
- phy-mode = "sgmii";<br>
- reg = <4>;<br>
- at803x-override-sgmii-link-check;<br>
- };<br>
-};<br>
-<br>
-ð0 {<br>
- status = "okay";<br>
-<br>
- pll-reg = <0 0x48 0>;<br>
- pll-data = <0x03000000 0x00000101 0x00001313>;<br>
- nvmem-cells = <&macaddr_art_0>;<br>
- nvmem-cell-names = "mac-address";<br>
- phy-mode = "sgmii";<br>
- phy-handle = <&phy4>;<br>
-};<br>
-<br>
-&art {<br>
- compatible = "nvmem-cells";<br>
- #address-cells = <1>;<br>
- #size-cells = <1>;<br>
-<br>
- macaddr_art_0: macaddr@0 {<br>
- reg = <0x0 0x6>;<br>
- };<br>
};<br>
diff --git a/target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-xc.dtsi<br>
b/target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-xc.dtsi<br>
new file mode 100644<br>
index 0000000000..e68ceb7f5c<br>
--- /dev/null<br>
+++ b/target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-xc.dtsi<br>
@@ -0,0 +1,107 @@<br>
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT<br>
+/*<br>
+ * Device Tree file for Ubiquiti Nanobeam XC<br>
+ *<br>
+ * Copyright (C) 2022 Daniel González Cabanelas <<a href="mailto:dgcbueu@gmail.com" target="_blank">dgcbueu@gmail.com</a>><br>
+ * based on device tree from qca9558_ubnt_powerbeam-5ac-500.dts<br>
+ */<br>
+<br>
+#include "qca955x_ubnt_xc.dtsi"<br>
+<br>
+/ {<br>
+ aliases {<br>
+ led-boot = &led_power;<br>
+ led-failsafe = &led_power;<br>
+ led-running = &led_power;<br>
+ led-upgrade = &led_power;<br>
+ };<br>
+<br>
+ keys {<br>
+ compatible = "gpio-keys";<br>
+<br>
+ reset {<br>
+ label = "Reset button";<br>
+ linux,code = <KEY_RESTART>;<br>
+ gpios = <&gpio 19 GPIO_ACTIVE_LOW>;<br>
+ debounce-interval = <60>;<br>
+ };<br>
+ };<br>
+<br>
+ led_spi {<br>
+ compatible = "spi-gpio";<br>
+ #address-cells = <1>;<br>
+ #size-cells = <0>;<br>
+<br>
+ sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;<br>
+ mosi-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;<br>
+ cs-gpios = <&gpio 3 GPIO_ACTIVE_LOW>;<br>
+ num-chipselects = <1>;<br>
+<br>
+ led_gpio: led_gpio@0 {<br>
+ compatible = "fairchild,74hc595";<br>
+ reg = <0>;<br>
+ gpio-controller;<br>
+ #gpio-cells = <2>;<br>
+ registers-number = <1>;<br>
+ spi-max-frequency = <10000000>;<br>
+ enable-gpios = <&gpio 18 GPIO_ACTIVE_LOW>;<br>
+ };<br>
+ };<br>
+<br>
+ leds {<br>
+ compatible = "gpio-leds";<br>
+<br>
+ rssi0 {<br>
+ label = "blue:rssi0";<br>
+ gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;<br>
+ };<br>
+ rssi1 {<br>
+ label = "blue:rssi1";<br>
+ gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;<br>
+ };<br>
+ rssi2 {<br>
+ label = "blue:rssi2";<br>
+ gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;<br>
+ };<br>
+ rssi3 {<br>
+ label = "blue:rssi3";<br>
+ gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;<br>
+ };<br>
+ led_power: power {<br>
+ label = "blue:power";<br>
+ gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;<br>
+ default-state = "on";<br>
+ };<br>
+ };<br>
+};<br>
+<br>
+&mdio0 {<br>
+ status = "okay";<br>
+<br>
+ phy4: ethernet-phy@4 {<br>
+ phy-mode = "sgmii";<br>
+ reg = <4>;<br>
+ at803x-override-sgmii-link-check;<br>
+ };<br>
+};<br>
+<br>
+ð0 {<br>
+ status = "okay";<br>
+<br>
+ pll-reg = <0 0x48 0>;<br>
+ pll-data = <0x03000000 0x00000101 0x00001313>;<br>
+ nvmem-cells = <&macaddr_art_0>;<br>
+ nvmem-cell-names = "mac-address";<br>
+ phy-mode = "sgmii";<br>
+ phy-handle = <&phy4>;<br>
+};<br>
+<br>
+&art {<br>
+ compatible = "nvmem-cells";<br>
+ #address-cells = <1>;<br>
+ #size-cells = <1>;<br>
+<br>
+ macaddr_art_0: macaddr@0 {<br>
+ reg = <0x0 0x6>;<br>
+ };<br>
+};<br>
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/01_leds<br>
b/target/linux/ath79/generic/base-files/etc/board.d/01_leds<br>
index 5855d2a928..a91e82f5e6 100644<br>
--- a/target/linux/ath79/generic/base-files/etc/board.d/01_leds<br>
+++ b/target/linux/ath79/generic/base-files/etc/board.d/01_leds<br>
@@ -464,6 +464,7 @@ ubnt,bullet-ac|\<br>
ubnt,nanobeam-ac|\<br>
ubnt,nanobeam-ac-gen2|\<br>
ubnt,nanobeam-ac-xc|\<br>
+ubnt,nanobeam-ac-gen2-xc|\<br>
ubnt,nanostation-ac|\<br>
ubnt,powerbeam-5ac-gen2)<br>
ucidef_set_rssimon "wlan0" "200000" "1"<br>
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network<br>
b/target/linux/ath79/generic/base-files/etc/board.d/02_network<br>
index b20a3c13f8..f5137385c2 100644<br>
--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network<br>
+++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network<br>
@@ -101,6 +101,7 @@ ath79_setup_interfaces()<br>
ubnt,litebeam-ac-gen2|\<br>
ubnt,nanobeam-ac|\<br>
ubnt,nanobeam-ac-xc|\<br>
+ ubnt,nanobeam-ac-gen2-xc|\<br>
ubnt,nanostation-ac-loco|\<br>
ubnt,nanostation-loco-m-xw|\<br>
ubnt,powerbeam-5ac-500|\<br>
@@ -774,6 +775,7 @@ ath79_setup_macs()<br>
ubnt,litebeam-ac-gen2|\<br>
ubnt,nanobeam-ac-gen2|\<br>
ubnt,nanobeam-ac-xc|\<br>
+ ubnt,nanobeam-ac-gen2-xc|\<br>
ubnt,powerbeam-5ac-500|\<br>
ubnt,powerbeam-5ac-gen2)<br>
label_mac=$(mtd_get_mac_binary art 0x5006)<br>
diff --git a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata<br>
b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata<br>
index 4db311fde0..a79781237b 100644<br>
--- a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata<br>
+++ b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata<br>
@@ -45,6 +45,7 @@ case "$FIRMWARE" in<br>
ubnt,nanobeam-ac|\<br>
ubnt,nanobeam-ac-gen2|\<br>
ubnt,nanobeam-ac-xc|\<br>
+ ubnt,nanobeam-ac-gen2-xc|\<br>
ubnt,nanostation-ac|\<br>
ubnt,nanostation-ac-loco|\<br>
ubnt,powerbeam-5ac-500|\<br>
diff --git a/target/linux/ath79/image/<a href="http://generic-ubnt.mk" rel="noreferrer" target="_blank">generic-ubnt.mk</a><br>
b/target/linux/ath79/image/<a href="http://generic-ubnt.mk" rel="noreferrer" target="_blank">generic-ubnt.mk</a><br>
index 0f70649d03..a78ccaef82 100644<br>
--- a/target/linux/ath79/image/<a href="http://generic-ubnt.mk" rel="noreferrer" target="_blank">generic-ubnt.mk</a><br>
+++ b/target/linux/ath79/image/<a href="http://generic-ubnt.mk" rel="noreferrer" target="_blank">generic-ubnt.mk</a><br>
@@ -87,6 +87,16 @@ define Device/ubnt_nanobeam-ac-xc<br>
endef<br>
TARGET_DEVICES += ubnt_nanobeam-ac-xc<br>
<br>
+define Device/ubnt_nanobeam-ac-gen2-xc<br>
+ $(Device/ubnt-xc)<br>
+ SOC := qca9558<br>
+ DEVICE_MODEL := NanoBeam AC<br>
+ DEVICE_VARIANT := Gen2 (XC)<br>
+ SUPPORTED_DEVICES += ubnt,nanobeam-ac-xc<br>
+ DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds<br>
+endef<br>
+TARGET_DEVICES += ubnt_nanobeam-ac-gen2-xc<br>
+<br>
define Device/ubnt_nanobeam-m5-xw<br>
$(Device/ubnt-xw)<br>
DEVICE_MODEL := NanoBeam M5<br>
--<br>
2.39.2<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/mailman/listinfo/openwrt-devel" rel="noreferrer" target="_blank">https://lists.openwrt.org/mailman/listinfo/openwrt-devel</a><br>
<br>
<br>
-- <br>
Come Heckle Mar 6-9 at: <a href="https://www.understandinglatency.com/" rel="noreferrer" target="_blank">https://www.understandinglatency.com/</a><br>
Dave Täht CEO, TekLibre, LLC<br>
_______________________________________________<br>
LibreQoS mailing list<br>
<a href="mailto:LibreQoS@lists.bufferbloat.net" target="_blank">LibreQoS@lists.bufferbloat.net</a><br>
<a href="https://lists.bufferbloat.net/listinfo/libreqos" rel="noreferrer" target="_blank">https://lists.bufferbloat.net/listinfo/libreqos</a><br>
</blockquote></div>