]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: move TP-Link RE450 v1 & v2 and RE355 v1 to tiny target 18126/head
authorIvan Diaz <diaz.it@icloud.com>
Mon, 10 Mar 2025 03:17:12 +0000 (22:17 -0500)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 31 Mar 2025 21:59:12 +0000 (23:59 +0200)
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@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@hauke-m.de>
target/linux/ath79/generic/base-files/etc/board.d/01_leds
target/linux/ath79/generic/base-files/etc/board.d/02_network
target/linux/ath79/image/generic-tp-link.mk
target/linux/ath79/image/tiny-tp-link.mk
target/linux/ath79/tiny/base-files/etc/board.d/01_leds
target/linux/ath79/tiny/base-files/etc/board.d/02_network

index 4eddde1115b6c32d9b3262c3cc54d220685432c4..41075634398d2ca3bc54676b09a81ca8b1511ad8 100644 (file)
@@ -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"
index b1e5818567d2f08f7da01956096bcfc66dc66c97..4da8d36d509e8ee1730067c852df7313ebfe4908 100644 (file)
@@ -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|\
index c42338db78320367c5864013b31c61e4952e6e74..e9a63ad12b338380f27d53bc7a27d3f55fbe3ee2 100644 (file)
@@ -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
index 70c3ab4c7b5d5425a679766078e3d907d57c9559..9e5b74db8cbe936962cd36e76751645f5bb6d1d6 100644 (file)
@@ -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
index 76d14ebb71c8f19ffe920ae128e40abf56a401a5..a09cfaee816afbf0bfe1e9d08901c0361c0ffd87 100644 (file)
@@ -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|\
index a204e820ca24aba005b307b17bcf01fa4a63f34f..8bc7040d0385d9078a7e05f413b71564744fdc80 100644 (file)
@@ -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|\