Xiaomi Redmi AX6000 openwrt installation issue

Hi,
I am stuck at this point when following this guide, https://openwrt.org/toh/xiaomi/redmi_ax6000?s[]=xiaomi&s[]=redmi&s[]=router&s[]=ax6000&s[]=stock&s[]=layout:

"% scp -O openwrt-{version}-mediatek-filogic-xiaomi_redmi-router-ax6000-stock-initramfs-factory.ubi root@192.168.31.1:/tmp"

I am getting below error when doing so.
root@XiaoQiang:/etc# % scp -O openwrt-23.05.5-mediatek-filogic-xiaomi_redmi-rout
er-ax6000-stock-initramfs-factory.ubi root@192.168.31.1:/tmp
/bin/ash: %: not found

I am using Windows 10. I dont have linux machine.

you're not supposed to run scp command on the openwrt device, but from a client.

remove the %, it's not part of the command.

on windows there's winscp, if you don't like cli.

@frollic , I already tried that. But I am getting this error

C:\Windows\system32>scp C:\Temp\AX6000\openwrt-23.05.5-mediatek-filogic-xiaomi_redmi-router-ax6000-stock-initramfs-factory.ubi root@192.168.31.1:/tmp
ssh: connect to host 192.168.31.1 port 22: Connection refused
scp: Connection closed

C:\Windows\system32>

Is there something that I am missing? Only telnet works on port 23. Port 22 does not seems to work

I assume you did all the dropbear steps described in the link ?

if your device have wget (I don't own one, just guessing), and is connected to internet, try directly on the AX6000:

cd /tmp
wget https://downloads.openwrt.org/releases/23.05.5/targets/mediatek/filogic/openwrt-23.05.5-mediatek-filogic-xiaomi_redmi-router-ax6000-stock-initramfs-factory.ubi

@frollic when you said the first statement, I try to check all the steps again and I did missed "cd ~". After I run that command, ssh work. But now I am getting this error.

C:\Windows\system32>scp -o HostKeyAlgorithms=+ssh-rsa C:\Temp\AX6000\openwrt-23.05.5-mediatek-filogic-xiaomi_redmi-router-ax6000-stock-initramfs-factory.ubi root@192.168.31.1:/tmp
root@192.168.31.1's password:
ash: /usr/libexec/sftp-server: not found
scp: Connection closed

Do I need to restart dropbear?

I try wget command as you suggested, but it does not work as well.
root@XiaoQiang:/tmp# wget https://downloads.openwrt.org/releases/23.05.5/targets
/mediatek/filogic/openwrt-23.05.5-mediatek-filogic-xiaomi_redmi-router-ax6000-st
ock-initramfs-factory.ubi
wget: not an http or ftp url: https://downloads.openwrt.org/releases/23.05.5/targets/mediatek/filogic/openwrt-23.05.5-mediatek-filogic-xiaomi_redmi-router-ax6000-stock-initramfs-factory.ubi
root@XiaoQiang:/tmp#

no, you need to force scp to use scp protocol, instead of sftp, I believe it's -O.

remove the S from HTTPS://....

@frollic I modify the command a bit. Instead of using wget, I use curl. Now it is downloading. Thanks, appreciate for the help.

2 Likes

I am succesfully deploy stock layout on AX6000. Now I want to do uboot layout. When trying to run this command I am getting this error. Can someone assist on how to fix this error?
==========================================
root@RB06:/tmp# ubiformat /dev/mtd7 -y -f /tmp/openwrt-23.05.5-mediatek-filogic-xiaomi_redmi-router-ax6000-ubootmod-initramfs-factory.ubi
ubiformat: mtd7 (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: 239 eraseblocks have valid erase counter, mean value is 2
ubiformat: 1 eraseblocks are supposedly empty
ubiformat: flashing eraseblock 0 -- 0 % complete ubiformat: error!: eof reached; 131072 bytes remaining
ubiformat: error!: failed to read eraseblock 0 from "/tmp/openwrt-23.05.5-mediatek-filogic-xiaomi_redmi-router-ax6000-ubootmod-initramfs-factory.ubi"
** error 0 (No error information)**
root@RB06:/tmp#
========================================

Ignore this. Issue has been resolved. :slight_smile:

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