]> git.ipfire.org Git - thirdparty/openwrt.git/commit
mediatek: fix ubi size for zbtlink zbt z8102ax v2 21085/head
authorTianling Shen <cnsztl@immortalwrt.org>
Thu, 13 Nov 2025 13:41:30 +0000 (21:41 +0800)
committerRobert Marko <robimarko@gmail.com>
Mon, 8 Dec 2025 16:27:20 +0000 (17:27 +0100)
commit9fa8e7e9a3a98282fac09880b014e980e476796d
tree72c4f83d0d393b18cfbffc9585a58fc4b075f10a
parent0ed59099ee105925926df4d811b131b97706d530
mediatek: fix ubi size for zbtlink zbt z8102ax v2

According to the factory uboot and firmware[1], the ubi size is set
to 512 MiB (0x20000000) and it exceeds the size of the flash, after
that the uboot and kernel resizes it to 114.5 MiB (0x7280000) instead
of 114.125 MiB (0x7220000). The mismatch of the ubi size causes
kernel fails to read ubi volumes and throws panic.

Trim whitespaces while at it.

1. https://github.com/immortalwrt/immortalwrt/issues/2123#issuecomment-3523744128

Fixes: c908fc7d9591 ("mediatek: add support for Zbtlink ZBT-Z8102AX v2")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/20769
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit d2fa070f7014e8b1144a23e343b31390e7f565ff)
[rebased upon 24.10 branch]
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/21085
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts
target/linux/mediatek/filogic/base-files/etc/board.d/05_compat-version
target/linux/mediatek/image/filogic.mk