I'm not a very experienced Linux user but I am generally pretty PC savvy. I'm trying to install OpenWrt on the Redmi AX6000 using this guide (https://openwrt.org/toh/xiaomi/redmi_ax6000) and at this step (if firmware=0, current system is ubi, flash to ubi1:
ubiformat /dev/mtd9 -y -f /tmp/openwrt-{version}-mediatek-filogic-xiaomi_redmi-router-ax6000-stock-initramfs-factory.ubi) I'm getting the following error:
ubiformat: mtd9 (nand), size 31457280 bytes (30.0 MiB), 240 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 239 -- 100 % complete
ubiformat: 240 eraseblocks have valid erase counter, mean value is 0
ubiformat: error!: file "/tmp/openwrt-24.10.2-mediatek-filogic-xiaomi_redmi-router-ax6000-stock-initramfs-factory.ubi" (size 1624 bytes) is not multiple of eraseblock size (131072 bytes)
error 0 (No error information)
I downloaded the .ubi file onto the router using wget. What can I do to solve this issue and proceed? Appreciate the help!
I see. So the problem is that the file didn't download correctly? What's the best way to get the file onto the router? I'm not sure how to do it if I download onto my PC first
I realized you're on stock at this point, there might not be any SCP/SFTP.
In that case, you should use wget, and router should be connected to internet.
wget might fail, if URL is wrong, and DL some error page it gets from the web server.