Browse Source

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 <[email protected]>
[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 <[email protected]>
Ivan Diaz 10 months ago
parent
commit
65b6f1c1b2

+ 0 - 3
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"

+ 0 - 3
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|\

+ 0 - 39
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

+ 39 - 0
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

+ 6 - 0
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|\

+ 3 - 0
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|\