1. 程式人生 > >小米路由器刷Xiaomi Mi WiFi Mini openwrt

小米路由器刷Xiaomi Mi WiFi Mini openwrt

Current Stable Release - OpenWrt 18.06.1,released on August, 18th 2018.

 

 

 

there is also PandoraBox firmware for Xiaomi Mini router.

 

 

 

 

步驟:

1,保證有外網

2,電腦連上lan口

 

 

 

 

http://en.miui.com/thread-64391-1-1.html

https://openwrt.org/toh/xiaomi/mini

 

 

The next few steps involve first loading the development version of the firmware, then loading a firmware version which provides SSH access with the last step being loading the OpenWRT firmware onto the router

 

 

 

小米路由器MINI(R1CM) can see this in web, MiWiFi 穩定版 2.22.9

 

 

 

開啟小米路由器的SSH功能之後使用者可以獲得root許可權

 

 

小結:

https://openwrt.org/toh/xiaomi/mini

 

u盤先格式成fat32,裡面不要放任何檔案

1,http://www1.miwifi.com/miwifi_download.html

下載開發韌體升級miwifi.bin ,因為穩定版不能刷ssh韌體

  1. 斷開小米路由器的電源,將U盤插入USB介面;
  2. 按住reset按鈕之後重新接入電源,指示燈變為黃色閃爍狀態即可鬆開reset鍵;
  3. 等待3-5秒後安裝完成之後,小米路由器會自動重啟

 

U盤記得及時拔出來

 

2,再格式化下u盤,用app連上刷了開發韌體的路由器,http://d.miwifi.com/rom/ssh(或者通過http://www1.miwifi.com/miwifi_open.html的開啟ssh工具)下載ssh韌體miwifi_ssh.bin

  1. 斷開小米路由器的電源,將U盤插入USB介面;
  2. 按住reset按鈕之後重新接入電源,指示燈變為黃色閃爍狀態即可鬆開reset鍵;
  3. 等待3-5秒後安裝完成之後,小米路由器會自動重啟

 

wait a while

[email protected]

 

U盤記得及時拔出來

 

BusyBox v1.19.4 (2018-06-21 09:07:05 UTC) built-in shell (ash)

Enter 'help' for a list of built-in commands.

 

-----------------------------------------------------

Welcome to XiaoQiang!

-----------------------------------------------------

$$$$$$\ $$$$$$$\ $$$$$$$$\ $$\ $$\ $$$$$$\ $$\ $$\

$$ __$$\ $$ __$$\ $$ _____| $$ | $$ | $$ __$$\ $$ | $$ |

$$ / $$ |$$ | $$ |$$ | $$ | $$ | $$ / $$ |$$ |$$ /

$$$$$$$$ |$$$$$$$ |$$$$$\ $$ | $$ | $$ | $$ |$$$$$ /

$$ __$$ |$$ __$$< $$ __| $$ | $$ | $$ | $$ |$$ $$<

$$ | $$ |$$ | $$ |$$ | $$ | $$ | $$ | $$ |$$ |\$$\

$$ | $$ |$$ | $$ |$$$$$$$$\ $$$$$$$$$ | $$$$$$ |$$ | \$$\

\__| \__|\__| \__|\________| \_________/ \______/ \__| \__|

 

are u ok

uname -a

Linux XiaoQiang 2.6.36 #1 MiWiFi-R1CM-2.21.109 Thu Jun 21 09:31:24 UTC 2018 mips GNU/Linux

 

 

最後刷openwrt

  • Get the latest firmware, eg: # cd /tmp; wget <link to firmware-image as shown above>

wget http://downloads.openwrt.org/releases/18.06.1/targets/ramips/mt7620/openwrt-18.06.1-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin

 

  • Check the MTD layout: # cat /proc/mtd
  • If you find a line “OS1” go ahead with flashing: # mtd -r write <firmware-image you downloaded> OS1
  •  

 

mtd -r write /tmp/openwrt-18.06.1-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin OS1

Unlocking OS1 ...

 

Writing from /tmp/openwrt-18.06.1-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin to OS1 ...

Rebooting ...

 

 

 

 After flashing is complete, the router will reboot. When finished you can login using telnet or web-interface on a LAN-connected client to host 192.168.1.1. User: root, no password.

 

 

 

SSH will be enabled after you set a password (using passwd or LuCI web interface), telnet will be disabled.

 

Please note that the OpenWrt binary defaults to the red color of the led instead of the orange/blue during and after finishing the boot.

如果ping 不通192.168.1.1等路由器一直紅燈時再重啟下即可