Xiaomi WiFi Router 3G

What is on your kernel0 partition?
If that is you stock kernel then:

  • stock firmware renamed to miwifi.bin on fat32 formatted usb stick
  • execute fw_setenv flag_try_sys2_failed 1 from ssh/serial console
  • plug usb stick
  • reboot

The board will reboot into system 1 (stock basic kernel) and wait with system red light slowly blinking for a FAT formatted usb stick with a recovery image to be inserted. Press and hold the reset button for around 1 second. Status LED will turn yellow during recovery and blue when recovery complete.

https://openwrt.org/toh/xiaomi/mir3g#debricking