After attempting to flash OpenWrt via sysupgrade, the device enters a reboot loop with UBI errors.
BusyBox v1.37.0 (2026-05-13 22:42:09 UTC) built-in shell (ash)
...
wget http://192.168.1.254:8080/openwrt-25.12.4-mediatek-filogic-routerich_ax3000-ubootmod-squashfs-sysupgrade.itb
....
sysupgrade -v -n /tmp/openwrt-25.12.4-mediatek-filogic-routerich_ax3000-ubootmod-squashfs-sysupgrade.itb
Signature check OK
Thu Jan 1 00:08:33 GMT 1970 upgrade: Commencing upgrade. Closing all shell sessions.
Hangup
-ash: can't set tty process group: Not a tty
[1]+ Hangup sysupgrade -v -n /tmp/openwrt-25.12.4-mediatek-filogic-routerich_ax3000-ubootmod-squashfs-sysupgrade.itb
root@OpenWrt:/tmp# Watchdog handover: fd=3
- watchdog -
Watchdog does not have CARDRESET support
Thu Jan 1 00:08:33 GMT 1970 upgrade: Sending TERM to remaining processes ...
Thu Jan 1 00:08:37 GMT 1970 upgrade: Sending KILL to remaining processes ...
[ 523.824678] stage2 (3263): drop_caches: 3
Thu Jan 1 00:08:43 GMT 1970 upgrade: Switching to ramdisk...
Thu Jan 1 00:08:44 UTC 1970 upgrade: Performing system upgrade...
[ 525.209265] ubi0: default fastmap pool size: 45
[ 525.213800] ubi0: default fastmap WL pool size: 22
[ 525.218640] ubi0: attaching mtd5
[ 525.675850] ubi0: scanning is finished
[ 525.679666] ubi0 error: 0xffffffc08060d330: the layout volume was not found
[ 525.686758] ubi0 error: 0xffffffc080611174: failed to attach mtd5, error -22
ubiattach: error!: cannot attach mtd5
error 22 (Invalid argument)
ubiformat: mtd5 (nand), size 128450560 bytes (122.5 MiB), 980 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 81 -- 8 % complete
ubiformat: form[ 527.286515] ubi0: default fastmap pool size: 45
ubiformat: form[ 527.291336] ubi0: default fastmap WL pool size: 22
atting erasebloc[ 527.297470] ubi0: attaching mtd5
ubiformat: formatting erasebloc[ 527.756785] ubi0: scanning is finished
[ 527.760605] ubi0 error: 0xffffffc08060d330: the layout volume was not found
[ 527.767696] ubi0 error: 0xffffffc080611174: failed to attach mtd5, error -22
ubiattach: error!: cannot attach mtd5
error 22 (Invalid argument)
cannot attach ubi mtd partition ubi
sysupgrade failed
umount: can't unmount /dev: Resource busy
umount: can't[ 527.789959] mt7530-mdio mdio-bus:1f lan2: Link is Down
unmount /tmp: R[ 527.797602] br-lan: port 3(lan3) entered disabled state
esource busy
[ 527.803251] br-lan: port 2(lan2) entered disabled state
[ 527.809693] br-lan: port 1(lan1) entered disabled state
[ 527.815774] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[ 527.824868] reboot: Restarting system
[ 0.927284] spi-nand spi0.0: calibration result: 0x3
[ 0.932495] spi-nand spi0.0: Fudan Micro SPI NAND was found.
[ 0.938186] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
[ 1.474245] 6 fixed-partitions partitions found on MTD device spi0.0
[ 1.480890] Creating 6 MTD partitions on "spi0.0":
[ 1.485680] 0x000000000000-0x000008000000 : "spi0.0"
[ 1.551784] 0x000000000000-0x000000100000 : "BL2"
[ 1.556975] 0x000000180000-0x000000380000 : "Factory"
[ 1.562705] 0x000000380000-0x000000580000 : "FIP"
[ 1.567728] 0x000000100000-0x000000180000 : "u-boot-env-orig"
[ 1.573867] 0x000000580000-0x000008000000 : "ubi"
....
cat /proc/mtd
dev: size erasesize name
mtd0: 08000000 00020000 "spi0.0"
mtd1: 00100000 00020000 "BL2"
mtd2: 00200000 00020000 "Factory"
mtd3: 00200000 00020000 "FIP"
mtd4: 00080000 00020000 "u-boot-env-orig"
mtd5: 07a80000 00020000 "ubi"
More info:
F0: 102B 0000
FA: 1040 0000
FA: 1040 0000 [0200]
F9: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 2400 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [1000]
T0: 0000 0241 [010F]
Jump to BL
NOTICE: BL2: v2.13.0(release):OpenWrt v2025.07.11~78a0dfd9-1 (mt7981-spim-nand-ddr3)
NOTICE: BL2: Built : 22:42:09, May 13 2026
NOTICE: WDT: [40000000] Software reset (reboot)
NOTICE: EMI: Using DDR3 settings
NOTICE: EMI: Detected DRAM size: 512MB
NOTICE: EMI: complex R/W mem test passed
NOTICE: CPU: MT7981 (1300MHz)
NOTICE: SPI_NAND parses attributes from parameter page.
NOTICE: SPI_NAND Detected ID 0xa1
NOTICE: Page size 2048, Block size 131072, size 134217728
NOTICE: BL2: Booting BL31
NOTICE: BL31: v2.13.0(release):OpenWrt v2025.07.11~78a0dfd9-1 (mt7981-spim-nand-ddr3)
NOTICE: BL31: Built : 22:42:09, May 13 2026
U-Boot 2025.10-OpenWrt-r32933-4ccb782af7 (May 13 2026 - 22:42:09 +0000)
CPU: MediaTek MT7981
Model: Routerich AX3000
DRAM: 512 MiB
Core: 36 devices, 16 uclasses, devicetree: embed
Loading Environment from UBI... spi-nand: spi_nand spi_nand@0: CASN page check failed
spi-nand: spi_nand spi_nand@0: Fallback to read ID
spi-nand: spi_nand spi_nand@0: FudanMicro SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
Volume ubootenv not found!
Any help would be greatly appreciated. Thanks!