Redmi AC2100 router flashed with third-party firmware

This post details the steps I went through to flash Xiaomi’s Redmi AC2100 router using  a third-party firmware. There are already excellent guides out there so I won’t try to reinvent the wheel.  Instead I will focus on the differences for my circumstances where necessary. I will also list the resources that I have followed closely at the end of the post.

Although the AC2100 is neither a high end (Xiaomi has been releasing budget-friendly WiFi-6 routers since the end of 2019) nor new product, what got me initially interested in this particular wireless router was the relative ease with which people are able to flash to third-party firmwares. Contrary to some negative online reviews regarding Xiaomi’s wireless routers, I have not had any issues in using Xiaomi’s firmware in the past. My two main reasons for changing the firmware are

  1. Increase the WiFi transmit power by enabling region setting, because Xiaomi’s firmware for China-only products does not have a region setting (e.g. selecting USA instead of China).
  2. Enabling 160MHz for 5GHz WiFi, which is disabled by default in the stock firmware.

Firstly here are my environments.

  • Macbook Pro: macOS 10.14.6
  • System Python version: 2.7.16
  • Homebrew installed
  • Redmi AC2100 factory version: 1.0.14


Software for Macbook

The needed tools are Python 3, scapy (Python library), netcat and telnet. As macOS comes with Python 2.x by default, I highly recommend installing Python 3 using pyenv from homebrew and not mess with any system files. Here is the  recommendation on how to manage multiple Python versions Netcat and telnet can also be installed using homebrew.

Python 2 won’t work!

$brew install pyenv
# to install Python 3.7.8
$ pyenv install 3.7.8
# set Python 3.7.8 as global version
$ pyenv global 3.7.8
# install scapy
$ pip install scapy

Binaries/scripts to download

  • Simulate PPPoE service: I have tried both [1] and [2] and there didn’t seem to be any differences, ended up using the file from [1]. Th interface needs to be changed accordingly to your network device, which you can find out using ifconfig after changing the default IP address.
  • The exploit to enable reverse shell: I used the file from [1]. The interface needs to be changed accordingly to your network device
  • Simple shell to install on router: busybox. I used the file from [2] but the version from [1] probably will work too.
  • Bootloader to replace Xiaomi’s, for easy switching of firmware: breed-mt7621-xiaomi-r3g.bin from (AC2100 uses MTK 7621). Here is an explanation of Breed in English
  • Padavan firmware to be loaded from inside Breed, RM2100.trx from (This is based on Asus firmware AFAIK).

Connect router to PC

  1. Connect Macbook to the router in a particular configuration – need 2 ethernet cables, see either [1] or [2].
  2. Disable WiFi.
  3. Set Macbook’s IP manually to, Net mask, Gateway Check the network interface with this IP address – this will be the interface to set to in the two Python scripts.
  4. Some guides have mentioned needing to reset the router. My experience is that it is unnecessary at this stage.

Flashing firmware

  • Open a terminal session. Start PPPoE service locally.
$ sudo python

Go into AC2100’s settings at and change the connection method to PPPoE, using username and password as 123 (actually any random strings will do). There should be connection messages appearing very shortly.

  • Open another terminal session and start a local http server in the same folder where busybox and Breed. were downloaded to This is to allow transfer of files to the router later.
$ python -m http.server 8081
  • Open a third terminal session. Start netcat service to listen to port 31337
$ netcat -nvlp 31337
  • Open one more terminal session to run the exploit.
$ sudo python

Once the message “Sent 1 packets” appears here, check to see if the netcat session window indicates a connection from If nothing appears, your router may have a different MAC address to the one specified in the script. Check the following line in because I spent a good three hours pulling my hair out just because I missed this small step!

if src.startswith("change to your router mac")

Because the connection can be unstable, which means the netcat and may need to be rerun multiple times, I suggest copying the following line to be ready to paste into the netcat session as soon as the “connection…” message appears. If everything proceeds correctly you will see busybox being uploaded and permissions set.

cd /tmp && wget && chmod a+x ./busybox &&./busybox telnetd -l /bin/sh
  • Open another terminal session, and telnet into the router at from the folder where Breed has been downloaded to.
$ telnet
# the following to execute on router
cd /tmp
wget && nvram set uart_en=1 && nvram set bootdelay=5 && nvram set flag_try_sys1_failed=1 && nvram commit
mtd -r write breed-mt7621-xiaomi-r3g.bin Bootloader

The last line replaces Xiaomi’s bootloader with Breed. The router should now reboot.

  • Login to to check if the router is working normally.
  • Reset the router. This will set the router to boot into Breed.
  • Change network interface on Macbook to obtain IP via DHCP.
  • Log in to and select firmware update (固件更新) and proceed to flash Padavan.
  • Log in to Padavan at using admin/admin.


  1. Instructions from Openwrt official site
  1. Here is another good set of instructions to install Openwrt with many screenshots
  1. Instructions from the well-known Chinese forum for software-based router to install Breed


10 books


Critics and demise of Apple


  1. Brajanusz

    Do you know why Enable MU-MIMO for 5Ghz is disable by default ?

  2. Saul

    Hello, did it allow you to use 160Mhz width on 5GHz? Did that increase wifi speed from 866mbps to higher?(1200mbps)

    • Louis

      The 160MHz setting was available after flashing but I didn’t do any benchmarking subsequently.

  3. Roger


    I’ve finally managed to connect to internet with this router ! But I see that, with my cheap (free) isp router, I get 600 MBps, while with this router and Openwrt, I’m only getting 300-400 MBps. What could be the cause ? (I don’t have qos enabled in any way)


  4. Louis


    Sorry my internet speed is not fast enough for me to verify. Just by chance, are you connected to 2.4GHz or 5GHz? I do see some reports that the MTK proprietary driver is better than that of OpenWRT unfortunately.

Leave a Reply

Your email address will not be published. Required fields are marked *

Powered by WordPress & Theme by Anders Norén