How to install Padavan firmware on Xiaomi router 4A: full-length guide

Padavan firmware is a popular alternative firmware for routers based on MediaTek chips that reveals the hidden potential of budget devices. - Xiaomi Router 4A (model R4A), Despite the modest characteristics, after installation, Padavan turns into a full-fledged tool with advanced network settings, support for WireGuard, SQM It's a way to fight lags and even connect an external drive, but the firmware process requires care: one wrong step, and the router can turn into a brickΒ».

In this article you will find the current instructions for 2026, taking into account changes in the latest versions of Padavan and the features of Xiaomi. 4A We're going to look at two different methods of firmware. SSH And we'll use it as a web interface, and we'll tell you how to avoid common mistakes, and we'll give you some tips for recovery if something goes wrong. 4A Not officially supported by the manufacturer – all actions you perform at your own risk.

1. Router Preparation: What to Do Before Firmware

Before you start installing Padavan, you need to prepare the router and the computer, and skipping any of these steps can cause a firmware failure or loss of access to the device.

First, check the board review of your Xiaomi Router 4A. There are at least two versions: R4A (original R4AC (It's 5 GHz, but it's a different chip. R4A! You can find out the revision by sticker on the bottom of the router or through the command line of the original firmware:

cat /proc/cpuinfo | grep "machine"

Second, upgrade the original Xiaomi firmware to the latest official version, which minimizes the risk of conflict when installing Padavan, and can be done via the router's web interface in the Update section. β†’ Restoration of factory settings).

  • πŸ”Œ Ethernet Cable: Connect the router to your computer directly (without hubs or switches).
  • πŸ’» Computer: Use a PC with Windows 10/11 Linux (MacOS may require additional drivers).
  • πŸ“‘ Padavan firmware: download the current version for Xiaomi R4A from the official repository (see below for references).
  • πŸ”§ Tools: Install PuTTY (for the purpose of the SSH) and WinSCP (for file transfer).

⚠️ Note: If your router has previously been flashed by unofficial firmware (for example, OpenWRT), before installing Padavan, you must return the original Xiaomi firmware».

2 Unlocking the bootloader: without this firmware is impossible

Xiaomi blocks the ability to install third-party firmware through the bootloader, which requires exploiting a vulnerability in the original firmware (stok exploit) to unlock, which works on most versions, but not the newest ones.

Algorithm of action:

  1. Connect the router to your computer via Ethernet and turn it on.
  2. Open PuTTY and connect to the SSH to 192.168.31.1 with root login and password (by default the password is empty or admin).
  3. Enter a command to check for vulnerability: nvram get flag_try_sys_mode If the answer 1 β€” We have vulnerability, we can continue. 0 β€” You will need to revert to an older firmware.
  4. Execute the unlock command: nvram set uart_en=1 nvram set boot_wait=on nvram set flag_try_sys_mode=1 nvram commit
  5. Restart the router with the reboot command.

After the restart, the bootloader will be unlocked and you will be able to download the Padavan firmware through TFTP If you don't unlock, try repeating the steps or using an alternative method through the Internet. UART (will require a soldering iron).

πŸ“Š What Unlocking Method You Used?
Through SSH (stok)
Through UART (soldering iron)
Web interface (if available)
I haven't tried it yet.

3.Padavan Installation: Two Proven Methods

There are two main ways to flash Padavan on Xiaomi 4A: via the web interface (if the unlock is successful) and through SSH + TFTP (We'll look at both options.

Method 1: Firmware via web interface (for beginners)

This method is suitable if you successfully unlocked the bootloader and the router loads normally.

  1. Download the Padavan firmware file in.bin format (for example, padavan-R4A-4.4.5.3-20260301.bin).
  2. Go to the router's web interface (192.168.31.1) and log in.
  3. Open the Administration section β†’ Firmware update.
  4. Download the downloaded.bin file and confirm the update.
  5. Wait until the process is completed (the router will restart automatically).

If the router does not load after firmware (all indicators are on or an orange LED flashes), try resetting with the Reset button (hold 10 seconds).

Method 2: Firmware through SSH + TFTP (skilled)

This is a more reliable method, because it allows you to flash the router even if the web interface is not available.

  • πŸ–₯️ Computer installed TFTP-server (e.g., server, Tftpd64 Windows).
  • πŸ“‚ Padavan firmware in.trx format (rename it firmware.trx).
  • πŸ”Œ Network cable connected to the port LAN1 router.

Steps:

  1. Launch it. TFTP-server and specify the folder where firmware.trx is located.
  2. Connect to the router on SSH and execute the commands: cd /tmp wget tftp://192.168.31.100/firmware.trx -O firmware.trx mtd_write write firmware.trx Bootloader (where) 192.168.31.100 β€” IP computer).
  3. Wait for the recording to be completed and restart the router: reboot

⚠️ Note: If after the scaling of the TFTP The router is not responding, make sure that the firmware.trx file was not corrupted when downloaded. Also make sure you use the correct firmware version for the application. R4A, not R4AC.

I downloaded the correct version of Padavan for R4A|Checked the fee audit.|I unlocked the loader through SSH|Connected the router to the PC LAN1|I got it. TFTP-server (if necessary)-->

4.Padavan First Setup: What to Do After Firmware

Once the firmware is successful, the router will boot with the new Padavan web interface. By default, access is at 192.168.123.1 (logins and passwords see the table below). The first thing to do is change the administrator password and configure your Internet connection.

Main settings:

  • 🌐 Internet: Go online β†’ WAN Specify the type of connection (usually) DHCP for most providers).
  • πŸ”’ Security: c Administration β†’ Manage change the default password (admin/admin).
  • πŸ“Ά Wi-Fi: In a wireless network, configure the network name (SSID) and password (recommended) WPA2-PSK).
  • ⚑ Productivity: Include SQM into QOS to reduce ping in games.
ParameterDefault valueRecommended action
IP-router192.168.123.1Change to 192.168.1.1 if it conflicts with other devices
Login/passwordadmin/adminChange to a complex password (at least 12 characters)
Wi-Fi frequency2.4 GHz (max. 300 Mbit/s)Set the channel manually (e.g. 6 or 11 for less interference)
DHCP-serverIncluded (range) 192.168.123.100-199)Expand the range to 192.168.123.100-200, If there are many devices connected

If the internet is not working after setting up, check:

  • Correctness of the specified type of connection (DHCP, PPPoE, Static IP).
  • Settings VLAN (Some providers are required VLAN ID).
  • Cable condition (try another port or cable)

πŸ’‘

If the router often overheats after firmware Padavan, check the settings CPU Frequency in the Administration section β†’ System, lower the frequency to 580 MHz to reduce the load.

5. Typical errors and how to fix them

Even with strict adherence to the instructions, problems can arise, and let's look at the most common mistakes and how to fix them.

Error 1: The router does not turn on after the firmware (brick)

If the router does not show signs of life after the firmware Padavan (the indicators do not burn or all burn at the same time), there is likely an error in the recording of memory. UART:

  1. Disassemble the router and find UART contacts (usually 4 pins: GND, TX, RX, 3.3V).
  2. Connect. USB-UART adapter (e.g, CP2102) Contacts with polarity.
  3. Start PuTTY at 57600 baht and stop loading Enter keys in the first 2 seconds.
  4. Enter the commands for recovery: setenv serverip 192.168.31.100 setenv ipaddr 192.168.31.1 tftpboot 0x80000000 firmware.trx erase 0x9f020000 +0x7c0000 cp.b 0x80000000 0x9f020000 0x7c0000 bootm

Error 2: Low Wi-Fi speed or connection breaks

If after Padavan firmware Wi-Fi speed has dropped or the connection is constantly broken, the problem may be:

  • πŸ“‘ In the wrong region: in the Wireless network settings, set the region Russia or Europe.
  • πŸ”„ Congested channel: Use the Wi-Fi Analyzer utility on your smartphone to find a free channel.
  • ⚑ Too High Power: In Additional Wi-Fi settings, reduce Tx Power to 80%.

Mistake 3: The Internet is not working (WAN-port)

If the router is turned on, but the Internet is not available:

  • Check if the indicator is on. WAN (If not, there is a problem with the cable or port).
  • Make sure you're online. β†’ WAN The correct type of connection is selected.
  • If the provider uses PPPoE, check the login and password (they are case sensitive!).
  • For some providers (for example, Rostelecom) it is required to specify VLAN ID (usually 10 or 20).
What to do if you forget your Padavan password?
If you forget the password from the Padavan web interface, reset the settings to the factory: 1. Press and hold the Reset button on the router 10 seconds. 2. Connect to the router via Ethernet and go to 192.168.123.1. 3. Default login and password β€” admin/admin. Note: After resetting, all network settings will be lost!

6. Additional features of Padavan: what can be customized

The main advantage of Padavan over Xiaomi stock firmware is the flexibility of settings. Here's what you can do after installation:

1.Setting up WireGuard VPN

Padavan supports WireGuard, a modern and fast protocol VPN. To set up:

  1. Move to the VPN β†’ WireGuard.
  2. Create a new tunnel and provide data from your VPN-Provider (e.g., Mullvad or ProtonVPN).

2. Optimization for Online Gaming (SQM)

If you're playing in CS2, Dota 2 or other online games, include SQM (Smart Queue Management):

  • Move to the QOS β†’ SQM.
  • Select the Cake algorithm.
  • Set your download/return speed to 90% of your internet speed.

3. Connecting an external storage device

Xiaomi 4A has USB-It's a port, but it's off in the stock firmware. You can activate it in Padavan:

  • Connect a flash drive or hard drive to the port USB.
  • Move to the USB-applications β†’ Settings.
  • Format the drive in ext4 (for better compatibility).
  • Set up Samba to access files over the network.

With an external drive, you can:

  • 🎡 Organize DLNA-TV-Server.
  • πŸ“ Create a network storage (NAS).
  • πŸ”„ Set up auto download torrents via Transmission.

πŸ’‘

Padavan allows you to turn a budget Xiaomi 4A A fully-fledged router with support VPN, QOS External storage – functions that are not in the stock firmware.

7.How to get back the original Xiaomi firmware

If you are not satisfied with Padavan or have intractable problems, you can return the stock firmware Xiaomi.

  1. Download the official firmware for Xiaomi Router 4A from Xiaomi Support Site (.bin file).
  2. Connect to the router on SSH (Default logins for Padavan: admin/admin).
  3. Follow the commands: cd /tmp wget http://bigota.miwifi.com/xiaoqiao/rom/r4a/miwifi_r4a_firmware_*.bin mtd_write write miwifi_r4a_firmware_*.bin OS1 (Replace * with the current version).
  4. Wait for completion and restart router: reboot

Once you restart, the router will return to the original firmware. If the web interface doesn't open, reset with the Reset button.

⚠️ Note: When you return to stock firmware, all Padavan settings will be lost. If you used an external drive, turn it off before firmware to avoid data damage.

FAQ: Frequent questions about the firmware Padavan on Xiaomi 4A

Can I use Padavan on Xiaomi? 4A Gigabit Edition (R4AC)?
No, Xiaomi Router. 4A Gigabit Edition (R4AC) It has a different chipset (Qualcomm) IPQ4018), And there's no Padavan firmware for him. R4AC Unofficial methods with high probability will lead to "brickingΒ».
Why does Padavan not have 5 GHz Wi-Fi?
Xiaomi Router 4A (R4A) It doesn’t support 5 GHz, which is a hardware limitation.If you want dual-band, consider Xiaomi Router models. 4C or Xiaomi AIoT Router AC2350 (But they also need separate firmware Padavan).
How to upgrade Padavan to a new version?
Update is performed via web interface: Download the new firmware version.trx. Go to Administration β†’ Update. Upload the file and confirm the update. Important: don't update through the Online Update in Padavan, it can lead to conflict.
Can I use Padavan without unlocking the bootloader?
No, you can't install Padavan without unlocking the bootloader. UART, But it requires soldering work and does not guarantee success on new fee audits.
Where to download the current version of Padavan for Xiaomi 4A?
Official Padavan assemblies for R4A Published on GitHub: hanwckf repository (most popular fork) Original repository (less relevant) Attention: avoid builds from unknown sources - they may contain malicious code.