Xiaomi Mi Router 4 OpenWrt Firmware

The Xiaomi Mi Router 4 is supported by OpenWrt on the ramips/mt7621 target. 4 firmware images are available from the official OpenWrt 25.12.5 stable release — download one below, or build a custom OpenWrt image for this device with your own package selection.

Build matrix

Supported firmware versions

DistributionVersionTargetProfile
OpenWrt25.12.5ramips/mt7621xiaomi_mi-router-4

Downloads

Download images

OpenWrt 25.12.5 · ramips/mt7621

ImageTypesha256
openwrt-25.12.5-ramips-mt7621-xiaomi_mi-router-4-initramfs-kernel.bin

Minimal kernel image, useful for first install or recovery.

kernel41e52c4cbeb7
openwrt-25.12.5-ramips-mt7621-xiaomi_mi-router-4-squashfs-rootfs0.bin

Rootfs archive for Docker / LXC containers.

rootfs0ee17bd5ba84a
openwrt-25.12.5-ramips-mt7621-xiaomi_mi-router-4-squashfs-sysupgrade.bin

Not sure? Pick this if upgrading from OpenWrt.

sysupgrade52261043a070
openwrt-25.12.5-ramips-mt7621-xiaomi_mi-router-4-squashfs-kernel1.binkernel1a38aa0f3a024

Downloads are served by the official OpenWrt mirrors — unchanged upstream stable builds.

Packages & install

Default packages & installation

Default packages

Every image for the Xiaomi Mi Router 4 ships these packages by default. The customize option below lets you add or remove packages before the image is assembled.

Device packages (2)

kmod-mt7603 kmod-mt76x2

Target default packages (29)

apk-mbedtls base-files ca-bundle dnsmasq dropbear firewall4 fstools kmod-crypto-hw-eip93 kmod-gpio-button-hotplug kmod-leds-gpio kmod-nft-offload libc libgcc libustream-mbedtls logd mtd netifd nftables odhcp6c odhcpd-ipv6only ppp ppp-mod-pppoe procd-ujail uboot-envtools uci uclient-fetch urandom-seed urngd wpad-basic-mbedtls

Installation notes

  • Already running OpenWrt or ImmortalWrt: flash the sysupgrade image from LuCI (System → Backup / Flash Firmware) or with the sysupgrade command.
  • The kernel / initramfs image boots from RAM without writing to flash — useful for a first install or for recovering from a failed flash.
  • Verify your download against the published checksum before flashing:
    $ sha256sum openwrt-25.12.5-ramips-mt7621-xiaomi_mi-router-4-initramfs-kernel.bin
    41e52c4cbeb75f18f9bac84b52769dbcbb352404a18a7e2ce0aaec9f7cfb0fdc  openwrt-25.12.5-ramips-mt7621-xiaomi_mi-router-4-initramfs-kernel.bin

Build custom firmware

Need more than the default image for the Xiaomi Mi Router 4? Pick your packages — LuCI apps, themes, VPN clients — set the basics, and get a ready-to-flash OpenWrt image assembled from official packages in minutes.

Customize firmware for this device