Xiaomi router 4C flashing OpenWrt, no need to disassemble or breed

Last month, I did something I hesitated about for over half a year: flashing OpenWrt on the AX3000T at home that had been used for two years. I didn't dare to buy because I was bold; before I started, I spent 30 yuan to buy a second-hand Xiaomi router 4C and used it to walk through the entire process from start to finish. A 30-yuan machine breaks down, and the pain lasts three minutes; If the main unit bought for 180 or 90 yuan breaks down, that's like squatting in front of the weak current box smoking half a pack of cigarettes. This article will clearly describe my entire process of practicing with 4C devices and the pitfalls I've made, offering the cheapest path for those who want to learn to flash but can't bring themselves to do it.
Why spend 30 yuan on an old 2018 machine
?First, explain my motivation for buying the machine. I've always wanted to play OpenWrt—not because I need any features, but because I've tinkered with my home network so much that I always feel a barrier in my heart if I don't personally swipe the machine or glance at the LuCI interface. But every time I read the tutorial, the line "flashing is risky, be cautious about bricking" retracts the text. I've also browsed posts about brick rescue, like CR6609 failing flashing yellow lights and slow flashes, TTL wire soldering, disassembly wiring—those thresholds I still can't reach.
Later, I realized a truth: the most expensive cost of learning to flash a machine isn't time, but the machine that might get damaged by flashing. Instead of gambling on your main machine, it's better to spend the money of a meal on a machine specifically designed for breaking down. On Xianyu, you can pick any Xiaomi 4C of its quality, 15 to 35 yuan each. I got one with a power supply for 30 yuan, and the seller even added a comment: 'Can you really sell this thing for money?'
Choosing 4C is not something you pick casually. First, it's cheap—if you farm bricks, the tuition cap is 30 yuan. Second, it's an old machine, released in July 2018. Back then, the firmware still had loopholes, unlike AX3000T new machines that tightly blocked the official channel, so you had to bypass the system. Third, it's so cheap that you can confidently click every step. This 'just make it anywhere' mindset is exactly what practice needs most.
First, understand the foundation of the 4Cs: what they can and cannot do
Before buying the machine, you need to know what level it is—don't expect it to be misaligned. The foundation of 4C can be summed up in one sentence: entry-level phones in the WiFi 4 era. I'll make a table for the specific specifications, and when buying second-hand, just check accordingly.
| Project | Specifications | :Manhua Translation |
|---|---|---|
| Release date | : July 2018. First release at 99 yuan | . Entry-level model from seven and a half years ago |
| Processor | MT7628DA, single-core 580MHz | Only enough for the most basic forwarding |
| Memory/Flash | : 64MB RAM, 16MB | flash storage, after installingthe system, there's not much space left |
| Wireless 2.4G single-band, WiFi 4, 300Mbps | without 5G, actual test bandwidth is 500-60MB | |
| port | One WAN plus two LANs, with full 100Mbps | broadband over 100Mbps, it freezes instantly |
you noticed the problem? Single frequency, 100MB port, 64MB memory—any one of these three means it can't serve as the main router at home. When I was analyzing 4A 100Mbps and gigabit versions, I put 4C in the 'don't use it as the main router' category. If you run a 30-yuan machine on gigabit broadband, plugging it into the network cable is a loss the very second.
But when it comes to practice, performance isn't really necessary. The flashing process has nothing to do with the machine's grade. The 580MHz single-core runs telnet and performs MTD writes. Every step you learn on 4C devices is copied exactly on any old Xiaomi model. This is the value of cheap machines: the process is universal, and the tuition is one-time.
The path to flashing the phone: no disassembly or breeding, four steps complete
First, the most comfortable aspect compared to the new 4C device: no need to reroll Breed. Later, I flashed OpenWrt >AX3000T
The entire process consists of four steps, and I write them in the order I walk
Step one: Firmware unloading. Don't run scripts just yet; check the firmware version in the backend. The official OpenWrt Wiki provides a reference version of 2.14.80, which is too new, so the firmware might patch the vulnerability. The one I received starts with 2.30. First, go to the manual upgrade page in the backend, select local upgrade, and import the 2.14.80 bin file to downgrade. The downgrade method is the same as manually upgrading the firmware; it just selects the older version of the file.
Step two: run a script to enable telnet. Connect your computer to 4C WiFi, download the script on GitHub, install Python3 and two dependencies, run the remote_command_execution_vulnerability.py, it will ask for your router address and background password. After you fill it out, wait for it to finish. At this point, telnet 192.168.31.1, username root, no password needed. When you see the phrase "are u ok," it means you are already deep in the system.
Step three: Backup. This is the step I most want to emphasize: don't skip it. After entering telnet, first use the dd command to export the entire flash image to the /tmp directory, then use SCP to pull the image back to the computer and store it. Backups are useless in daily life, but when something happens, they're the only remedy for regret.
Step four: farm. SCP speaks the OpenWrt firmware to /tmp, then writes a mtd command to specify the firmware partition, and the machine automatically restarts. After rebooting, the management address changes from 192.168.31.1 to 192.168.1.1. You need to manually change the network segment on your computer's network card to access the backend. The first time you log into LuCI, set the password, and then you've graduated from these 4C systems. There are plenty of online tutorials for command details, How to choose firmware—I've written about this kind of general knowledge before, but I won't cover it here.
I've written down all three pitfalls for you
The process isn't difficult; there really are a few pitfalls, and I either ran into them myself or almost gave reviews.
The first pitfall is the firmware version. I mentioned above that it will be downgraded to 2.14.80. This isn't for ritual, it's about the script really choosing the version. The first time I tried to save trouble, I ran the firmware version 2.30 I had just gotten. The script got an error halfway through, and it took me a few minutes to realize I should downgrade first. After lowering it, run again and clear it in one go.
The second pitfall is flash memory batches, which are the most problematic. Someone on GitHub reported that different batch of 4C uses different flash memory models. Some uncompatible firmware restarts repeatedly after flashing, and no one can save it. In the end, they have to disassemble and wire TTL wiring. So before flashing, I specifically went to the firmware release page to read the compatibility instructions from the beginning, and only dared to make a move after confirming that the flash memory model supported my device was supported. Even if it really comes to that point, don't panic—the machine costs 30 yuan, which is the tuition cap I mentioned.
The third pitfall is the space after farming. 16MB of flash sounds impressive, but once the OpenWrt system is installed, the remaining space is instantly depleted. Don't even think about the bulky plugins like AdGuard Home. Go advertise the lightweight approach of installing a block list on dnsmasq, which is sufficient. 64MB of RAM is just as precious. Installing too many plugins makes booting difficult, so I only kept the most basic features—clean and refreshing. The positioning of this machine means it's just for hands-on practice and light work—don't expect a small horse to pull a big cart.
Just a reminder: 4C doesn't have a USB port, so if you want to flash and plug in a USB drive as a downloader, you can give up early.
Don't throw it aside after practice: I assigned it three positions
After practicing my 4C skills, I didn't throw them into the drawer; only by squeezing every last drop of 30-yuan stuff can you truly get by. After thinking it over for several days, I assigned it three positions.
The first position: Portable Router for Business Trips. This is the scenario I use most: stuffing 4C into my laptop bag takes up no space, plugging the internet cable into the hotel and connecting both laptop and phone to it. There are two advantages: first, my phone doesn't need to connect directly to the hotel's public WiFi, with my own router in between; Second, I control the DNS, the hotel's network hijacking pop-up is basically gone for me. There are no weaknesses in this scenario for 100Mbps ports, and very few hotels have broadband exceeding 100Mbps.
The second position: emergency backup machine. On the night the main router at home really failed, the 4C connected for the whole night, enough for dialing up the internet and sending an email, and then calmly studying the main power unit the next day. As a backup, it usually gathers dust, but if it can step up at a critical moment, that's considered a good deed.
The third position: intelligent device network testing bench. For the newly purchased camera and socket, I first got the 4C small site to configure and test them once, confirming everything was fine before installing them into the home main network. With dozens of smart devices at home, troubleshooting is a hassle when problems really arise. Isolating the testing process outside saves a lot of trouble.
Whoever should get one, and who should just take a detour
Finally, settle the accounts clearly and take the position accordingly.
| Reasons | for whether youshould charge 4C | for your situation |
|---|---|---|
| If you want to learn OpenWrt, afraid of farming | and charging, don't hesitate. | Tuition capped at 30 yuan, all processes are universal |
| If you want a bypass for long-term work | , don't pay extra | 64MB memory can't support permanent plugins |
| Gigabit broadband—if you want to change the main router, | just skip | the 100M port and you'll be sentenced to death on the spot |
| Old house, 100Mbps broadband, a few devices, | official firmware, 30 | yuan to solve the problem |
One more thing in the middle: if you want a long-term router next to ads, the 4C base is barely enough. Paying 70 yuan for a Redmi AX6S has 256MB of RAM, four times that of a 4C, and the flashing ecosystem is even hoter—that's the real workload. The value of the 4C lies in 'practice,' not in 'application.' Once you understand this, spending 30 yuan is worthwhile.
Here's the order for wrapping up: Xianyu takes the device and checks the quality as you like, but the power supply must be → go to the backend to check the firmware version and downgrade it if needed→ go into Telnet, back up first, then do it→ flash the network segment, switch to LuCI → assign a position. My own order is: then when I AX3000T, I followed every step according to muscle memory and passed in one go. Buying it for 30 yuan without worry, I think this deal is worth it.
