From 85d581a64bfaea634503002db1827848f4c188c9 Mon Sep 17 00:00:00 2001 From: Joe Mullally Date: Mon, 30 Aug 2021 22:35:05 +0100 Subject: ath79: Move TPLink WPA8630Pv2 to ath79-tiny target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These devices only have 6MiB available for firmware, which is not enough for recent release images, so move these to the tiny target. Note for users sysupgrading from the previous ath79-generic snapshot images: The tiny target kernel has a 4Kb flash erase block size instead of the generic target's 64kb. This means the JFFS2 overlay partition containing settings must be reformatted with the new block size or else there will be data corruption. To do this, backup your settings before upgrading, then during the sysupgrade, de-select "Keep Settings". On the CLI, use "sysupgrade -n". If you forget to do this and your system becomes unstable after upgrading, you can do this to format the partition and recover: * Reboot * Press RESET when Power LED blinks during boot to enter Failsafe mode * SSH to 192.168.1.1 * Run "firstboot" and reboot Signed-off-by: Joe Mullally Tested-by: Robert Högberg (cherry picked from commit 44e1e5d153d00915a7e516c9af3f440cbd84cf78) --- target/linux/ath79/image/generic-tp-link.mk | 30 ------------------------- target/linux/ath79/image/tiny-tp-link.mk | 35 +++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 30 deletions(-) (limited to 'target/linux/ath79/image') diff --git a/target/linux/ath79/image/generic-tp-link.mk b/target/linux/ath79/image/generic-tp-link.mk index 37a0fcc169..6479f6e26a 100644 --- a/target/linux/ath79/image/generic-tp-link.mk +++ b/target/linux/ath79/image/generic-tp-link.mk @@ -640,36 +640,6 @@ define Device/tplink_tl-wpa8630-v1 endef TARGET_DEVICES += tplink_tl-wpa8630-v1 -define Device/tplink_tl-wpa8630p-v2 - $(Device/tplink-safeloader) - SOC := qca9563 - DEVICE_MODEL := TL-WPA8630P - IMAGE_SIZE := 6016k - DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct -endef - -define Device/tplink_tl-wpa8630p-v2-int - $(Device/tplink_tl-wpa8630p-v2) - DEVICE_VARIANT := v2 (Int.) - TPLINK_BOARD_ID := TL-WPA8630P-V2-INT -endef -TARGET_DEVICES += tplink_tl-wpa8630p-v2-int - -define Device/tplink_tl-wpa8630p-v2.0-eu - $(Device/tplink_tl-wpa8630p-v2) - DEVICE_VARIANT := v2.0 (EU) - TPLINK_BOARD_ID := TL-WPA8630P-V2.0-EU - SUPPORTED_DEVICES += tplink,tl-wpa8630p-v2-eu -endef -TARGET_DEVICES += tplink_tl-wpa8630p-v2.0-eu - -define Device/tplink_tl-wpa8630p-v2.1-eu - $(Device/tplink_tl-wpa8630p-v2) - DEVICE_VARIANT := v2.1 (EU) - TPLINK_BOARD_ID := TL-WPA8630P-V2.1-EU -endef -TARGET_DEVICES += tplink_tl-wpa8630p-v2.1-eu - define Device/tplink_tl-wr1043nd-v1 $(Device/tplink-8m) SOC := ar9132 diff --git a/target/linux/ath79/image/tiny-tp-link.mk b/target/linux/ath79/image/tiny-tp-link.mk index c918c6baa6..2110f08b52 100644 --- a/target/linux/ath79/image/tiny-tp-link.mk +++ b/target/linux/ath79/image/tiny-tp-link.mk @@ -223,6 +223,41 @@ define Device/tplink_tl-wa901nd-v5 endef TARGET_DEVICES += tplink_tl-wa901nd-v5 +define Device/tplink_tl-wpa8630p-v2 + $(Device/tplink-safeloader) + SOC := qca9563 + DEVICE_MODEL := TL-WPA8630P + IMAGE_SIZE := 6016k + DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct + DEVICE_COMPAT_VERSION := 2.0 + DEVICE_COMPAT_MESSAGE := The flash erase blocksize has changed to 4k from the 64k in previous versions, \ + so the JFFS2 settings partition MUST be reformatted to avoid data corruption. \ + Backup your settings before upgrading, then during sysupgrade, \ + de-select "Keep settings" and select "Force" to continue (equivilant to "sysupgrade -n -F"). +endef + +define Device/tplink_tl-wpa8630p-v2-int + $(Device/tplink_tl-wpa8630p-v2) + DEVICE_VARIANT := v2 (Int.) + TPLINK_BOARD_ID := TL-WPA8630P-V2-INT +endef +TARGET_DEVICES += tplink_tl-wpa8630p-v2-int + +define Device/tplink_tl-wpa8630p-v2.0-eu + $(Device/tplink_tl-wpa8630p-v2) + DEVICE_VARIANT := v2.0 (EU) + TPLINK_BOARD_ID := TL-WPA8630P-V2.0-EU + SUPPORTED_DEVICES += tplink,tl-wpa8630p-v2-eu +endef +TARGET_DEVICES += tplink_tl-wpa8630p-v2.0-eu + +define Device/tplink_tl-wpa8630p-v2.1-eu + $(Device/tplink_tl-wpa8630p-v2) + DEVICE_VARIANT := v2.1 (EU) + TPLINK_BOARD_ID := TL-WPA8630P-V2.1-EU +endef +TARGET_DEVICES += tplink_tl-wpa8630p-v2.1-eu + define Device/tplink_tl-wr703n $(Device/tplink-4mlzma) SOC := ar9331 -- cgit v1.2.3