Xiaomi Mi Router 4A Gigabit Edition OpenWrt Firmware
The Xiaomi Mi Router 4A Gigabit Edition is supported by OpenWrt on the ramips/mt7621 target. 2 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
| Distribution | Version | Target | Profile |
|---|---|---|---|
| OpenWrt | 25.12.5 | ramips/mt7621 | xiaomi_mi-router-4a-gigabit |
Downloads
Download images
OpenWrt 25.12.5 · ramips/mt7621
| Image | Type | sha256 |
|---|---|---|
| openwrt-25.12.5-ramips-mt7621-xiaomi_mi-router-4a-gigabit-initramfs-kernel.bin Minimal kernel image, useful for first install or recovery. | kernel | 01f15cd32204… |
| openwrt-25.12.5-ramips-mt7621-xiaomi_mi-router-4a-gigabit-squashfs-sysupgrade.bin Not sure? Pick this if upgrading from OpenWrt. | sysupgrade | 9299c6c21b0b… |
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 4A Gigabit Edition ships these packages by default. The customize option below lets you add or remove packages before the image is assembled.
Device packages (3)
kmod-mt7603 kmod-mt76x2 -uboot-envtools
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-4a-gigabit-initramfs-kernel.bin 01f15cd3220401ed00d23d8230aed94ec4d49dbdb98efd13a6123d58b237c375 openwrt-25.12.5-ramips-mt7621-xiaomi_mi-router-4a-gigabit-initramfs-kernel.bin
Build custom firmware
Need more than the default image for the Xiaomi Mi Router 4A Gigabit Edition? 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 deviceRelated
Related devices
More Xiaomi devices
- Xiaomi AIoT AC2350 OpenWrt firmware
- Xiaomi AX3600 OpenWrt firmware
- Xiaomi AX6000 OpenWrt firmware
- Xiaomi AX9000 OpenWrt firmware
- Xiaomi Mi Router 3 Pro OpenWrt firmware
- Xiaomi Mi Router 3G OpenWrt firmware
- Xiaomi Mi Router 3G v2 OpenWrt firmware
- Xiaomi Mi Router 4 OpenWrt firmware
More devices on ramips/mt7621
Upstream
Upstream & source
Images are assembled from packages compiled and published by the upstream OpenWrt and ImmortalWrt projects. The complete corresponding source code is available from those projects under the GPL.