aredn: update to openwrt v19.07.10 and patch refresh (#342) 04/24/2022

This commit is contained in:
Joe AE6XE 2022-04-24 15:14:10 -07:00 committed by GitHub
parent 0632a63853
commit 903f92801c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 223 additions and 375 deletions

View File

@ -2,5 +2,5 @@
OPENWRT_SRC=https://github.com/openwrt/openwrt.git
# what branch, tag or commit in this repo?
OPENWRT_COMMIT=v19.07.8
OPENWRT_COMMIT=v19.07.10

View File

@ -1,6 +1,6 @@
--- 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)
@@ -148,6 +148,7 @@ tplink,archer-d50-v1)
ucidef_set_led_switch "wan_link" "WAN Link" "tp-link:white:wan" "switch0" "0x02" "" "link"
;;
tplink,cpe510-v1|\
@ -10,7 +10,7 @@
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()
@@ -120,6 +120,7 @@ ath79_setup_interfaces()
comfast,cf-e110n-v2|\
comfast,cf-e120a-v3|\
tplink,cpe510-v1|\
@ -46,7 +46,7 @@
+};
--- 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
@@ -153,6 +153,22 @@ define Device/tplink_archer-c7-v5
endef
TARGET_DEVICES += tplink_archer-c7-v5

View File

@ -1,6 +1,6 @@
--- 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)
@@ -147,6 +147,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"
;;
@ -10,7 +10,7 @@
ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
--- 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()
@@ -119,6 +119,7 @@ ath79_setup_interfaces()
;;
comfast,cf-e110n-v2|\
comfast,cf-e120a-v3|\
@ -122,7 +122,7 @@
+};
--- a/target/linux/ath79/image/generic-tp-link.mk
+++ b/target/linux/ath79/image/generic-tp-link.mk
@@ -167,6 +167,22 @@ define Device/tplink_cpe210-v3
@@ -177,6 +177,22 @@ define Device/tplink_cpe210-v3
endef
TARGET_DEVICES += tplink_cpe210-v3

View File

@ -1,6 +1,6 @@
--- 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)
@@ -147,6 +147,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"
;;
@ -10,7 +10,7 @@
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()
@@ -119,6 +119,7 @@ ath79_setup_interfaces()
;;
comfast,cf-e110n-v2|\
comfast,cf-e120a-v3|\
@ -46,7 +46,7 @@
+};
--- 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
@@ -204,6 +204,22 @@ define Device/tplink_cpe220-v3
endef
TARGET_DEVICES += tplink_cpe220-v3

View File

@ -1,6 +1,6 @@
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
@@ -168,6 +168,15 @@ tplink,cpe210-v3)
@@ -165,6 +165,15 @@ tplink,cpe210-v3)
ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "60" "100"
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "80" "100"
;;
@ -220,7 +220,7 @@
+};
--- a/target/linux/ath79/image/generic-tp-link.mk
+++ b/target/linux/ath79/image/generic-tp-link.mk
@@ -179,6 +179,38 @@ define Device/tplink_cpe220-v3
@@ -188,6 +188,38 @@ define Device/tplink_cpe220-v3
endef
TARGET_DEVICES += tplink_cpe220-v3

View File

@ -1,6 +1,6 @@
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
@@ -177,6 +177,9 @@ tplink,cpe510-v3)
@@ -174,6 +174,9 @@ tplink,cpe510-v3)
ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "51" "100" "-50" "13"
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "76" "100" "-75" "13"
;;
@ -61,7 +61,7 @@
+};
--- a/target/linux/ath79/image/generic-tp-link.mk
+++ b/target/linux/ath79/image/generic-tp-link.mk
@@ -211,6 +211,22 @@ define Device/tplink_cpe510-v3
@@ -220,6 +220,22 @@ define Device/tplink_cpe510-v3
endef
TARGET_DEVICES += tplink_cpe510-v3
@ -86,7 +86,7 @@
DEVICE_TITLE := TP-Link Archer D50 v1
--- a/tools/firmware-utils/src/tplink-safeloader.c
+++ b/tools/firmware-utils/src/tplink-safeloader.c
@@ -308,21 +308,20 @@ static struct device_info boards[] = {
@@ -309,21 +309,20 @@ static struct device_info boards[] = {
.soft_ver = NULL,
.partitions = {

View File

@ -1,6 +1,6 @@
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
@@ -177,7 +177,8 @@ tplink,cpe510-v3)
@@ -174,7 +174,8 @@ tplink,cpe510-v3)
ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "tp-link:green:link3" "wlan0" "51" "100" "-50" "13"
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "tp-link:green:link4" "wlan0" "76" "100" "-75" "13"
;;
@ -61,7 +61,7 @@
+};
--- a/target/linux/ath79/image/generic-tp-link.mk
+++ b/target/linux/ath79/image/generic-tp-link.mk
@@ -227,6 +227,22 @@ define Device/tplink_cpe610-v1
@@ -236,6 +236,22 @@ define Device/tplink_cpe610-v1
endef
TARGET_DEVICES += tplink_cpe610-v1
@ -86,7 +86,7 @@
DEVICE_TITLE := TP-Link Archer D50 v1
--- a/tools/firmware-utils/src/tplink-safeloader.c
+++ b/tools/firmware-utils/src/tplink-safeloader.c
@@ -328,6 +328,46 @@ static struct device_info boards[] = {
@@ -249,6 +249,46 @@ static struct device_info boards[] = {
.last_sysupgrade_partition = "support-list",
},

View File

@ -1,6 +1,6 @@
--- 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)
@@ -147,6 +147,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"
;;
@ -10,7 +10,7 @@
tplink,cpe220-v2|\
--- 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()
@@ -119,6 +119,7 @@ ath79_setup_interfaces()
;;
comfast,cf-e110n-v2|\
comfast,cf-e120a-v3|\
@ -46,7 +46,7 @@
+};
--- a/target/linux/ath79/image/generic-tp-link.mk
+++ b/target/linux/ath79/image/generic-tp-link.mk
@@ -291,6 +291,22 @@ define Device/tplink_cpe610-v2
@@ -300,6 +300,22 @@ define Device/tplink_cpe610-v2
endef
TARGET_DEVICES += tplink_cpe610-v2

View File

@ -1,6 +1,6 @@
--- 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)
@@ -148,6 +148,7 @@ tplink,archer-d50-v1)
ucidef_set_led_switch "wan_link" "WAN Link" "tp-link:white:wan" "switch0" "0x02" "" "link"
;;
tplink,wbs210-v1|\
@ -10,7 +10,7 @@
tplink,cpe220-v2|\
--- 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()
@@ -120,6 +120,7 @@ ath79_setup_interfaces()
comfast,cf-e110n-v2|\
comfast,cf-e120a-v3|\
tplink,wbs210-v1|\
@ -46,7 +46,7 @@
+};
--- a/target/linux/ath79/image/generic-tp-link.mk
+++ b/target/linux/ath79/image/generic-tp-link.mk
@@ -307,6 +307,22 @@ define Device/tplink_wbs210-v1
@@ -316,6 +316,22 @@ define Device/tplink_wbs210-v1
endef
TARGET_DEVICES += tplink_wbs210-v1
@ -76,7 +76,7 @@
/*
Copyright (c) 2014, Matthias Schiffer <mschiffer@universe-factory.net>
All rights reserved.
@@ -510,6 +509,38 @@ static struct device_info boards[] = {
@@ -502,6 +501,38 @@ static struct device_info boards[] = {
.support_trail = '\xff',
.soft_ver = NULL,

View File

@ -1,6 +1,6 @@
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
@@ -152,6 +152,7 @@ tplink,archer-d50-v1)
@@ -149,6 +149,7 @@ tplink,archer-d50-v1)
;;
tplink,wbs210-v1|\
tplink,wbs210-v2|\
@ -10,7 +10,7 @@
tplink,cpe220-v2|\
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -104,6 +104,7 @@ ath79_setup_interfaces()
@@ -121,6 +121,7 @@ ath79_setup_interfaces()
comfast,cf-e120a-v3|\
tplink,wbs210-v1|\
tplink,wbs210-v2|\
@ -46,7 +46,7 @@
+};
--- a/target/linux/ath79/image/generic-tp-link.mk
+++ b/target/linux/ath79/image/generic-tp-link.mk
@@ -323,6 +323,22 @@ define Device/tplink_wbs210-v2
@@ -332,6 +332,22 @@ define Device/tplink_wbs210-v2
endef
TARGET_DEVICES += tplink_wbs210-v2

View File

@ -1,6 +1,6 @@
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
@@ -153,6 +153,7 @@ tplink,archer-d50-v1)
@@ -150,6 +150,7 @@ tplink,archer-d50-v1)
tplink,wbs210-v1|\
tplink,wbs210-v2|\
tplink,wbs510-v1|\
@ -10,7 +10,7 @@
tplink,cpe220-v2|\
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -105,6 +105,7 @@ ath79_setup_interfaces()
@@ -122,6 +122,7 @@ ath79_setup_interfaces()
tplink,wbs210-v1|\
tplink,wbs210-v2|\
tplink,wbs510-v1|\
@ -46,7 +46,7 @@
+};
--- a/target/linux/ath79/image/generic-tp-link.mk
+++ b/target/linux/ath79/image/generic-tp-link.mk
@@ -339,6 +339,22 @@ define Device/tplink_wbs510-v1
@@ -348,6 +348,22 @@ define Device/tplink_wbs510-v1
endef
TARGET_DEVICES += tplink_wbs510-v1

View File

@ -1,7 +1,5 @@
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -254,6 +254,7 @@ cf-e530n)
cpe210|\
cpe210-v2|\
@ -10,11 +8,9 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
cpe220-v3|\
cpe510|\
cpe510-v2|\
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -294,6 +294,7 @@ ar71xx_setup_interfaces()
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -290,6 +290,7 @@ ar71xx_setup_interfaces()
"0@eth0" "2:lan" "1:wan" "6@eth1"
;;
cpe210|\
@ -22,11 +18,9 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
cpe220-v3|\
cpe510|\
wbs210|\
Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -758,6 +758,10 @@ ar71xx_board_detect() {
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -759,6 +759,10 @@ ar71xx_board_detect() {
name="cpe210-v3"
tplink_pharos_board_detect "$(tplink_pharos_v2_get_model_string)"
;;
@ -37,10 +31,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
*"CPE220 v3")
name="cpe220-v3"
tplink_pharos_board_detect "$(tplink_pharos_v2_get_model_string)"
Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -599,6 +599,7 @@ platform_check_image() {
tplink_pharos_check_image "$1" "01000000" "$(tplink_pharos_v2_get_model_string)" '\0\xff\r' && return 0
return 1
@ -49,10 +41,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
cpe610|\
cpe510-v2|\
cpe510-v3)
Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
===================================================================
--- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
@@ -334,6 +334,9 @@ MIPS_MACHINE(ATH79_MACH_CPE210_V2, "CPE2
MIPS_MACHINE(ATH79_MACH_CPE210_V3, "CPE210V3", "TP-LINK CPE210 v3",
cpe210_v2_setup);
@ -63,10 +53,8 @@ Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
MIPS_MACHINE(ATH79_MACH_CPE220_V3, "CPE220V3", "TP-LINK CPE220 v3",
cpe220_v3_setup);
Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
===================================================================
--- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
--- a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
+++ b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
@@ -77,6 +77,7 @@ enum ath79_mach_type {
ATH79_MACH_CPE210, /* TP-LINK CPE210 v1 */
ATH79_MACH_CPE210_V2, /* TP-LINK CPE210 v2 */
@ -75,11 +63,9 @@ Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
ATH79_MACH_CPE220_V3, /* TP-LINK CPE220 v3 */
ATH79_MACH_CPE505N, /* P&W CPE505N */
ATH79_MACH_CPE510, /* TP-LINK CPE510 */
Index: openwrt/target/linux/ar71xx/image/generic-tp-link.mk
===================================================================
--- openwrt.orig/target/linux/ar71xx/image/generic-tp-link.mk
+++ openwrt/target/linux/ar71xx/image/generic-tp-link.mk
@@ -238,6 +238,14 @@ define Device/cpe610-v1
--- a/target/linux/ar71xx/image/generic-tp-link.mk
+++ b/target/linux/ar71xx/image/generic-tp-link.mk
@@ -239,6 +239,14 @@ define Device/cpe610-v1
endef
TARGET_DEVICES += cpe610-v1
@ -94,10 +80,8 @@ Index: openwrt/target/linux/ar71xx/image/generic-tp-link.mk
define Device/cpe220-v3
$(Device/cpe210-v2)
DEVICE_TITLE := TP-LINK CPE220 v3
Index: openwrt/tools/firmware-utils/src/tplink-safeloader.c
===================================================================
--- openwrt.orig/tools/firmware-utils/src/tplink-safeloader.c
+++ openwrt/tools/firmware-utils/src/tplink-safeloader.c
--- a/tools/firmware-utils/src/tplink-safeloader.c
+++ b/tools/firmware-utils/src/tplink-safeloader.c
@@ -131,7 +131,17 @@ static struct device_info boards[] = {
"CPE210(TP-LINK|EU|N300-2):1.1\r\n"
"CPE220(TP-LINK|UN|N300-2):1.1\r\n"

View File

@ -33,10 +33,8 @@ Signed-off-by: Andrew Cameron apcameron@softhome.net
target/linux/ar71xx/image/generic-tp-link.mk | 8 +++++++
8 files changed, 42 insertions(+), 1 deletion(-)
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -254,6 +254,7 @@ cf-e530n)
cpe210|\
cpe210-v2|\
@ -45,11 +43,9 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
cpe510|\
cpe510-v2|\
wbs210|\
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -293,6 +293,7 @@ ar71xx_setup_interfaces()
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -289,6 +289,7 @@ ar71xx_setup_interfaces()
"0@eth0" "2:lan" "1:wan" "6@eth1"
;;
cpe210|\
@ -57,10 +53,8 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
cpe510|\
wbs210|\
wbs510)
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
--- a/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
+++ b/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
@@ -11,6 +11,7 @@ board=$(board_name)
case "$board" in
@ -69,11 +63,9 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
cpe510|\
wbs210|\
wbs510)
Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -758,6 +758,10 @@ ar71xx_board_detect() {
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -759,6 +759,10 @@ ar71xx_board_detect() {
name="cpe210-v3"
tplink_pharos_board_detect "$(tplink_pharos_v2_get_model_string)"
;;
@ -84,10 +76,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
*"CPE505N")
name="cpe505n"
;;
Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -594,7 +594,8 @@ platform_check_image() {
return 1
;;
@ -98,10 +88,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
tplink_pharos_check_image "$1" "01000000" "$(tplink_pharos_v2_get_model_string)" '\0\xff\r' && return 0
return 1
;;
Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
===================================================================
--- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
@@ -304,6 +304,27 @@ static void __init cpe610_setup(void)
ath79_register_wmac(ee, mac);
}
@ -140,10 +128,8 @@ Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
MIPS_MACHINE(ATH79_MACH_CPE510, "CPE510", "TP-LINK CPE510/520",
cpe510_setup);
Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
===================================================================
--- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
--- a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
+++ b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
@@ -77,6 +77,7 @@ enum ath79_mach_type {
ATH79_MACH_CPE210, /* TP-LINK CPE210 v1 */
ATH79_MACH_CPE210_V2, /* TP-LINK CPE210 v2 */
@ -152,10 +138,8 @@ Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
ATH79_MACH_CPE505N, /* P&W CPE505N */
ATH79_MACH_CPE510, /* TP-LINK CPE510 */
ATH79_MACH_CPE510_V2, /* TP-LINK CPE510 v2 */
Index: openwrt/target/linux/ar71xx/image/generic-tp-link.mk
===================================================================
--- openwrt.orig/target/linux/ar71xx/image/generic-tp-link.mk
+++ openwrt/target/linux/ar71xx/image/generic-tp-link.mk
--- a/target/linux/ar71xx/image/generic-tp-link.mk
+++ b/target/linux/ar71xx/image/generic-tp-link.mk
@@ -231,6 +231,14 @@ define Device/cpe610-v1
endef
TARGET_DEVICES += cpe610-v1

View File

@ -1,6 +1,6 @@
--- a/tools/firmware-utils/src/tplink-safeloader.c
+++ b/tools/firmware-utils/src/tplink-safeloader.c
@@ -423,13 +423,12 @@ static struct device_info boards[] = {
@@ -424,13 +424,12 @@ static struct device_info boards[] = {
"CPE510(TP-LINK|UN|N300-5):2.0\r\n"
"CPE510(TP-LINK|EU|N300-5):2.0\r\n"
"CPE510(TP-LINK|US|N300-5):2.0\r\n"

View File

@ -1,7 +1,5 @@
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -257,6 +257,7 @@ cpe210-v3|\
cpe220-v3|\
cpe510|\
@ -20,10 +18,8 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan0" "eth0"
;;
*)
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -78,6 +78,7 @@ ar71xx_setup_interfaces()
cpe210-v2|\
cpe210-v3|\
@ -32,11 +28,9 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
dr342|\
eap120|\
eap300v2|\
Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -773,6 +773,10 @@ ar71xx_board_detect() {
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -774,6 +774,10 @@ ar71xx_board_detect() {
name="cpe510-v2"
tplink_pharos_board_detect "$(tplink_pharos_v2_get_model_string)"
;;
@ -47,10 +41,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
*"CPE610")
name="cpe610"
tplink_pharos_board_detect "$(tplink_pharos_v2_get_model_string)"
Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -600,7 +600,8 @@ platform_check_image() {
return 1
;;
@ -61,10 +53,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
tplink_pharos_check_image "$1" "7f454c46" "$(tplink_pharos_v2_get_model_string)" '\0\xff\r' && return 0
return 1
;;
Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
===================================================================
--- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
@@ -337,6 +337,9 @@ MIPS_MACHINE(ATH79_MACH_CPE210_V3, "CPE2
MIPS_MACHINE(ATH79_MACH_CPE220_V3, "CPE220V3", "TP-LINK CPE220 v3",
cpe220_v3_setup);
@ -75,10 +65,8 @@ Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
MIPS_MACHINE(ATH79_MACH_CPE510, "CPE510", "TP-LINK CPE510/520",
cpe510_setup);
Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
===================================================================
--- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
--- a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
+++ b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
@@ -81,6 +81,7 @@ enum ath79_mach_type {
ATH79_MACH_CPE505N, /* P&W CPE505N */
ATH79_MACH_CPE510, /* TP-LINK CPE510 */
@ -87,10 +75,8 @@ Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
ATH79_MACH_CPE610, /* TP-LINK CPE610 */
ATH79_MACH_CPE830, /* YunCore CPE830 */
ATH79_MACH_CPE870, /* YunCore CPE870 */
Index: openwrt/target/linux/ar71xx/image/generic-tp-link.mk
===================================================================
--- openwrt.orig/target/linux/ar71xx/image/generic-tp-link.mk
+++ openwrt/target/linux/ar71xx/image/generic-tp-link.mk
--- a/target/linux/ar71xx/image/generic-tp-link.mk
+++ b/target/linux/ar71xx/image/generic-tp-link.mk
@@ -185,6 +185,14 @@ define Device/cpe510-v2
endef
TARGET_DEVICES += cpe510-v2
@ -106,11 +92,9 @@ Index: openwrt/target/linux/ar71xx/image/generic-tp-link.mk
define Device/cpe210-220-v1
$(Device/cpe510-520-v1)
DEVICE_TITLE := TP-LINK CPE210/220 v1
Index: openwrt/tools/firmware-utils/src/tplink-safeloader.c
===================================================================
--- openwrt.orig/tools/firmware-utils/src/tplink-safeloader.c
+++ openwrt/tools/firmware-utils/src/tplink-safeloader.c
@@ -409,7 +409,17 @@ static struct device_info boards[] = {
--- a/tools/firmware-utils/src/tplink-safeloader.c
+++ b/tools/firmware-utils/src/tplink-safeloader.c
@@ -375,7 +375,17 @@ static struct device_info boards[] = {
"CPE510(TP-LINK|US|N300-5|55530000):2.0\r\n"
"CPE510(TP-LINK|UN|N300-5):2.0\r\n"
"CPE510(TP-LINK|EU|N300-5):2.0\r\n"

View File

@ -1,7 +1,5 @@
Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -598,6 +598,7 @@ platform_check_image() {
tplink_pharos_check_image "$1" "01000000" "$(tplink_pharos_v2_get_model_string)" '\0\xff\r' && return 0
return 1
@ -10,16 +8,14 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
cpe510-v2)
tplink_pharos_check_image "$1" "7f454c46" "$(tplink_pharos_v2_get_model_string)" '\0\xff\r' && return 0
return 1
Index: openwrt/tools/firmware-utils/src/tplink-safeloader.c
===================================================================
--- openwrt.orig/tools/firmware-utils/src/tplink-safeloader.c
+++ openwrt/tools/firmware-utils/src/tplink-safeloader.c
--- a/tools/firmware-utils/src/tplink-safeloader.c
+++ b/tools/firmware-utils/src/tplink-safeloader.c
@@ -1,3 +1,4 @@
+
/*
Copyright (c) 2014, Matthias Schiffer <mschiffer@universe-factory.net>
All rights reserved.
@@ -250,6 +251,46 @@ static struct device_info boards[] = {
@@ -257,6 +258,46 @@ static struct device_info boards[] = {
.support_trail = '\xff',
.soft_ver = NULL,
@ -66,10 +62,8 @@ Index: openwrt/tools/firmware-utils/src/tplink-safeloader.c
.partitions = {
{"fs-uboot", 0x00000, 0x20000},
{"partition-table", 0x20000, 0x02000},
Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
===================================================================
--- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
@@ -125,6 +125,18 @@ static struct gpio_led cpe210_v2_leds_gp
},
};
@ -139,11 +133,9 @@ Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
MIPS_MACHINE(ATH79_MACH_WBS210, "WBS210", "TP-LINK WBS210",
wbs_setup);
Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -769,6 +769,10 @@ ar71xx_board_detect() {
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -770,6 +770,10 @@ ar71xx_board_detect() {
name="cpe510-v2"
tplink_pharos_board_detect "$(tplink_pharos_v2_get_model_string)"
;;
@ -154,10 +146,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
*"CPE830")
name="cpe830"
;;
Index: openwrt/target/linux/ar71xx/image/generic-tp-link.mk
===================================================================
--- openwrt.orig/target/linux/ar71xx/image/generic-tp-link.mk
+++ openwrt/target/linux/ar71xx/image/generic-tp-link.mk
--- a/target/linux/ar71xx/image/generic-tp-link.mk
+++ b/target/linux/ar71xx/image/generic-tp-link.mk
@@ -223,6 +223,14 @@ define Device/cpe210-v3
endef
TARGET_DEVICES += cpe210-v3
@ -173,10 +163,8 @@ Index: openwrt/target/linux/ar71xx/image/generic-tp-link.mk
define Device/wbs210-v1
$(Device/cpe510-520-v1)
DEVICE_TITLE := TP-LINK WBS210 v1
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -276,6 +276,10 @@ wbs510)
;;
esac
@ -188,10 +176,8 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
cr3000)
ucidef_set_led_netdev "wan" "WAN" "pcs:blue:wan" "eth1"
ucidef_set_led_switch "lan1" "LAN1" "pcs:blue:lan1" "switch0" "0x04"
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -74,6 +74,7 @@ ar71xx_setup_interfaces()
cap4200ag|\
cf-e380ac-v1|\
@ -200,10 +186,8 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
cpe210-v2|\
cpe210-v3|\
cpe510-v2|\
Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
===================================================================
--- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
--- a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
+++ b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
@@ -80,6 +80,7 @@ enum ath79_mach_type {
ATH79_MACH_CPE505N, /* P&W CPE505N */
ATH79_MACH_CPE510, /* TP-LINK CPE510 */

View File

@ -34,10 +34,8 @@ Signed-off-by: Andrew Cameron <apcameron@softhome.net>
tools/firmware-utils/src/tplink-safeloader.c | 33 ++++++++++++++++++++++
9 files changed, 57 insertions(+), 4 deletions(-)
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -260,7 +260,8 @@ cpe510|\
cpe510-v2|\
cpe510-v3|\
@ -48,11 +46,9 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
ucidef_set_rssimon "wlan0" "200000" "1"
ucidef_set_led_rssi "rssilow" "RSSILOW" "tp-link:green:link1" "wlan0" "1" "100" "0" "13"
ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "tp-link:green:link2" "wlan0" "26" "100" "-25" "13"
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -298,7 +298,8 @@ ar71xx_setup_interfaces()
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -294,7 +294,8 @@ ar71xx_setup_interfaces()
cpe220-v3|\
cpe510|\
wbs210|\
@ -62,10 +58,8 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
ucidef_add_switch "switch0" \
"0@eth0" "5:lan" "4:wan"
;;
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
--- a/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
+++ b/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
@@ -14,7 +14,8 @@ cpe210|\
cpe220-v3|\
cpe510|\
@ -76,11 +70,9 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "20"
;;
nanostation-m)
Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -1471,6 +1471,10 @@ ar71xx_board_detect() {
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -1472,6 +1472,10 @@ ar71xx_board_detect() {
name="wbs510"
tplink_pharos_board_detect "$(tplink_pharos_get_model_string | tr -d '\r')"
;;
@ -91,10 +83,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
"WeIO"*)
name="weio"
;;
Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -602,7 +602,8 @@ platform_check_image() {
cpe220-v2|\
cpe610|\
@ -105,10 +95,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
tplink_pharos_check_image "$1" "7f454c46" "$(tplink_pharos_v2_get_model_string)" '\0\xff\r' && return 0
return 1
;;
Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
===================================================================
--- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
@@ -357,3 +357,6 @@ MIPS_MACHINE(ATH79_MACH_WBS210, "WBS210"
MIPS_MACHINE(ATH79_MACH_WBS510, "WBS510", "TP-LINK WBS510",
@ -116,10 +104,8 @@ Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
+
+MIPS_MACHINE(ATH79_MACH_WBS510_V2, "WBS510V2", "TP-LINK WBS510 v2",
+ wbs_setup);
Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
===================================================================
--- openwrt.orig/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
+++ openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
--- a/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
+++ b/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
@@ -348,6 +348,7 @@ enum ath79_mach_type {
ATH79_MACH_WAM250, /* Samsung WAM250 */
ATH79_MACH_WBS210, /* TP-LINK WBS210 */
@ -128,11 +114,9 @@ Index: openwrt/target/linux/ar71xx/files/arch/mips/ath79/machtypes.h
ATH79_MACH_WEIO, /* WeIO board */
ATH79_MACH_WHR_G301N, /* Buffalo WHR-G301N */
ATH79_MACH_WHR_HP_G300N, /* Buffalo WHR-HP-G300N */
Index: openwrt/target/linux/ar71xx/image/generic-tp-link.mk
===================================================================
--- openwrt.orig/target/linux/ar71xx/image/generic-tp-link.mk
+++ openwrt/target/linux/ar71xx/image/generic-tp-link.mk
@@ -270,6 +270,14 @@ define Device/wbs510-v1
--- a/target/linux/ar71xx/image/generic-tp-link.mk
+++ b/target/linux/ar71xx/image/generic-tp-link.mk
@@ -271,6 +271,14 @@ define Device/wbs510-v1
endef
TARGET_DEVICES += wbs510-v1
@ -147,11 +131,9 @@ Index: openwrt/target/linux/ar71xx/image/generic-tp-link.mk
define Device/eap120-v1
DEVICE_TITLE := TP-LINK EAP120 v1
MTDPARTS := spi0.0:128k(u-boot)ro,64k(partition-table)ro,64k(product-info)ro,1536k(kernel),14336k(rootfs),192k(config)ro,64k(ART)ro,15872k@0x40000(firmware)
Index: openwrt/tools/firmware-utils/src/tplink-safeloader.c
===================================================================
--- openwrt.orig/tools/firmware-utils/src/tplink-safeloader.c
+++ openwrt/tools/firmware-utils/src/tplink-safeloader.c
@@ -518,6 +518,39 @@ static struct device_info boards[] = {
--- a/tools/firmware-utils/src/tplink-safeloader.c
+++ b/tools/firmware-utils/src/tplink-safeloader.c
@@ -484,6 +484,39 @@ static struct device_info boards[] = {
.last_sysupgrade_partition = "support-list",
},

View File

@ -1,8 +1,6 @@
Index: openwrt/target/linux/ath79/image/generic-tp-link.mk
===================================================================
--- openwrt.orig/target/linux/ath79/image/generic-tp-link.mk
+++ openwrt/target/linux/ath79/image/generic-tp-link.mk
@@ -175,6 +175,7 @@ define Device/tplink_cpe220-v3
--- a/target/linux/ath79/image/generic-tp-link.mk
+++ b/target/linux/ath79/image/generic-tp-link.mk
@@ -217,6 +217,7 @@ define Device/tplink_cpe220-v3
DEVICE_PACKAGES := rssileds
TPLINK_BOARD_ID := CPE220V3
LOADER_TYPE := elf

View File

@ -1,6 +1,6 @@
--- a/tools/firmware-utils/src/tplink-safeloader.c
+++ b/tools/firmware-utils/src/tplink-safeloader.c
@@ -312,10 +312,10 @@ static struct device_info boards[] = {
@@ -313,10 +313,10 @@ static struct device_info boards[] = {
{"default-mac", 0x30000, 0x00020},
{"product-info", 0x31100, 0x00100},
{"signature", 0x32000, 0x00400},

View File

@ -1,7 +1,5 @@
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -693,7 +693,8 @@ rb-2011uias-2hnd-r2)
ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
;;
@ -12,10 +10,8 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
ucidef_set_rssimon "wlan0" "200000" "1"
ucidef_set_led_rssi "rssilow" "RSSILOW" "rb:green:rssi0" "wlan0" "1" "100" "0" "13"
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -115,6 +115,7 @@ ar71xx_setup_interfaces()
rb-922uags-5hpacd|\
rb-lhg-5nd|\
@ -24,11 +20,9 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
rb-mapl-2nd|\
rb-sxt2n|\
rb-sxt-2nd-r3|\
Index: openwrt/target/linux/ar71xx/base-files/etc/diag.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/diag.sh
+++ openwrt/target/linux/ar71xx/base-files/etc/diag.sh
@@ -379,6 +379,7 @@ get_status_led() {
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -380,6 +380,7 @@ get_status_led() {
rb-962uigs-5hact2hnt|\
rb-lhg-5nd|\
rb-lhg-5hpnd-xl|\
@ -36,10 +30,8 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/diag.sh
rb-map-2nd|\
rb-mapl-2nd|\
rb-sxt-2nd-r3|\
Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -528,6 +528,12 @@ mikrotik_board_detect() {
*"LHG 5HPnD-XL")
name="rb-lhg-5hpnd-xl"
@ -53,10 +45,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
*"mAP 2nD"|\
*"mAP2nD")
name="rb-map-2nd"
Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -729,6 +729,7 @@ platform_check_image() {
rb-962uigs-5hact2hnt|\
rb-lhg-5nd|\
@ -73,10 +63,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
rb-map-2nd|\
rb-mapl-2nd|\
rb-sxt-2nd-r3|\
Index: openwrt/target/linux/ar71xx/image/mikrotik.mk
===================================================================
--- openwrt.orig/target/linux/ar71xx/image/mikrotik.mk
+++ openwrt/target/linux/ar71xx/image/mikrotik.mk
--- a/target/linux/ar71xx/image/mikrotik.mk
+++ b/target/linux/ar71xx/image/mikrotik.mk
@@ -46,7 +46,7 @@ define Device/rb-nor-flash-16M
DEVICE_PACKAGES := rbcfg rssileds -nand-utils kmod-ledtrig-gpio
IMAGE_SIZE := 16000k

View File

@ -1,7 +1,5 @@
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -692,7 +692,8 @@ rb-2011uias-2hnd-r2)
ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
@ -12,10 +10,8 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
ucidef_set_rssimon "wlan0" "200000" "1"
ucidef_set_led_rssi "rssilow" "RSSILOW" "rb:green:rssi0" "wlan0" "1" "100" "0" "13"
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -114,6 +114,7 @@ ar71xx_setup_interfaces()
rb-921gs-5hpacd-r2|\
rb-922uags-5hpacd|\
@ -24,11 +20,9 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
rb-mapl-2nd|\
rb-sxt2n|\
rb-sxt-2nd-r3|\
Index: openwrt/target/linux/ar71xx/base-files/etc/diag.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/diag.sh
+++ openwrt/target/linux/ar71xx/base-files/etc/diag.sh
@@ -378,6 +378,7 @@ get_status_led() {
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -379,6 +379,7 @@ get_status_led() {
rb-952ui-5ac2nd|\
rb-962uigs-5hact2hnt|\
rb-lhg-5nd|\
@ -36,10 +30,8 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/diag.sh
rb-map-2nd|\
rb-mapl-2nd|\
rb-sxt-2nd-r3|\
Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -525,6 +525,9 @@ mikrotik_board_detect() {
*"LHG 5nD")
name="rb-lhg-5nd"
@ -50,10 +42,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
*"mAP 2nD"|\
*"mAP2nD")
name="rb-map-2nd"
Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -728,6 +728,7 @@ platform_check_image() {
rb-952ui-5ac2nd|\
rb-962uigs-5hact2hnt|\
@ -70,10 +60,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
rb-map-2nd|\
rb-mapl-2nd|\
rb-sxt-2nd-r3|\
Index: openwrt/target/linux/ar71xx/image/mikrotik.mk
===================================================================
--- openwrt.orig/target/linux/ar71xx/image/mikrotik.mk
+++ openwrt/target/linux/ar71xx/image/mikrotik.mk
--- a/target/linux/ar71xx/image/mikrotik.mk
+++ b/target/linux/ar71xx/image/mikrotik.mk
@@ -46,7 +46,7 @@ define Device/rb-nor-flash-16M
DEVICE_PACKAGES := rbcfg rssileds -nand-utils kmod-ledtrig-gpio
IMAGE_SIZE := 16000k

View File

@ -1,7 +1,5 @@
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -693,6 +693,7 @@ rb-2011uias-2hnd-r2)
ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
;;
@ -10,10 +8,8 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/01_leds
rb-lhg-5hpnd-xl|\
rb-ldf-5nd)
ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -114,6 +114,7 @@ ar71xx_setup_interfaces()
rb-921gs-5hpacd-r2|\
rb-922uags-5hpacd|\
@ -22,10 +18,8 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
rb-lhg-5hpnd-xl|\
rb-ldf-5nd|\
rb-mapl-2nd|\
Index: openwrt/target/linux/ar71xx/base-files/etc/diag.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/diag.sh
+++ openwrt/target/linux/ar71xx/base-files/etc/diag.sh
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -379,6 +379,7 @@ get_status_led() {
rb-952ui-5ac2nd|\
rb-962uigs-5hact2hnt|\
@ -34,10 +28,8 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/diag.sh
rb-lhg-5hpnd-xl|\
rb-ldf-5nd|\
rb-map-2nd|\
Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -525,9 +525,13 @@ mikrotik_board_detect() {
*"962UiGS-5HacT2HnT")
name="rb-962uigs-5hact2hnt"
@ -52,7 +44,7 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
*"LHG 5HPnD-XL")
name="rb-lhg-5hpnd-xl"
;;
@@ -565,6 +569,12 @@ mikrotik_board_detect() {
@@ -566,6 +570,12 @@ mikrotik_board_detect() {
*"wAPG-5HacT2HnD")
name="rb-wapg-5hact2hnd"
;;
@ -65,10 +57,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
esac
echo "$name"
Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -728,6 +728,7 @@ platform_check_image() {
rb-952ui-5ac2nd|\
rb-962uigs-5hact2hnt|\
@ -77,10 +67,8 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
rb-lhg-5hpnd-xl|\
rb-ldf-5nd|\
rb-map-2nd|\
Index: openwrt/target/linux/ar71xx/image/mikrotik.mk
===================================================================
--- openwrt.orig/target/linux/ar71xx/image/mikrotik.mk
+++ openwrt/target/linux/ar71xx/image/mikrotik.mk
--- a/target/linux/ar71xx/image/mikrotik.mk
+++ b/target/linux/ar71xx/image/mikrotik.mk
@@ -46,7 +46,7 @@ define Device/rb-nor-flash-16M
DEVICE_PACKAGES := rbcfg rssileds -nand-utils kmod-ledtrig-gpio
IMAGE_SIZE := 16000k

View File

@ -1,7 +1,5 @@
Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -577,6 +577,20 @@ mikrotik_board_detect() {
*"SXT Lite5")
name="rb-sxt5n"
@ -20,6 +18,6 @@ Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
+ *"SXTsq5HPnD")
+ name="rb-lhg-5hpnd"
+ ;;
*"wAP 2nD r2")
*"wAP 2nD r2"|\
*"wAP 2nD r3")
name="rb-wap-2nd"
;;

View File

@ -1,8 +1,6 @@
Index: openwrt/target/linux/ar71xx/base-files/etc/diag.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/diag.sh
+++ openwrt/target/linux/ar71xx/base-files/etc/diag.sh
@@ -163,9 +163,20 @@ get_status_led() {
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -164,9 +164,20 @@ get_status_led() {
cf-e385ac)
status_led="$board:blue:wlan2g"
;;

View File

@ -1,7 +1,5 @@
Index: openwrt/package/base-files/files/lib/preinit/99_10_failsafe_login
===================================================================
--- openwrt.orig/package/base-files/files/lib/preinit/99_10_failsafe_login
+++ openwrt/package/base-files/files/lib/preinit/99_10_failsafe_login
--- a/package/base-files/files/lib/preinit/99_10_failsafe_login
+++ b/package/base-files/files/lib/preinit/99_10_failsafe_login
@@ -3,8 +3,7 @@
# Copyright (C) 2010 Vertical Communications
@ -12,11 +10,9 @@ Index: openwrt/package/base-files/files/lib/preinit/99_10_failsafe_login
}
failsafe_shell() {
Index: openwrt/package/utils/busybox/Config-defaults.in
===================================================================
--- openwrt.orig/package/utils/busybox/Config-defaults.in
+++ openwrt/package/utils/busybox/Config-defaults.in
@@ -2479,10 +2479,10 @@ config BUSYBOX_DEFAULT_UDPSVD
--- a/package/utils/busybox/Config-defaults.in
+++ b/package/utils/busybox/Config-defaults.in
@@ -2480,10 +2480,10 @@ config BUSYBOX_DEFAULT_UDPSVD
default n
config BUSYBOX_DEFAULT_TELNET
bool
@ -29,7 +25,7 @@ Index: openwrt/package/utils/busybox/Config-defaults.in
config BUSYBOX_DEFAULT_FEATURE_TELNET_AUTOLOGIN
bool
default n
@@ -2491,10 +2491,10 @@ config BUSYBOX_DEFAULT_FEATURE_TELNET_WI
@@ -2492,10 +2492,10 @@ config BUSYBOX_DEFAULT_FEATURE_TELNET_WI
default n
config BUSYBOX_DEFAULT_TELNETD
bool
@ -42,10 +38,8 @@ Index: openwrt/package/utils/busybox/Config-defaults.in
config BUSYBOX_DEFAULT_FEATURE_TELNETD_INETD_WAIT
bool
default n
Index: openwrt/package/utils/busybox/Makefile
===================================================================
--- openwrt.orig/package/utils/busybox/Makefile
+++ openwrt/package/utils/busybox/Makefile
--- a/package/utils/busybox/Makefile
+++ b/package/utils/busybox/Makefile
@@ -110,6 +110,8 @@ define Package/busybox/install
ifneq ($(CONFIG_BUSYBOX_$(BUSYBOX_SYM)_CROND),)
$(INSTALL_BIN) ./files/cron $(1)/etc/init.d/cron
@ -55,10 +49,8 @@ Index: openwrt/package/utils/busybox/Makefile
ifneq ($(CONFIG_BUSYBOX_$(BUSYBOX_SYM)_NTPD),)
$(INSTALL_BIN) ./files/sysntpd $(1)/etc/init.d/sysntpd
$(INSTALL_BIN) ./files/ntpd-hotplug $(1)/usr/sbin/ntpd-hotplug
Index: openwrt/package/utils/busybox/files/telnet
===================================================================
--- /dev/null
+++ openwrt/package/utils/busybox/files/telnet
+++ b/package/utils/busybox/files/telnet
@@ -0,0 +1,33 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006-2011 OpenWrt.org
@ -93,10 +85,8 @@ Index: openwrt/package/utils/busybox/files/telnet
+ procd_set_param command "$PROG" -F -l /bin/login.sh
+ procd_close_instance
+}
Index: openwrt/package/utils/busybox/files/login.sh
===================================================================
--- /dev/null
+++ openwrt/package/utils/busybox/files/login.sh
+++ b/package/utils/busybox/files/login.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+# Copyright (C) 2006-2011 OpenWrt.org

View File

@ -1,8 +1,6 @@
Index: openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ openwrt/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -1652,3 +1652,11 @@ ar71xx_board_detect() {
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -1663,3 +1663,11 @@ ar71xx_board_detect() {
echo "$AR71XX_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$AR71XX_MODEL" > /tmp/sysinfo/model
}

View File

@ -1,16 +1,14 @@
Index: openwrt/target/linux/ath79/base-files/etc/board.d/02_network
===================================================================
--- openwrt.orig/target/linux/ath79/base-files/etc/board.d/02_network
+++ openwrt/target/linux/ath79/base-files/etc/board.d/02_network
@@ -40,6 +40,7 @@ ath79_setup_interfaces()
ubnt,nanostation-ac-loco|\
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -58,6 +58,7 @@ ath79_setup_interfaces()
ubnt,nanostation-loco-m|\
ubnt,nanostation-loco-m-xw|\
ubnt,picostation-m|\
+ ubnt,nanostation-m-xw|\
ubnt,rocket-m|\
ubnt,unifiac-lite|\
ubnt,unifiac-lr|\
@@ -47,7 +48,9 @@ ath79_setup_interfaces()
@@ -65,7 +66,9 @@ ath79_setup_interfaces()
ubnt,unifi|\
wd,mynet-wifi-rangeextender|\
winchannel,wb2000)
@ -21,8 +19,8 @@ Index: openwrt/target/linux/ath79/base-files/etc/board.d/02_network
;;
avm,fritz4020|\
pcs,cr3000|\
@@ -84,8 +87,9 @@ ath79_setup_interfaces()
tplink,tl-wr842n-v3|\
@@ -110,8 +113,9 @@ ath79_setup_interfaces()
tplink,tl-wr941nd-v6|\
ubnt,airrouter)
ucidef_set_interface_wan "eth1"
+ ucidef_set_interface "wifi" "ifname" "wlan0" "protocol" "static"
@ -32,7 +30,7 @@ Index: openwrt/target/linux/ath79/base-files/etc/board.d/02_network
;;
buffalo,wzr-hp-g302h-a1a0)
ucidef_add_switch "switch0" \
@@ -96,7 +100,10 @@ ath79_setup_interfaces()
@@ -129,7 +133,10 @@ ath79_setup_interfaces()
tplink,cpe220-v3|\
ubnt,nanostation-m|\
ubnt,routerstation)
@ -44,7 +42,7 @@ Index: openwrt/target/linux/ath79/base-files/etc/board.d/02_network
;;
devolo,dvl1200e|\
devolo,dvl1750e|\
@@ -257,18 +264,21 @@ ath79_setup_interfaces()
@@ -287,18 +294,21 @@ ath79_setup_interfaces()
ucidef_add_switch "switch0" \
"0@eth1" "2:lan:3" "3:lan:2" "4:lan:1"
;;

View File

@ -1,7 +1,5 @@
Index: openwrt/package/base-files/files/lib/functions/uci-defaults.sh
===================================================================
--- openwrt.orig/package/base-files/files/lib/functions/uci-defaults.sh
+++ openwrt/package/base-files/files/lib/functions/uci-defaults.sh
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -153,7 +153,7 @@ _ucidef_finish_switch_roles() {
if [ ${need_tag:-0} -eq 1 -o ${want_untag:-0} -ne 1 ]; then
@ -11,10 +9,8 @@ Index: openwrt/package/base-files/files/lib/functions/uci-defaults.sh
fi
json_select roles
Index: openwrt/package/base-files/files/bin/config_generate
===================================================================
--- openwrt.orig/package/base-files/files/bin/config_generate
+++ openwrt/package/base-files/files/bin/config_generate
--- a/package/base-files/files/bin/config_generate
+++ b/package/base-files/files/bin/config_generate
@@ -165,10 +165,11 @@ generate_switch_vlans_ports() {
json_get_vars ports
json_select ..
@ -28,10 +24,8 @@ Index: openwrt/package/base-files/files/bin/config_generate
set network.@switch_vlan[-1].ports='$ports'
EOF
done
Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
===================================================================
--- openwrt.orig/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -12,8 +12,9 @@ ar71xx_setup_interfaces()
case "$board" in
@ -106,7 +100,7 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
;;
ap135-020|\
ap136-020|\
@@ -248,12 +258,18 @@ ar71xx_setup_interfaces()
@@ -250,12 +260,18 @@ ar71xx_setup_interfaces()
rb-750-r2|\
rb-750p-pbr2|\
rb-750up-r2|\
@ -129,7 +123,7 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
archer-c58-v1|\
archer-c59-v1|\
archer-c59-v2|\
@@ -303,11 +319,13 @@ ar71xx_setup_interfaces()
@@ -299,11 +315,13 @@ ar71xx_setup_interfaces()
wbs210|\
wbs510|\
wbs510-v2)
@ -144,7 +138,7 @@ 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"
;;
@@ -459,9 +477,10 @@ ar71xx_setup_interfaces()
@@ -455,9 +473,10 @@ ar71xx_setup_interfaces()
;;
gl-ar750|\
rb-435g)
@ -157,7 +151,7 @@ Index: openwrt/target/linux/ar71xx/base-files/etc/board.d/02_network
;;
gl-ar750s)
ucidef_add_switch "switch0" \
@@ -485,9 +504,10 @@ ar71xx_setup_interfaces()
@@ -481,9 +500,10 @@ ar71xx_setup_interfaces()
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5@eth1"
;;
routerstation-pro)
@ -170,7 +164,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"
@@ -599,8 +619,16 @@ ar71xx_setup_interfaces()
@@ -595,8 +615,16 @@ ar71xx_setup_interfaces()
ucidef_add_switch "switch0" \
"0@eth1" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
;;

View File

@ -1,8 +1,6 @@
Index: openwrt/package/utils/busybox/Config-defaults.in
===================================================================
--- openwrt.orig/package/utils/busybox/Config-defaults.in
+++ openwrt/package/utils/busybox/Config-defaults.in
@@ -2449,7 +2449,7 @@ config BUSYBOX_DEFAULT_PING
--- a/package/utils/busybox/Config-defaults.in
+++ b/package/utils/busybox/Config-defaults.in
@@ -2450,7 +2450,7 @@ config BUSYBOX_DEFAULT_PING
default y
config BUSYBOX_DEFAULT_PING6
bool
@ -11,7 +9,7 @@ Index: openwrt/package/utils/busybox/Config-defaults.in
config BUSYBOX_DEFAULT_FEATURE_FANCY_PING
bool
default y
@@ -2527,7 +2527,7 @@ config BUSYBOX_DEFAULT_TRACEROUTE
@@ -2528,7 +2528,7 @@ config BUSYBOX_DEFAULT_TRACEROUTE
default y
config BUSYBOX_DEFAULT_TRACEROUTE6
bool

View File

@ -1,7 +1,5 @@
Index: openwrt/package/kernel/mac80211/patches/569-ath9k-dynack-set-max-timeout.patch
===================================================================
--- /dev/null
+++ openwrt/package/kernel/mac80211/patches/569-ath9k-dynack-set-max-timeout.patch
+++ b/package/kernel/mac80211/patches/569-ath9k-dynack-set-max-timeout.patch
@@ -0,0 +1,36 @@
+--- a/drivers/net/wireless/ath/ath9k/dynack.c
++++ b/drivers/net/wireless/ath/ath9k/dynack.c
@ -39,11 +37,9 @@ Index: openwrt/package/kernel/mac80211/patches/569-ath9k-dynack-set-max-timeout.
+ struct ath_dynack *da = &ah->dynack;
+
+ da->lto = jiffies;
Index: openwrt/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
===================================================================
--- openwrt.orig/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ openwrt/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -769,7 +769,11 @@ drv_mac80211_setup() {
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -770,7 +770,11 @@ drv_mac80211_setup() {
iw phy "$phy" set antenna $txantenna $rxantenna >/dev/null 2>&1
iw phy "$phy" set antenna_gain $antenna_gain
@ -56,10 +52,8 @@ Index: openwrt/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
[ -n "$frag" ] && iw phy "$phy" set frag "${frag%%.*}"
[ -n "$rts" ] && iw phy "$phy" set rts "${rts%%.*}"
Index: openwrt/package/kernel/mac80211/patches/568-ath-dynack-set-max-timeout-according-to-clockrate.patch
===================================================================
--- /dev/null
+++ openwrt/package/kernel/mac80211/patches/568-ath-dynack-set-max-timeout-according-to-clockrate.patch
+++ b/package/kernel/mac80211/patches/568-ath-dynack-set-max-timeout-according-to-clockrate.patch
@@ -0,0 +1,93 @@
+From 72f4ba6f6b6021fcc48d07d03407c2fdb16a46c5 Mon Sep 17 00:00:00 2001
+Message-Id: <72f4ba6f6b6021fcc48d07d03407c2fdb16a46c5.1554035972.git.lorenzo@kernel.org>