Xiaomi Mi Router 4 won't boot after flashing an image

Ah! I don't understand this sorry, a bit out of my understanding. Do I need some hardware stuff to fix it? If there is a software thing, I can understand that no problem,

You will need to solder 3 pins to the board and connect to it using a console cable.

So otherwise it is bricked?

This is how I take it. You can avoid soldering, but you will need a proper cable.

I think no need to solder, the router is waiting for new fw via tftp when flashes in orange.
So I'm suggesting to follow the de-brick procedure, link can be found on this page.

This is not my router model, I have Xiaomi Mi Router 4, 4A is a different model. Will it work for my model as well? If yes are you talking about this link - Xiaomi Mi Router 4A Gigabit Edition (R4AG/R4A Gigabit) -- fully supported and flashable with OpenWRTInvasion - #678 by Zorro ? The program used is running on windows, I don't have a windows machine, is there no way to do this in Linux?

Sorry, @apoorv569, I cannot tell you.

Maybe the method can work but first you need to get the OEM firmware. If you have it, you can check the de-brick section this page.
There you can find 2 examples for Linux OSs.

So after creating the tftp server as described here - https://mohammadthalif.wordpress.com/2010/03/05/installing-and-testing-tftpd-in-ubuntudebian/ ,(<- this link is in the debrick section, stock recovery section) I just paste the image in the tftp server folder and router should auto pick that up?

EDIT: I tried connecting through tftp I connected my router to the laptop via ethernet cable set the IP to 192.168.1.2 and gateway to 192.168.1.1 in the connection editor, and ran tftp 192.168.1.2 then I typed put miwifi.bin and after few seconds it says connection timed out.

The 4A Gigabit is a completely different chipset. Don't try to follow any instructions for the 4A Gigabit.

This is your PC's loopback interface. It means you don't have an interface configured with an external address (ideally 192.168.1.X). Without that you can't ping to a network outside the PC.
Generally it's a good idea to connect an unmanaged switch between the PC and the router you're trying to recover. Then you can set up the PC port and the settings will stay in place while the router reboots, because the PC doesn't see the Ethernet cable being "disconnected."

That's your IP. So you tried to TFTP to your PC not the router.

No, I connected the router to a laptop, with all other network turned off (wifi and all), just the router with a ethernet cable, manually set its IP to 192.168.1.2 then ran tftp. It connected successfully, I was able to ping 192.168.1.2.

You need to tftp to the router's IP, likely 192.168.1.1, which you could find from the bootloader prompt. Do you have serial access to the bootloader?

Of course you can ping 192.168.1.2, that is inside your PC. Ping times will be really fast too.

Yes, it should be 192.168.1.1, but that address won't ping, (guessing) because of the soft brick I suppose. Let me try again, as we talk..

So, I'm connecting the router to my laptop now. With all other connections turned off.

Many bootloaders in recovery mode won't answer pings. They don't do anything but TFTP or whatever method they are supposed to accept.

Alright I have connected the router, no other connections, just the router, and no manual configuration done..

I ran tftp 192.168.1.1, should I use binary or ascii mode?

Running put miwifi.bin gives me,

tftp: sendto: Network is unreachable

Always use binary, but if the device is not reachable at all there is a larger problem.

All the instructions that you've linked in this thread are for the 4A Gigabit with a MT7621 chip. Who's instructions are you following for your 10/100 MT7620 model 4?

I'm not following any specific instructions, I only so far did, connect router to laptop with ethernet cable, all other network WiFi and all disabled, press and hold reset button while powering on, LED flashes orange, then I run tftp 192.168.1.1, that's all I did, nothing more nothing less.

Can this be done with a Windows VM? If the windows route is easier?

I think I fixed it, I fired up a Windows VM with bridged connection, downloaded that tool TinyPXE server, and grabbed a image for my router from internet, and flashed it. I can now login to 192.168.31.1 it opens the Xiaomi Admin page now.

Can someone provide me proper installation instructions for OpenWRT, as I want to use OpenWRT, there are snapshot version available for my device here - OpenWRT-Snapshots starting with the name xiaomi_mi-router-4-

Check this out.

This is not for the model I have, I have Mi Router 4, the link you shared is for Mi Router 4A.

My bad, the Xiaomi naming is really confusing.... :confused:

Updated link :stuck_out_tongue:

3 Likes