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>
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"
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|\
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
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
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|\
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|\