AX6000 stuck in recovery initramfs

My Redmi AX6000 is working on OpenWrt 23.05.2 r23630-842932a63d / LuCI openwrt-23.05 branch git-23.306.39416-c86c256 almost a year.
I got random disconnects and I login to my router, password was erased and I see:

No password set!

There is no password set on this router. Please configure a root password to protect the web interface.
#### System running in recovery (initramfs) mode.
No changes to settings will be stored and are lost after rebooting. This mode should only be used to install a firmware upgrade

Password cant be set, firmware cant by upgraded/flashed, all my settings are erased. Wifi does not work. Router is flashed as "U-boot mod layout"
I did not flashed router in last 10 months.

Kernel log:

System.log:

Is there any way to fix it or it`s time to buy new router ?

Try to follow https://openwrt.org/toh/xiaomi/redmi_ax6000#installing_openwrt_u-boot_layout starting at 3.

root@OpenWrt:/tmp# ubiformat /dev/mtd7 -y -f /tmp/openwrt-24.10.0-mediatek-filogic-xiaomi_redmi-router-ax6000-ubootmod-initramfs-fact
ory.ubi
libmtd: error!: cannot get information about "/dev/mtd7"
error 2 (No such file or directory)
ubiformat: error!: cannot get information about "/dev/mtd7"
error 2 (No such file or directory)

root@OpenWrt:/tmp# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "BL2"
mtd1: 00040000 00020000 "Nvram"
mtd2: 00040000 00020000 "Bdata"
mtd3: 00200000 00020000 "Factory"
mtd4: 00200000 00020000 "FIP"
mtd5: 07a80000 00020000 "ubi"
root@OpenWrt:/tmp#

[ 0.017911] Unpacking initramfs

Start by completing OpenWRT installation, you are still running rootfs kernel used temporarily during installation

I did every step of installation long time ago. It failed this weekend.
Now i tryed to reflash and it looks good now.
root@OpenWrt:/tmp# wget https://downloads.openwrt.org/releases/24.10.0/targets/mediatek/filogic/openwrt-24.10.0-mediatek-filogic-xiao
mi_redmi-router-ax6000-ubootmod-squashfs-sysupgrade.itb
Downloading 'https://downloads.openwrt.org/releases/24.10.0/targets/mediatek/filogic/openwrt-24.10.0-mediatek-filogic-xiaomi_redmi-router-ax6000-ubootmod-squashfs-sysupgrade.itb'
Connecting to 199.232.190.132:443
Writing to 'openwrt-24.10.0-mediatek-filogic-xiaomi_redmi-router-ax6000-ubootmod-squashfs-sysupgrade.itb'
openwrt-24.10.0-medi 100% |*******************************| 10596k 0:00:00 ETA
Download completed (10850648 bytes)
root@OpenWrt:/tmp# sysupgrade -n /tmp/op
openwrt-24.10.0-mediatek-filogic-xiaomi_redmi-router-ax6000-ubootmod-squashfs-sysupgrade.itb
opkg-lists/
root@OpenWrt:/tmp# sysupgrade -n /tmp/openwrt-24.10.0-mediatek-filogic-xiaomi_redmi-router-ax6000-ubootmod-squashfs-sysupgrade.itb
Mon Feb 24 13:14:34 UTC 2025 upgrade: Commencing upgrade. Closing all shell sessions.
Command failed: Connection failed
root@OpenWrt:/tmp# Connection to 192.168.1.1 closed by remote host.
Connection to 192.168.1.1 closed.
After this i got OpenWrt 24.10.0 r28427-6df0e3d02a / LuCI openwrt-24.10 branch 25.014.55016~7046a1c up and running. I dont know for how long.

What is now in ubus call system board - namely rootfs type is squashfs or initrd.

root@OpenWrt:~# ubus call system board
{
        "kernel": "6.6.73",
        "hostname": "OpenWrt",
        "system": "ARMv8 Processor rev 4",
        "model": "Xiaomi Redmi Router AX6000 (OpenWrt U-Boot layout)",
        "board_name": "xiaomi,redmi-router-ax6000-ubootmod",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "24.10.0",
                "revision": "r28427-6df0e3d02a",
                "target": "mediatek/filogic",
                "description": "OpenWrt 24.10.0 r28427-6df0e3d02a",
                "builddate": "1738624177"
        }
}
root@OpenWrt:~#
(date ; echo I am a good router) > /etc/banner

and reboot. Are files preserved?

Looks good :slight_smile:


root@192.168.1.1's password:


BusyBox v1.36.1 (2025-02-03 23:09:37 UTC) built-in shell (ash)

Mon Feb 24 18:34:25 CET 2025
I am a good router
root@AX:~# date
Mon Feb 24 18:35:58 CET 2025
root@AX:~#
1 Like

To avoid messing up in future install luci-app-attendedsysupgrade and/or owut , and sysupgrade all software at once towards next minor release.