aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/generic
diff options
context:
space:
mode:
authorSebastian Schaper <openwrt@sebastianschaper.net>2021-03-28 00:32:46 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2022-08-21 00:09:53 +0200
commit527be5a456cecdc4e3296816906e117ec04bfdff (patch)
tree95ad54a36f6ff3ddc961cd9a20dcca4a115014a5 /target/linux/ath79/generic
parent251ecfe37914919422d74dd32fab15a86f65e879 (diff)
downloadupstream-527be5a456cecdc4e3296816906e117ec04bfdff.tar.gz
upstream-527be5a456cecdc4e3296816906e117ec04bfdff.tar.bz2
upstream-527be5a456cecdc4e3296816906e117ec04bfdff.zip
ath79: add support for ZyXEL NWA1123-NI
Specifications: * AR9342, 16 MiB Flash, 64 MiB RAM, 802.11n 2T2R, 2.4 GHz * AR9382 PCIe card, 802.11n 2T2R, 5 GHz * 1x Gigabit Ethernet (AR8035), 802.3af PoE Installation: * OEM Web UI is at 192.168.1.2 login as `admin` with password `1234` * Flash factory-AAEO.bin The string `AAEO` needs to be present within the file name of the uploaded image to be accepted by the OEM Web-based updater, the factory image is named accordingly to save the user from the hassle of manual renaming. TFTP Recovery: * Open the case, connect to TTL UART port (this is the official method described by Zyxel, the reset button is useless during power-on) * Extract factory image (.tar.bz2), serve `vmlinux_mi124_f1e.lzma.uImage` and `mi124_f1e-jffs2` via tftp at 192.168.1.10 * Interrupt uboot countdown, execute commands `run lk` `run lf` to flash the kernel / filesystem accordingly MAC addresses as verified by OEM firmware: use address source LAN *:fb mib0 0x30 ('eth0mac'), art 0x1002 (label) 2g *:fc mib0 0x4b ('wifi0mac') 5g *:fd mib0 0x66 ('wifi1mac') Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
Diffstat (limited to 'target/linux/ath79/generic')
-rw-r--r--target/linux/ath79/generic/base-files/etc/board.d/02_network3
-rw-r--r--target/linux/ath79/generic/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac4
2 files changed, 6 insertions, 1 deletions
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network
index 34f04b5300..f0bc9b3a9c 100644
--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network
@@ -110,7 +110,8 @@ ath79_setup_interfaces()
ubnt,unifi|\
wd,mynet-wifi-rangeextender|\
winchannel,wb2000|\
- zyxel,nwa1121-ni)
+ zyxel,nwa1121-ni|\
+ zyxel,nwa1123-ni)
ucidef_set_interface_lan "eth0"
;;
airtight,c-75)
diff --git a/target/linux/ath79/generic/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ath79/generic/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
index 95ff6083c7..15bdf81a05 100644
--- a/target/linux/ath79/generic/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
+++ b/target/linux/ath79/generic/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
@@ -68,4 +68,8 @@ case "$board" in
[ "$PHYNBR" -eq 1 ] && \
mtd_get_mac_ascii u-boot-env ethaddr > /sys${DEVPATH}/macaddress
;;
+ zyxel,nwa1123-ni)
+ [ "$PHYNBR" -eq 1 ] && \
+ mtd_get_mac_text mib0 0x66 > /sys${DEVPATH}/macaddress
+ ;;
esac