Skip to content

Commit d8a9669

Browse files
erantakehauke
authored andcommitted
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 <[email protected]> Link: openwrt/openwrt#16686 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent 75af6a0 commit d8a9669

File tree

3 files changed

+9
-19
lines changed

3 files changed

+9
-19
lines changed

target/linux/mediatek/dts/mt7981b-routerich-ax3000.dts

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -226,25 +226,7 @@
226226

227227
partition@580000 {
228228
label = "ubi";
229-
reg = <0x580000 0x4000000>;
230-
};
231-
232-
partition@4580000 {
233-
label = "firmware_backup";
234-
reg = <0x4580000 0x2000000>;
235-
read-only;
236-
};
237-
238-
partition@6580000 {
239-
label = "zrsave";
240-
reg = <0x6580000 0x100000>;
241-
read-only;
242-
};
243-
244-
partition@6680000 {
245-
label = "config2";
246-
reg = <0x6680000 0x100000>;
247-
read-only;
229+
reg = <0x580000 0x7000000>;
248230
};
249231
};
250232
};

target/linux/mediatek/filogic/base-files/etc/board.d/05_compat-version

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ case "$(board_name)" in
88
bananapi,bpi-r3)
99
ucidef_set_compat_version "1.2"
1010
;;
11+
routerich,ax3000)
12+
ucidef_set_compat_version "1.1"
13+
;;
1114
esac
1215

1316
board_config_flush

target/linux/mediatek/image/filogic.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,11 @@ define Device/routerich_ax3000
11731173
DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware kmod-usb3
11741174
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
11751175
SUPPORTED_DEVICES += mediatek,mt7981-spim-snand-rfb
1176+
DEVICE_COMPAT_VERSION := 1.1
1177+
DEVICE_COMPAT_MESSAGE := Partition layout has been changed. Bootloader MUST be \
1178+
upgraded to avoid data corruption and getting bricked. \
1179+
Please, contact your vendor and follow the guide: \
1180+
https://openwrt.org/toh/routerich/ax3000#web_ui_method
11761181
endef
11771182
TARGET_DEVICES += routerich_ax3000
11781183

0 commit comments

Comments
 (0)