mediatek: fix ubi size for zbtlink zbt z8102ax v2
authorTianling Shen <cnsztl@immortalwrt.org>
Thu, 13 Nov 2025 13:41:30 +0000 (21:41 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 20 Nov 2025 22:26:29 +0000 (23:26 +0100)
commitd2fa070f7014e8b1144a23e343b31390e7f565ff
treee662a479de4c2c56c25f9fdbda2ed1a6c9e357e6
parent2cc8d3e382c0b8b919cef2e9f1cfec9ec7954150
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>
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