Xiaomi CR6608 router flashing Openwrt tutorial

Preparation

Preparations:
Another router with openwrt and wifi installed, this article is referred to as Router B
WinSCP
SSH tool

required documents


http://d6.cx/d/123/Soft/blog/%E5%B0%8F%E7%B1%B36608OP.zipXiaomi
6608OP.zip - Lan Zuoyun

Connect the computer to router B first, log in to the router with winscp and upload xqsystem.lua to /usr/lib/lua/luci/controller/admin/

Then enter the B routing panel, and set the LAN IP address to 169.254.31.1

Then go to Advanced Settings-DHCP Server, ignore this interface and check to save the application

After the computer automatically obtains the IP, open the web page and visit http://169.254.31.1/cgi-bin/luci/api/xqsystem/token
, and the words "code": 0 appear, indicating that the file access is normal

Then connect the computer to the Xiaomi router, enter 192.168.10.1 to enter the router, the password is on the back of the router, after logging in, copy the STOK in the address for backup

Visit http://192.168.10.1/cgi-bin/luci/;stok=STOK/api/misystem/extendwifi_connect just copied?ssid=B routing wifi name&password=B routing wifi password

Change it to your own information as needed. For example, mine is http://192.168.10.1/cgi-bin/luci/;stok=a968894a4346d2c2xxxxxxxxxxx/api/misystem/extendwifi_connect?ssid=Openwrt&password=12345678, and code":0 appears after accessing typeface

Visit http://192.168.10.1/cgi-bin/luci/;stok= STOK /api/xqsystem/oneclick_get_remote_token?username=xxx&password=xxx&nonce=xxx,
just change STOK to your own. At this point, SSH has been successfully opened

Then use WinSCP to log in to the router, the user name is root and the password is the password behind the router Upload pb-boot.img to the tmp folder
 


SSH link Xiaomi router

Excuting an order

mtd write /tmp/pb-boot.img Bootloader

reboot

after reboot

192.168.1.1 enters PB-BOOT, we directly select openwrt-ramips-mt7621-xiaomi_mi-router-cr6606-initramfs-kernel.bin to brush into the bottom package

After flashing, the router automatically restarts

Then enter the 192.168.5.1 root password on the web page, select System-Backup Upgrade-Flash New Firmware,
select 2021-6-24 5.10 kernel openwrt-ramips-mt7621-xiaomi_mi-router-cr6606-squashfs-sysupgrade.bin to upgrade

Flash complete

After brushing this firmware, we will find that there is a link of the author. It is not easy to develop, and it is not recommended to modify it for non-special needs. If you need to modify it, you can use WinSCP to download the file /usr/lib/lua/luci/view/admin_status/index.htm
. Find this line and delete it, then upload and overwrite the source file

The author's information at the bottom is in /usr/lib/lua/luci/view/themes/argon/footer.htm. If you change the edge theme, the edge/footer.htm is
modified and overwrites the source file.

The author of the firmware used in this article is connected: 【2023-7-5】Xiaomi CR660X OpenWrt/Padavan Firmware-Xiaomi Wireless Router and Xiaomi Wireless-related Devices-Enshan Wireless Forum- Powered by Discuz!

At present, there are many kinds of firmware options for CR6608. If you need it, you can go to Enshan to have a look.

In addition, if you need to restore the information of route B after brushing, if it is not important, you can directly restore the factory settings in Undead, or set a fixed IP as shown in the figure, enter the router and change the settings again.

Guess you like

Origin blog.csdn.net/bangshabgni/article/details/131970840