]> git.ipfire.org Git - thirdparty/openwrt.git/commit
ath79: tiny: set default BLOCKSIZE to 4 KB 22497/head
authorShiji Yang <yangshiji66@outlook.com>
Thu, 19 Mar 2026 11:26:00 +0000 (19:26 +0800)
committerRobert Marko <robimarko@gmail.com>
Sat, 16 May 2026 08:24:08 +0000 (10:24 +0200)
commit625abd81263ea8565410b6f0846dbfec29aadc69
tree3f9b2e31388173ef67bbc2b8b65d940731e35618
parent6a608bcf4e25e0541dda2e9739c63f70498b3804
ath79: tiny: set default BLOCKSIZE to 4 KB

The NOR Flash mtd erase block size is 4 KB on ath79 tiny sub-target.
Squashfs-split driver always check and create the jffs2 rootfs_data
partition on the first free block. However, sysupgrade script append
the config backup to the end of the sysupgrade image. If we pad the
image to the 64 KB boundary, the kernel will be unable to find a
valid jffs2 partition and then recreate the rootfs_data partition.
Users may lose their config during upgrades. Fix this issue by setting
BLOCKSIZE to 4 KB so that the sysupgrade image can be aligned to the
4 KB boundary.

Fixes: https://github.com/openwrt/openwrt/issues/20495
Fixes: 05d35403b211 ("ath79-tiny: enable 4k sectors")
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/22497
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/image/Makefile
target/linux/ath79/image/tiny-tp-link.mk
target/linux/ath79/image/tiny.mk