Problem with installing OpenWrt on Redmi AX6000

Hello,

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!

Anyone have any idea what's causing this error? Thank you.

Does this refer to the file size ?

That's what I'm assuming but not sure

In that's case, it's wrong.

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

Winscp, if you're on windows, make sure you use SFTP as transfer protocol.

OK I'll give that a try tonight, thank you! Why wouldn't wget work to grab the file directly?

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.

1 Like

OK, I'll double check the path. I saw a post here saying to use curl to grab the file instead, is that a preferred method?

Curl would work too, if available in stock.

1 Like

Success ???

I could not get wget or curl to work but I did manage to move the file over with WinSCP and flash from there. Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.