小米路由器3G配置信息如下:
参数 | |
---|---|
处理器 | MT7621A MIPS双核880MHz |
ROM | 128MB SLC Nand Flash |
内存 | 256MB DDR3-1200 |
2.4G WiFi | 2X2(支持IEEE 802.11N协议,最高速率可达300Mbps) |
5G WiFi | 2X2(支持IEEE 802.11AC协议,最高速率可达867Mbps |
USB | 3.0 |
LAN/WAN | 3个10/100/1000M自适应 |
2018.6月某宝入手价179元,结合配置来看性价比高,适合用来折腾,遂刷机。
准备工作
-
网线(虽然不是必须,但这可以节省很多工作)
-
一台电脑,Windows需安装ssh工具(putty,winscp),linux自带ssh
-
一个4G以上U盘(格式化为FAT)
-
注册小米帐号 https://account.xiaomi.com/
-
下载固件 http://www.miwifi.com/miwifi_download.html 选择ROM for R3G开发版
-
下载小米miwifi_ssh_bin文件 https://d.miwifi.com/rom/ssh 下载工具包会提示放弃保修服务,无视之。记录下页面上的root密码,用于ssh连接。
-
下载openwrt snapshot文件
安装步骤
-
网线连接电脑与路由器LAN口,打开浏览器,登录路由器管理界面 http://192.168.31.1 , 选择升级系统,将下载的固件ROM for R3G开发版上传,确认等路由器更新完毕。
-
将miwifi_ssh.bin文件复制到U盘中。
-
关闭路由器电源,将U盘插入到路由器,用回形针插入reset按钮,开启电源,大约10秒中,路由器前方指示灯黄色闪烁表示在安装ssh文件,松开回形针。期间路由器会重启,直到指示灯变蓝。
-
现在可以登录到路由器了,
ssh [email protected]
-
将两个openwrt文件scp到小米路由器,
scp openwrt-* 192.168.1.1:/tmp
-
开始刷机
[email protected]:~# mtd write openwrt-ramips-mt7621-mir3g-squashfs-kernel1.bin kernel1 [email protected]:~# mtd write openwrt-ramips-mt7621-mir3g-squashfs-rootfs0.bin rootfs0 [email protected]:~# nvram set flag_last_success=1 [email protected]:~# nvram commit [email protected]:~# reboot
-
等路由器刷机完毕,再ssh登录到路由器,修改root密码,以及电信拨号网络设置
[email protected]:~# ssh [email protected] # 编辑network配置文件 设置wan口拨号上网 [email protected]:~# vi /etc/config/network config interface 'wan' option proto 'pppoe' option mtu '1480' option special '0' option username 'yourusername' option password 'yourpassword' option ifname 'eth1' # 重启网络 [email protected]:~# /etc/init.d/network restart # 安装luci管理界面 [email protected]:~# opkg update [email protected]:~# opkg install uhttpd luci luci-app-uhttpd
-
打开浏览器,登录 http://192.168.1.1/ 进入luci页面配置路由器。
-
至此刷机完毕, enjoy it!
参考链接
https://enterpriseadmins.blogspot.com/2017/09/step-by-step-openwrtlede-base.html
https://klseet.com/267-lede/lede-miwifi/392-miwifi-3g-lede-unifi-ready