]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: add 4k blocksize for RE355/RE450 rootfs alignment
authorIvan Diaz <diaz.it@icloud.com>
Thu, 26 Feb 2026 13:48:52 +0000 (08:48 -0500)
committerRobert Marko <robimarko@gmail.com>
Tue, 10 Mar 2026 09:10:42 +0000 (10:10 +0100)
Misaligned rootfs_data caused config loss on sysupgrade. Set BLOCKSIZE
:= 4k for proper JFFS2 alignment. Add DEVICE_COMPAT_MESSAGE for
sysupgrade -F requirement.

Signed-off-by: Ivan Diaz <diaz.it@icloud.com>
Link: https://github.com/openwrt/openwrt/pull/22185
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 831685aa1568454ae4a6594a967a1b0f225e7770)

target/linux/ath79/image/tiny-tp-link.mk

index 90675248fe0efe13ddd2e35f08e9ae46b6957302..fa72ff8baa15647e5cb93dca10d88f282b2536c6 100644 (file)
@@ -3,12 +3,12 @@ include ./common-tp-link.mk
 define Device/tplink_rex5x
   $(Device/tplink-safeloader)
   SOC := qca9558
+  BLOCKSIZE := 4k
   IMAGE_SIZE := 7680k
   KERNEL_SIZE := 6016k
   DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
   DEVICE_COMPAT_VERSION := 2.0
-  DEVICE_COMPAT_MESSAGE := Partition layout has changed compared to older versions by utilizing unused flash. \
-    Upgrade via sysupgrade mechanism (-F) will only work if flashed image still fits to the size of old partition (6016 KiB).
+  DEVICE_COMPAT_MESSAGE := Partition layout and blocksize changed. Use sysupgrade -F; image must not exceed 6016 KiB (5.875 MB).
   IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size | append-metadata
 endef