mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-10 08:44:39 +01:00
mediatek: fix ubi size for zbtlink zbt z8102ax v2
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
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:c908fc7d95("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 commitd2fa070f70) [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>
This commit is contained in:
parent
0ed59099ee
commit
9fa8e7e9a3
3 changed files with 10 additions and 7 deletions
|
|
@ -207,7 +207,7 @@
|
||||||
|
|
||||||
nand_rootfs: partition@580000 {
|
nand_rootfs: partition@580000 {
|
||||||
label = "ubi";
|
label = "ubi";
|
||||||
reg = <0x0580000 0x7220000>;
|
reg = <0x0580000 0x7280000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@ case "$(board_name)" in
|
||||||
bananapi,bpi-r3)
|
bananapi,bpi-r3)
|
||||||
ucidef_set_compat_version "1.2"
|
ucidef_set_compat_version "1.2"
|
||||||
;;
|
;;
|
||||||
routerich,ax3000)
|
routerich,ax3000|\
|
||||||
|
zbtlink,zbt-z8102ax-v2)
|
||||||
ucidef_set_compat_version "1.1"
|
ucidef_set_compat_version "1.1"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -2096,6 +2096,8 @@ define Device/zbtlink_zbt-z8102ax-v2
|
||||||
IMAGES += factory.bin
|
IMAGES += factory.bin
|
||||||
IMAGE/factory.bin := append-ubi | check-size $$(IMAGE_SIZE)
|
IMAGE/factory.bin := append-ubi | check-size $$(IMAGE_SIZE)
|
||||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||||
|
DEVICE_COMPAT_VERSION := 1.1
|
||||||
|
DEVICE_COMPAT_MESSAGE := Partition layout has been changed to fit the bootloader
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += zbtlink_zbt-z8102ax-v2
|
TARGET_DEVICES += zbtlink_zbt-z8102ax-v2
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue