Flashing OpenWRT Firmware on FIR300M Router

📢 This article was translated by gemini-2.5-flash-lite

Introduction (Rambling)

Had some free time, so I decided to tinker with my router and use it as a gateway. (Later found out this router has too little space to install many plugins, so it was a wasted afternoon.)


Update 2022.02.17: Accidentally found an FIR300M firmware with a built-in gateway. However, it uses a very old method for flashing. Please be careful when identifying it if you plan to flash it.

Original Post: Update Compilation Method - FIR300M/FIR302M Openwrt Firmware No Disassembly Flash

Baidu Netdisk: Password: vouv

What is OpenWRT?

OpenWRT is a Linux-based system for routers. It offers many powerful plugins and strong expandability, and you can connect via SSH.

Official Site: OpenWrt Wiki - Welcome to the OpenWrt Project

OpenWRT General Tutorial: Learning OpenWrt from Scratch: Flashing + Usage + Compilation Tutorial

Preparation

  1. Software: HFS
  2. OpenWRT Firmware for FIR300M: Baidu Netdisk
  3. Enable Telnet Service on your PC: Refer to How to Enable Telnet Service in Win10 (Works for Win11 too; search for “Control Panel” in Settings).

Brief Steps

  1. Log in to the router’s admin panel (192.168.1.1).
  2. Visit http://192.168.1.1/goform/Diagnosis?pingAddr=192.168.1.100|echo""|telnetd
  3. Open Command Prompt (cmd) and type: telnet 192.168.1.1
  4. Transfer the firmware to the router and wait for it to complete.
  5. Accessing the router’s admin panel now will show OpenWRT (no password initially, just log in).
  6. Go to System - Language and Style to change the language to Chinese.

Detailed Steps (Step 4)

Open HFS, rename the firmware from “Preparation” step 2 to “1.bin”, and drag it into the window.

After connecting via telnet 192.168.1.1 in cmd, enter the following commands sequentially:

1
2
3
cd /tmp
wget http://192.168.1.100/1.bin  // Replace "192.168.1.100" with your PC's IP
mtd_write -r write 1.bin Kernel  // Note: K is capitalized

After successful execution, the router will automatically reboot, and you’ll see “Connection Lost”.

Installing Plugins

In the OpenWRT admin panel, click “System - Software” to install the desired plugins.

It’s recommended to search GitHub for plugins or write your own. You can directly copy the .ipk file link from the Release section of the corresponding project on GitHub.

How to install your own written plugins? If you can write them, you can figure this out, right? (doge)

Notes

Plugin installation requires compatibility with your router. Some plugins might need environment dependencies, meaning other plugins need to be installed first.

You can usually figure this out from the error messages.

References

This post is licensed under CC BY-NC-SA 4.0 by the author.
Last updated on 2025-11-08 20:34 +0900