[openwrt/openwrt] ath79: move TP-Link RE450 v1 & v2 and RE355 v1 to tiny target

LEDE Commits lede-commits at lists.infradead.org
Mon Mar 31 15:02:24 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/65b6f1c1b2512d5b91f3dd9b02bae0c17249d6fc

commit 65b6f1c1b2512d5b91f3dd9b02bae0c17249d6fc
Author: Ivan Diaz <diaz.it at icloud.com>
AuthorDate: Sun Mar 9 22:17:12 2025 -0500

    ath79: move TP-Link RE450 v1 & v2 and RE355 v1 to tiny target
    
    This restores sysupgrade support
    
    Since OpenWrt 23.05, the firmware selector no longer provides sysupgrade
    images for RE450 V1 & V2 and RE355 v1 due to image size constraints
    (~5.7MB limit), making the generic build unusable.
    
    This commit moves RE450 V1 & V2 to the tiny target, enabling:
    - Smaller image builds within the flash size limit.
    - Restored sysupgrade support via the firmware selector.
    - A secure-by-default wireless setup while allowing full management via UCI.
    - Officially supported images, reducing the need for custom (potentially insecure) builds.
    
    This ensures users can install a functional OpenWrt build without compromising security defaults.
    
    Signed-off-by: Ivan Diaz <diaz.it at icloud.com>
    [Squashed the commits together and just copied the target definition
    from the generic subtarget.]
    Link: https://github.com/openwrt/openwrt/pull/18126
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 .../ath79/generic/base-files/etc/board.d/01_leds   |  3 --
 .../generic/base-files/etc/board.d/02_network      |  3 --
 target/linux/ath79/image/generic-tp-link.mk        | 39 ----------------------
 target/linux/ath79/image/tiny-tp-link.mk           | 39 ++++++++++++++++++++++
 .../ath79/tiny/base-files/etc/board.d/01_leds      |  6 ++++
 .../ath79/tiny/base-files/etc/board.d/02_network   |  3 ++
 6 files changed, 48 insertions(+), 45 deletions(-)

diff --git a/target/linux/ath79/generic/base-files/etc/board.d/01_leds b/target/linux/ath79/generic/base-files/etc/board.d/01_leds
index 4eddde1115..4107563439 100644
--- a/target/linux/ath79/generic/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/generic/base-files/etc/board.d/01_leds
@@ -464,9 +464,6 @@ tplink,tl-wr902ac-v1)
 	ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
 	ucidef_set_led_netdev "internet" "Internet" "green:internet" "eth0"
 	;;
-tplink,re355-v1|\
-tplink,re450-v1|\
-tplink,re450-v2|\
 tplink,re450-v3|\
 tplink,re455-v1)
 	ucidef_set_led_netdev "lan_data" "LAN Data" "green:lan_data" "eth0" "tx rx"
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 b1e5818567..4da8d36d50 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
@@ -98,9 +98,6 @@ ath79_setup_interfaces()
 	tplink,eap225-v4|\
 	tplink,eap245-v1|\
 	tplink,re350k-v1|\
-	tplink,re355-v1|\
-	tplink,re450-v1|\
-	tplink,re450-v2|\
 	tplink,re450-v3|\
 	tplink,re455-v1|\
 	tplink,tl-wa1201-v2|\
diff --git a/target/linux/ath79/image/generic-tp-link.mk b/target/linux/ath79/image/generic-tp-link.mk
index c42338db78..e9a63ad12b 100644
--- a/target/linux/ath79/image/generic-tp-link.mk
+++ b/target/linux/ath79/image/generic-tp-link.mk
@@ -537,45 +537,6 @@ define Device/tplink_re350k-v1
 endef
 TARGET_DEVICES += tplink_re350k-v1
 
-define Device/tplink_rex5x-v1
-  $(Device/tplink-safeloader)
-  SOC := qca9558
-  IMAGE_SIZE := 6016k
-  DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
-  DEFAULT := n
-endef
-
-define Device/tplink_re355-v1
-  $(Device/tplink_rex5x-v1)
-  DEVICE_MODEL := RE355
-  DEVICE_VARIANT := v1
-  TPLINK_BOARD_ID := RE355
-  SUPPORTED_DEVICES += re355
-endef
-TARGET_DEVICES += tplink_re355-v1
-
-define Device/tplink_re450-v1
-  $(Device/tplink_rex5x-v1)
-  DEVICE_MODEL := RE450
-  DEVICE_VARIANT := v1
-  TPLINK_BOARD_ID := RE450
-  SUPPORTED_DEVICES += re450
-endef
-TARGET_DEVICES += tplink_re450-v1
-
-define Device/tplink_re450-v2
-  $(Device/tplink-safeloader)
-  SOC := qca9563
-  IMAGE_SIZE := 6016k
-  DEVICE_MODEL := RE450
-  DEVICE_VARIANT := v2
-  DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
-  TPLINK_BOARD_ID := RE450-V2
-  LOADER_TYPE := elf
-  DEFAULT := n
-endef
-TARGET_DEVICES += tplink_re450-v2
-
 define Device/tplink_re450-v3
   $(Device/tplink-safeloader)
   SOC := qca9563
diff --git a/target/linux/ath79/image/tiny-tp-link.mk b/target/linux/ath79/image/tiny-tp-link.mk
index 70c3ab4c7b..9e5b74db8c 100644
--- a/target/linux/ath79/image/tiny-tp-link.mk
+++ b/target/linux/ath79/image/tiny-tp-link.mk
@@ -1,5 +1,44 @@
 include ./common-tp-link.mk
 
+define Device/tplink_rex5x-v1
+  $(Device/tplink-safeloader)
+  SOC := qca9558
+  IMAGE_SIZE := 6016k
+  DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
+  DEFAULT := n
+endef
+
+define Device/tplink_re355-v1
+  $(Device/tplink_rex5x-v1)
+  DEVICE_MODEL := RE355
+  DEVICE_VARIANT := v1
+  TPLINK_BOARD_ID := RE355
+  SUPPORTED_DEVICES += re355
+endef
+TARGET_DEVICES += tplink_re355-v1
+
+define Device/tplink_re450-v1
+  $(Device/tplink_rex5x-v1)
+  DEVICE_MODEL := RE450
+  DEVICE_VARIANT := v1
+  TPLINK_BOARD_ID := RE450
+  SUPPORTED_DEVICES += re450
+endef
+TARGET_DEVICES += tplink_re450-v1
+
+define Device/tplink_re450-v2
+  $(Device/tplink-safeloader)
+  SOC := qca9563
+  IMAGE_SIZE := 6016k
+  DEVICE_MODEL := RE450
+  DEVICE_VARIANT := v2
+  DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
+  TPLINK_BOARD_ID := RE450-V2
+  LOADER_TYPE := elf
+  DEFAULT := n
+endef
+TARGET_DEVICES += tplink_re450-v2
+
 define Device/tplink_tl-mr10u
   $(Device/tplink-4mlzma)
   SOC := ar9331
diff --git a/target/linux/ath79/tiny/base-files/etc/board.d/01_leds b/target/linux/ath79/tiny/base-files/etc/board.d/01_leds
index 76d14ebb71..a09cfaee81 100644
--- a/target/linux/ath79/tiny/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/tiny/base-files/etc/board.d/01_leds
@@ -59,6 +59,12 @@ on,n150r)
 	ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x02" "0x0f"
 	ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x04" "0x0f"
 	;;
+tplink,re355-v1|\
+tplink,re450-v1|\
+tplink,re450-v2)
+	ucidef_set_led_netdev "lan_data" "LAN Data" "green:lan_data" "eth0" "tx rx"
+	ucidef_set_led_netdev "lan_link" "LAN Link" "green:lan_link" "eth0" "link"
+	;;
 tplink,tl-mr3020-v1|\
 tplink,tl-mr3040-v2|\
 tplink,tl-wa701nd-v1|\
diff --git a/target/linux/ath79/tiny/base-files/etc/board.d/02_network b/target/linux/ath79/tiny/base-files/etc/board.d/02_network
index a204e820ca..8bc7040d03 100644
--- a/target/linux/ath79/tiny/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/tiny/base-files/etc/board.d/02_network
@@ -16,6 +16,9 @@ ath79_setup_interfaces()
 	engenius,eap350-v1|\
 	engenius,ecb350-v1|\
 	pqi,air-pen|\
+	tplink,re355-v1|\
+	tplink,re450-v1|\
+	tplink,re450-v2|\
 	tplink,tl-mr10u|\
 	tplink,tl-mr3020-v1|\
 	tplink,tl-mr3040-v2|\




More information about the lede-commits mailing list