mediatek: change Routerich AX3000 ubi size

All new routers are shipped with ubi size 112MB since early September.
Bootloader update required (ask vendor , see wiki)

These partitions weren't used:
firmware_backup
zrsave
config2

Signed-off-by: Romanov Danila <pervokur@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16686
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit d8a9669093)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz>
This commit is contained in:
Romanov Danila 2024-10-21 21:34:34 +03:00 committed by Petr Štetiar
parent 8eb07120a2
commit fb4088cdec
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3
3 changed files with 9 additions and 19 deletions

View File

@ -226,25 +226,7 @@
partition@580000 { partition@580000 {
label = "ubi"; label = "ubi";
reg = <0x580000 0x4000000>; reg = <0x580000 0x7000000>;
};
partition@4580000 {
label = "firmware_backup";
reg = <0x4580000 0x2000000>;
read-only;
};
partition@6580000 {
label = "zrsave";
reg = <0x6580000 0x100000>;
read-only;
};
partition@6680000 {
label = "config2";
reg = <0x6680000 0x100000>;
read-only;
}; };
}; };
}; };

View File

@ -8,6 +8,9 @@ case "$(board_name)" in
bananapi,bpi-r3) bananapi,bpi-r3)
ucidef_set_compat_version "1.2" ucidef_set_compat_version "1.2"
;; ;;
routerich,ax3000)
ucidef_set_compat_version "1.1"
;;
esac esac
board_config_flush board_config_flush

View File

@ -1173,6 +1173,11 @@ define Device/routerich_ax3000
DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware kmod-usb3 DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware kmod-usb3
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
SUPPORTED_DEVICES += mediatek,mt7981-spim-snand-rfb SUPPORTED_DEVICES += mediatek,mt7981-spim-snand-rfb
DEVICE_COMPAT_VERSION := 1.1
DEVICE_COMPAT_MESSAGE := Partition layout has been changed. Bootloader MUST be \
upgraded to avoid data corruption and getting bricked. \
Please, contact your vendor and follow the guide: \
https://openwrt.org/toh/routerich/ax3000#web_ui_method
endef endef
TARGET_DEVICES += routerich_ax3000 TARGET_DEVICES += routerich_ax3000