Skip to content

Instantly share code, notes, and snippets.

@webdevsuperfast
Last active November 11, 2021 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webdevsuperfast/c96709d15a4eafa220102eb54bb90db0 to your computer and use it in GitHub Desktop.
Save webdevsuperfast/c96709d15a4eafa220102eb54bb90db0 to your computer and use it in GitHub Desktop.

Xiaomi 3C OpenWRT Install

Specifications:

  • CPU: MediaTek MT7628AN (575MHz)
  • Flash: 16MB
  • RAM: 64MB DDR2
  • 2.4 GHz: IEEE 802.11b/g/n with Integrated LNA and PA
  • Antennas: 4x external single band antennas
  • WAN: 1x 10/100M
  • LAN: 2x 10/100M
  • LED: 1x amber/blue/red. Programmable
  • Button: Reset

How to install:

  1. Use OpenWRTInvasion to gain telnet, ssh and ftp access.
    IP: 192.168.31.1
    Username: root
    Password: root
    
  2. Connect to router using telnet or ssh.
  3. Backup all partitions. Use command dd if=/dev/mtd0 of=/tmp/mtd0. Copy /tmp/mtd0 to computer using ftp.
  4. Copy openwrt-ramips-mt76x8-xiaomi_miwifi-3c-squashfs-sysupgrade.bin to /tmp in router using ftp.
  5. Enable UART access and change start image for OS1.
    nvram set uart_en=1
    nvram set flag_last_success=1
    nvram set boot_wait=on
    nvram set flag_try_sys2_failed=1
    nvram commit
    
  6. Installing Openwrt on OS1 and free OS2.
    mtd erase OS1
    mtd erase OS2
    mtd -r write /tmp/openwrt-ramips-mt76x8-xiaomi_miwifi-3c-squashfs-sysupgrade.bin OS1
    

How to Unbrick

  1. Download stock firmware
  2. Config static ip on your computer
    IP address: 192.168.31.2
    Subnet mask: 255.255.255.0
    Default gateway: 192.168.31.1
    
  3. Remove power cable from router.
  4. Connect ethernet cable on Computer and Wan port (Blue Port).
  5. Press continuously reset button and re-connect power cable.
  6. Continue to hold down the Reset button until the front LED colour changes from static orange to blinking orange.
  7. Open browser and enter http://192.168.31.1
  8. Select firmware file and click on upload button.
  9. Wait until router restart (5 minutes).

Related Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment