mirror of https://github.com/aredn/aredn.git
ath79: Migrate CPE210 v1/v1.1, CPE510v1/v1.1 to the ATH79 Branch (#523)
Installation: Flash factory image through stock firmware WEB UI or through TFTP: To get to TFTP recovery just hold reset button while powering on for around 4-5 seconds and release. Rename factory image to recovery.bin Stock TFTP server IP:192.168.0.100 Stock device TFTP address:192.168.0.254
This commit is contained in:
parent
1ace91aae2
commit
62adfa9eb8
14
README.md
14
README.md
|
@ -80,12 +80,12 @@ Rocket M2 Titanium TI | ar71xx | rocket-m-ti | 64Mb | unknown
|
|||
Rocket M2 Titanium XW | ar71xx | rocket-m-xw | 64Mb | unknown
|
||||
Rocket M5 Titanium TI | ar71xx | rocket-m-ti | 64Mb | stable
|
||||
Rocket M5 Titanium XW | ar71xx | rocket-m-xw | 64Mb | stable
|
||||
TPLink CPE210 v1.0/v1.1 | ar71xx | cpe210-220-v1 | 64Mb | stable
|
||||
TPLink CPE210 v1.0/v1.1 | ath79 | cpe210-v1 | 64Mb | stable
|
||||
TPLink CPE210 v2.0 | ath79 | cpe210-v2 | 64Mb | stable
|
||||
TPLink CPE210 v3.0 | ath79 | cpe210-v3 | 64Mb | stable
|
||||
TPLink CPE220 v2.0 | ath79 | cpe220-v2 | 64Mb | stable
|
||||
TPLink CPE220 v3.0 | ath79 | cpe220-v3 | 64Mb | stable
|
||||
TPLink CPE510 v1.0/v1.1 | ar71xx | cpe510-520-v1 | 64Mb | stable
|
||||
TPLink CPE510 v1.0/v1.1 | ath79 | cpe510-v1 | 64Mb | stable
|
||||
TPLink CPE510 v2.0 | ath79 | cpe510-v2 | 64Mb | stable
|
||||
TPLink CPE510 v3.0 | ath79 | cpe510-v3 | 64Mb | stable
|
||||
TPLink CPE610 v1.0 | ath79 | cpe610-v1 | 64Mb | stable
|
||||
|
@ -119,13 +119,6 @@ switch is necessary to utilize the vlan tagged networks:
|
|||
* vlan 1: WAN - gateway to connect AREDN network to home network and/or internet
|
||||
* vlan 2: DtDLink (device to device) - AREDN network routing between nodes, typically cross band
|
||||
|
||||
The following devices have a peculiar port configuration due to a limitation in the Ethernet driver.
|
||||
The 'Main" port is used for LAN devices only. The "Secondary" port is WAN and DtDLink usage
|
||||
only. Depending on deployed usage, 2 cat5 cables may be needed.
|
||||
|
||||
* TP-Link CPE210 v1.0 and v1.1
|
||||
* TP-Link CPE510 v1.0 and v1.1
|
||||
|
||||
The following devices have enhanced Ethernet port usage. A single cat5 to the device
|
||||
could be plugged into ether the 'main' or 'secondary' port with standard port functionality.
|
||||
Both ports can be used interchangeably and simultaneously with LAN devices on both ports
|
||||
|
@ -143,7 +136,10 @@ all LAN devices on all nodes (because it powers up first).
|
|||
* NanoStation M2 XM
|
||||
* NanoStation M3 XM
|
||||
* NanoStation M5 XM
|
||||
* TP-Link CPE210 v1/v1.1
|
||||
* TP-Link CPE220 v2
|
||||
* TP-Link CPE220 v3
|
||||
* TP-Link CPE510 v1/v1.1
|
||||
|
||||
The Mikrotik hAP AC Lite, Ubiquiti AirRouter, and AirRouter HP are pre-configured with the following VLANs:
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
CONFIG_TARGET_ar71xx=y
|
||||
CONFIG_TARGET_ar71xx_generic=y
|
||||
CONFIG_TARGET_MULTI_PROFILE=y
|
||||
CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_cpe210-220-v1=y
|
||||
CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_cpe510-520-v1=y
|
||||
CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_wbs210-v1=y
|
||||
CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_wbs510-v2=y
|
||||
CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_ubnt-bullet-m=y
|
||||
|
|
|
@ -2,10 +2,12 @@ CONFIG_TARGET_ath79=y
|
|||
CONFIG_TARGET_ath79_generic=y
|
||||
CONFIG_TARGET_MULTI_PROFILE=y
|
||||
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_glinet_gl-ar150=y
|
||||
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_cpe510-v1=y
|
||||
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_cpe510-v2=y
|
||||
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_cpe510-v3=y
|
||||
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_cpe610-v1=y
|
||||
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_cpe610-v2=y
|
||||
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_cpe210-v1=y
|
||||
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_cpe210-v2=y
|
||||
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_cpe210-v3=y
|
||||
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_tplink_cpe220-v2=y
|
||||
|
|
|
@ -150,7 +150,7 @@ fi
|
|||
|
||||
hwtype="$('/usr/local/bin/get_hardwaretype')"
|
||||
touch /etc/aredn_include/bridge_ports
|
||||
if [ "$hwtype" = "nanostation-m" -o "$hwtype" = "cpe220-v2" -o "$hwtype" = "cpe220-v3" ]; then
|
||||
if [ "$hwtype" = "nanostation-m" -o "$hwtype" = "cpe220-v2" -o "$hwtype" = "cpe220-v3" -o "$hwtype" = "cpe210-v1" -o "$hwtype" = "cpe510-v1" ]; then
|
||||
echo " option type 'bridge'" > /etc/aredn_include/bridge_ports
|
||||
fi
|
||||
|
||||
|
|
|
@ -1010,18 +1010,8 @@ sub hardware_info
|
|||
'usechains' => 1,
|
||||
'rfband' => '2400',
|
||||
},
|
||||
'TP-Link CPE210 v1.0' => {
|
||||
'name' => 'TP-Link CPE210 v1.0',
|
||||
'comment' => '',
|
||||
'supported' => '1',
|
||||
'maxpower' => '23',
|
||||
'pwroffset' => '0',
|
||||
'usechains' => 1,
|
||||
'rfband' => '2400',
|
||||
'chanpower' => { 1 => '22', 14 => '23' },
|
||||
},
|
||||
'TP-Link CPE210 v1.1' => {
|
||||
'name' => 'TP-Link CPE210 v1.1',
|
||||
'TP-Link CPE210 v1' => {
|
||||
'name' => 'TP-Link CPE210 v1',
|
||||
'comment' => '',
|
||||
'supported' => '1',
|
||||
'maxpower' => '23',
|
||||
|
@ -1070,8 +1060,8 @@ sub hardware_info
|
|||
'rfband' => '2400',
|
||||
'chanpower' => { 1 => '25', 2 => '28', 11 => '27' },
|
||||
},
|
||||
'TP-Link CPE510 v1.0' => {
|
||||
'name' => 'TP-Link CPE510 v1.0',
|
||||
'TP-Link CPE510 v1' => {
|
||||
'name' => 'TP-Link CPE510 v1',
|
||||
'comment' => '',
|
||||
'supported' => '1',
|
||||
'maxpower' => '23',
|
||||
|
@ -1080,26 +1070,6 @@ sub hardware_info
|
|||
'rfband' => '5800ubntus',
|
||||
'chanpower' => { 48 => '10', 149 => '17', 184 => '23' },
|
||||
},
|
||||
'TP-Link CPE510 v1.1' => {
|
||||
'name' => 'TP-Link CPE510 v1.1',
|
||||
'comment' => '',
|
||||
'supported' => '1',
|
||||
'maxpower' => '26',
|
||||
'pwroffset' => '0',
|
||||
'usechains' => 1,
|
||||
'rfband' => '5800ubntus',
|
||||
'chanpower' => { 140 => '17', 184 => '26' },
|
||||
},
|
||||
'TP-Link CPE510 v2.0' => {
|
||||
'name' => 'TP-Link CPE510 v2.0',
|
||||
'comment' => '',
|
||||
'supported' => '1',
|
||||
'maxpower' => '26',
|
||||
'pwroffset' => '0',
|
||||
'usechains' => 1,
|
||||
'rfband' => '5800ubntus',
|
||||
'chanpower' => { 140 => '17', 184 => '26' },
|
||||
},
|
||||
'TP-Link CPE510 v2' => {
|
||||
'name' => 'TP-Link CPE510 v2',
|
||||
'comment' => '',
|
||||
|
@ -1110,16 +1080,6 @@ sub hardware_info
|
|||
'rfband' => '5800ubntus',
|
||||
'chanpower' => { 140 => '17', 184 => '26' },
|
||||
},
|
||||
'TP-Link CPE510 v3.0' => {
|
||||
'name' => 'TP-Link CPE510 v3.0',
|
||||
'comment' => '',
|
||||
'supported' => '1',
|
||||
'maxpower' => '26',
|
||||
'pwroffset' => '0',
|
||||
'usechains' => 1,
|
||||
'rfband' => '5800ubntus',
|
||||
'chanpower' => { 140 => '17', 184 => '26' },
|
||||
},
|
||||
'TP-Link CPE510 v3' => {
|
||||
'name' => 'TP-Link CPE510 v3',
|
||||
'comment' => '',
|
||||
|
|
|
@ -0,0 +1,71 @@
|
|||
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
|
||||
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
|
||||
@@ -151,6 +151,7 @@ tplink,archer-d50-v1)
|
||||
ucidef_set_led_switch "wan_link" "WAN Link" "tp-link:white:wan" "switch0" "0x02" "" "link"
|
||||
;;
|
||||
tplink,cpe510-v1|\
|
||||
+tplink,cpe210-v1|\
|
||||
tplink,cpe220-v2|\
|
||||
tplink,cpe220-v3)
|
||||
ucidef_set_led_netdev "lan0" "LAN0" "tp-link:green:lan0" "eth1"
|
||||
--- a/target/linux/ath79/base-files/etc/board.d/02_network
|
||||
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
|
||||
@@ -103,6 +103,7 @@ ath79_setup_interfaces()
|
||||
comfast,cf-e110n-v2|\
|
||||
comfast,cf-e120a-v3|\
|
||||
tplink,cpe510-v1|\
|
||||
+ tplink,cpe210-v1|\
|
||||
tplink,cpe220-v2|\
|
||||
tplink,cpe220-v3|\
|
||||
ubnt,nanostation-m|\
|
||||
--- a/target/linux/ath79/base-files/etc/board.d/03_gpio_switches
|
||||
+++ b/target/linux/ath79/base-files/etc/board.d/03_gpio_switches
|
||||
@@ -28,6 +28,7 @@ tplink,archer-c25-v1)
|
||||
ucidef_add_gpio_switch "led_reset" "LED reset" "19" "1"
|
||||
;;
|
||||
tplink,cpe510-v1|\
|
||||
+tplink,cpe210-v1|\
|
||||
tplink,cpe220-v2|\
|
||||
tplink,cpe220-v3)
|
||||
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "20"
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ath79/dts/ar9344_tplink_cpe210-v1.dts
|
||||
@@ -0,0 +1,13 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+/dts-v1/;
|
||||
+
|
||||
+#include "ar9344_tplink_cpe_2port.dtsi"
|
||||
+
|
||||
+/ {
|
||||
+ compatible = "tplink,cpe210-v1", "qca,ar9344";
|
||||
+ model = "TP-Link CPE210 v1";
|
||||
+};
|
||||
+
|
||||
+&led_link4 {
|
||||
+ gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
+};
|
||||
--- a/target/linux/ath79/image/generic-tp-link.mk
|
||||
+++ b/target/linux/ath79/image/generic-tp-link.mk
|
||||
@@ -143,6 +143,22 @@ define Device/tplink_archer-c7-v5
|
||||
endef
|
||||
TARGET_DEVICES += tplink_archer-c7-v5
|
||||
|
||||
+define Device/tplink_cpe210-v1
|
||||
+ $(Device/tplink-safeloader)
|
||||
+ ATH_SOC := ar9344
|
||||
+ IMAGE_SIZE := 7680k
|
||||
+ DEVICE_TITLE := TP-Link CPE210 v1
|
||||
+ DEVICE_PACKAGES := rssileds
|
||||
+ TPLINK_BOARD_ID := CPE210
|
||||
+ LOADER_TYPE := elf
|
||||
+ LOADER_FLASH_OFFS := 0x43000
|
||||
+ COMPILE := loader-$(1).elf
|
||||
+ COMPILE/loader-$(1).elf := loader-okli-compile
|
||||
+ KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 12288
|
||||
+ SUPPORTED_DEVICES += cpe210
|
||||
+endef
|
||||
+TARGET_DEVICES += tplink_cpe210-v1
|
||||
+
|
||||
define Device/tplink_cpe210-v2
|
||||
$(Device/tplink-safeloader)
|
||||
ATH_SOC := qca9533
|
|
@ -0,0 +1,71 @@
|
|||
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
|
||||
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
|
||||
@@ -150,6 +150,7 @@ tplink,archer-d50-v1)
|
||||
ucidef_set_led_switch "wan_data" "WAN Data" "tp-link:white:internet" "switch0" "0x02" "" "tx rx"
|
||||
ucidef_set_led_switch "wan_link" "WAN Link" "tp-link:white:wan" "switch0" "0x02" "" "link"
|
||||
;;
|
||||
+tplink,cpe510-v1|\
|
||||
tplink,cpe220-v2|\
|
||||
tplink,cpe220-v3)
|
||||
ucidef_set_led_netdev "lan0" "LAN0" "tp-link:green:lan0" "eth1"
|
||||
--- a/target/linux/ath79/base-files/etc/board.d/02_network
|
||||
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
|
||||
@@ -102,6 +102,7 @@ ath79_setup_interfaces()
|
||||
;;
|
||||
comfast,cf-e110n-v2|\
|
||||
comfast,cf-e120a-v3|\
|
||||
+ tplink,cpe510-v1|\
|
||||
tplink,cpe220-v2|\
|
||||
tplink,cpe220-v3|\
|
||||
ubnt,nanostation-m|\
|
||||
--- a/target/linux/ath79/base-files/etc/board.d/03_gpio_switches
|
||||
+++ b/target/linux/ath79/base-files/etc/board.d/03_gpio_switches
|
||||
@@ -27,6 +27,7 @@ tplink,archer-c25-v1)
|
||||
ucidef_add_gpio_switch "led_control" "LED control" "21" "0"
|
||||
ucidef_add_gpio_switch "led_reset" "LED reset" "19" "1"
|
||||
;;
|
||||
+tplink,cpe510-v1|\
|
||||
tplink,cpe220-v2|\
|
||||
tplink,cpe220-v3)
|
||||
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "20"
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ath79/dts/ar9344_tplink_cpe510-v1.dts
|
||||
@@ -0,0 +1,13 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+/dts-v1/;
|
||||
+
|
||||
+#include "ar9344_tplink_cpe_2port.dtsi"
|
||||
+
|
||||
+/ {
|
||||
+ compatible = "tplink,cpe510-v1", "qca,ar9344";
|
||||
+ model = "TP-Link CPE510 v1";
|
||||
+};
|
||||
+
|
||||
+&led_link4 {
|
||||
+ gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||||
+};
|
||||
--- a/target/linux/ath79/image/generic-tp-link.mk
|
||||
+++ b/target/linux/ath79/image/generic-tp-link.mk
|
||||
@@ -195,6 +195,22 @@ define Device/tplink_cpe220-v3
|
||||
endef
|
||||
TARGET_DEVICES += tplink_cpe220-v3
|
||||
|
||||
+define Device/tplink_cpe510-v1
|
||||
+ $(Device/tplink-safeloader)
|
||||
+ ATH_SOC := ar9344
|
||||
+ IMAGE_SIZE := 7680k
|
||||
+ DEVICE_TITLE := TP-Link CPE510 v1
|
||||
+ DEVICE_PACKAGES := rssileds
|
||||
+ TPLINK_BOARD_ID := CPE510
|
||||
+ LOADER_TYPE := elf
|
||||
+ LOADER_FLASH_OFFS := 0x43000
|
||||
+ COMPILE := loader-$(1).elf
|
||||
+ COMPILE/loader-$(1).elf := loader-okli-compile
|
||||
+ KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 12288
|
||||
+ SUPPORTED_DEVICES += cpe510
|
||||
+endef
|
||||
+TARGET_DEVICES += tplink_cpe510-v1
|
||||
+
|
||||
define Device/tplink_cpe510-v2
|
||||
$(Device/tplink-safeloader)
|
||||
ATH_SOC := ar9344
|
|
@ -8,6 +8,8 @@
|
|||
001-add_support_for_TP-Link_ATH79_CPE610_v1.patch
|
||||
001-add_support_for_TP-Link_ATH79_CPE610_v2.patch
|
||||
001-add_support_for_TP-Link_ATH79_CPE220_v2.patch
|
||||
001-add_support_for_TP-Link_ATH79_CPE510_v1.patch
|
||||
001-add_support_for_TP-Link_ATH79_CPE210_v1.patch
|
||||
001-ath79-cpe220v3-sysupgrade-supported.patch
|
||||
004-add-lhg-5hpnd-xl.patch
|
||||
004-add-ldf-5nd.patch
|
||||
|
|
Loading…
Reference in New Issue