From d8f93200213b9aa1b65fbd06238c22aedc93f885 Mon Sep 17 00:00:00 2001 From: Joe Ayers Date: Sun, 26 May 2019 15:27:49 -0700 Subject: [PATCH] aredn: add GL-iNet AR750 definitions --- README.md | 7 +++++++ configs/ar71xx-generic.config | 1 + files/usr/local/bin/linkled | 3 +++ files/www/cgi-bin/perlfunc.pm | 9 +++++++++ patches/708-define-aredn-networks.patch | 24 ++++++++++++++++++------ 5 files changed, 38 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index dcb3dace..3fbaa643 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ GL.iNet GL-AR150 | gl-ar150 | 64Mb | stable GL.iNet GL-USB150 | gl-usb150 | 64Mb | stable GL.iNet GL-AR300M16 | gl-ar300m | 64Mb | stable GL.iNet GL-AR300M w/ 128Mb NAND | None | 64Mb | Not compatible +GL.iNet GL-AR750 | gl-ar750 | 128Mb | stable Latest Mikrotik installation options are found at: https://www.arednmesh.org/content/installation-instructions-mikrotik-devices @@ -143,6 +144,12 @@ The GL.iNet GL-AR150 and GL-AR300M16 are pre-configured with the following VLANS * Port labeled "WAN": untagged = AREDN WAN * Port labeled "LAN": untagged = AREDN LAN, vlan 2 = DtDLink (device to device) +The GL.iNet GL-AR750 is pre-configured with the following ports, left to right: + +* Left Port with internet globe icon: WAN (untagged) +* Middle Port with "<..>" icon: LAN (untagged) +* Right Port with "<..>" icon: DtDLink (vlan 2) + ## Submitting Bug Reports Please submit all issues to http://github.com/aredn/aredn_ar71xx/issues diff --git a/configs/ar71xx-generic.config b/configs/ar71xx-generic.config index 3e0365da..cff68036 100644 --- a/configs/ar71xx-generic.config +++ b/configs/ar71xx-generic.config @@ -23,6 +23,7 @@ CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_ubnt-lbe-m5=y CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_gl-ar150=y CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_gl-ar300m=y CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_gl-usb150=y +CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_gl-ar750=y CONFIG_HAS_SUBTARGETS=y CONFIG_HAS_DEVICES=y CONFIG_TARGET_BOARD="ar71xx" diff --git a/files/usr/local/bin/linkled b/files/usr/local/bin/linkled index 8ae3dfcf..d6168974 100755 --- a/files/usr/local/bin/linkled +++ b/files/usr/local/bin/linkled @@ -33,6 +33,9 @@ case "$BOARD_TYPE" in gl-usb150) LINK1LED=$(readlink -f '/sys/class/leds/gl-usb150:green:wlan') ;; + gl-ar750) + LINK1LED=$(readlink -f '/sys/class/leds/gl-ar750:white:wlan5g') + ;; rb-912uag-5hpnd|rb-911g-5hpnd) LINK1LED=$(readlink -f '/sys/class/leds/rb:green:led1') ;; diff --git a/files/www/cgi-bin/perlfunc.pm b/files/www/cgi-bin/perlfunc.pm index a834fe4d..a1128d14 100644 --- a/files/www/cgi-bin/perlfunc.pm +++ b/files/www/cgi-bin/perlfunc.pm @@ -1009,6 +1009,15 @@ sub hardware_info 'usechains' => 0, 'rfband' => '2400', }, + 'GL.iNet GL-AR750' => { + 'name' => 'GL.iNet GL-AR750', + 'comment' => '', + 'supported' => '1', + 'maxpower' => '23', + 'pwroffset' => '0', + 'usechains' => 1, + 'rfband' => '2400', + }, 'TP-Link CPE210 v1.0' => { 'name' => 'TP-Link CPE210 v1.0', 'comment' => '', diff --git a/patches/708-define-aredn-networks.patch b/patches/708-define-aredn-networks.patch index 946d5be8..1d911862 100644 --- a/patches/708-define-aredn-networks.patch +++ b/patches/708-define-aredn-networks.patch @@ -97,14 +97,14 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network - ucidef_set_interfaces_lan_wan "eth1.1" "eth0" + ucidef_set_interface_wan "eth0" + ucidef_set_interface_raw "wifi" "wlan0" "static" -+ ucidef_add_switch "switch0" \ + ucidef_add_switch "switch0" \ +- "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" + "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4t:unused" "4t:dtdlink" + ;; + rb-952ui-5ac2nd) + ucidef_set_interface_wan "eth0" + ucidef_set_interface_raw "wifi" "wlan1" "static" - ucidef_add_switch "switch0" \ -- "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" ++ ucidef_add_switch "switch0" \ + "0@eth1" "4:lan:1" "3:lan:2" "2:lan:3" "1t:unused" "1t:dtdlink" ;; all0258n|\ @@ -146,7 +146,19 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network ucidef_add_switch "switch0" \ "0@eth0" "1:lan:1" "2:lan:4" "3:lan:3" "4:lan:2" ;; -@@ -456,10 +474,6 @@ ar71xx_setup_interfaces() +@@ -447,19 +465,16 @@ ar71xx_setup_interfaces() + ;; + gl-ar750|\ + rb-435g) +- ucidef_set_interfaces_lan_wan "eth1.1" "eth0" ++ ucidef_set_interface_wan "eth0" ++ ucidef_set_interface_raw "wifi" "wlan1" "static" + ucidef_add_switch "switch0" \ +- "0@eth1" "1:lan" "2:lan" ++ "0@eth1" "1:lan" "2t:unused" "2t:dtdlink" + ;; + jwap230) + ucidef_set_interfaces_lan_wan "eth0.1" "eth1.2" ucidef_add_switch "switch0" \ "0@eth0" "1:lan" "5:wan" "6@eth1" ;; @@ -157,7 +169,7 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network onion-omega) ucidef_set_interface_lan "wlan0" ;; -@@ -469,9 +483,10 @@ ar71xx_setup_interfaces() +@@ -469,9 +484,10 @@ ar71xx_setup_interfaces() "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5@eth1" ;; routerstation-pro) @@ -170,7 +182,7 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network ;; rb-493g) ucidef_set_interfaces_lan_wan "eth0.1 eth1.1" "eth1.2" -@@ -572,8 +587,16 @@ ar71xx_setup_interfaces() +@@ -572,8 +588,16 @@ ar71xx_setup_interfaces() ucidef_add_switch "switch0" \ "0@eth0" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4" "5:wan" ;;