Install OpenWRT/ImmortalWRT on Xiaomi R4AC 100M (Chinese version)

Fri, August 30, 2024 - 1 min read

Step 1 - Prepare

  1. Reset Router to default

  2. Access 192.168.31.1 and set WiFi SSID + password. This password also managed password

  3. Connect router to Internet

  4. Download firmware

Step 2 - Exploit router for ssh, telnet with root user

Instruction references:

  1. Following these instruction to exploit: https://github.com/acecilia/OpenWRTInvasion

  2. Copy firmware to /tmp folder on Router (by scp command or ftp client program, ex: filezilla, cyberduck)

  3. ssh or telnet to Router and flash kernel firmware

    mtd -e OS1 -r write openwrt-23.05.4.bin OS1

    Wait the flash process complete. Then we can connect to Router at 192.168.1.1

  4. Continue update to ImmortalWRT with sysupgrade firmware via OpenWRT interface (LuCI)

Recovery to stock firmware

Following this guild https://hoddysguides.com/xiaomi-debrick-tools-all/

  1. Connect LAN port on Router and set IP 192.168.1.2 on PC

  2. Run tinypxe (run on Win 10 if there is error: Access Denied)

  3. Hold Reset button and plug power on Router. Router will start on recovery mode and download firmware to it

  4. Reboot router and wait for recovery process complete