Record the process of flashing openwrt on Xiaomi router 4C

foreword

The reason is that the performance of 4C is not good, the network is not stable after using it for a long time, and the 100M bandwidth is not enough, and then I changed the router. I am going to run Linux and hang a bot on the idle one. The result is good. After brushing, I found The small memory is pitiful, and the mips architecture is not mainstream (I will flash the machine without looking at it), uh, I can’t fix it, and I will flash back to the original system later (and then I can’t flash back...). —— The description of other operations will be updated when there is time
Only installed a python39

tutorial

Refer to Guanggong's tutorial

【Guanggong】Mi router 4C flashing process


[Record] Mi router 4C flashing process
[Other Xiaomi routers] R4CM, talk about my Mi router 4C flashing process: no Linux or virtual machine...

Simple explanation of the process

Mainly look at this tutorial: [Other models of Xiaomi routers] R4CM, let me talk about the flashing process of my Xiaomi router 4C: no Linux or virtual machine...
1. First go to https://www.right.com.cn/forum/thread -4040540-1-1.html , download R3GV2 patches, it is a python program, 0.start_main.batafter running, you can use the loophole to open telnet and ftp.
I have run this piece several times, and the program has been reporting success, but telnet has been unable to access it. Later, the file explorer directly accesses it ftp://192.168.31.1, enters it, returns to the default user name connected to port 23 of mobaxterm , and enters it.telnetroot

2. After that, I ran slowly according to the tutorial, dd if=/dev/mtd3 of=/tmp/eeprom.binbacked up eeprom(the backup here is always 1K, normally it should be 64K, and enthusiastic netizens later provided backup resources), and ftp copied files to the local (ps: it is best to also backup /dev/ mtd0 for easy fallback)

3. FTP breeduploads to /tmpthe path, mtd write /tmp/breed.bin Bootloaderbrush in Breed, and it is ok if no error is reported

4. Turn off the power, keep pressing and holding reset to turn on the machine, release it after the flashing light is finished, connect the LAN port directly to the computer, access the browser 192.168.1.1, and enter
insert image description here

Then flash in the eeporm.binone provided by the boss Mi4C.bin(customized openwrt firmware, iapp), and after the update is completed, restart and finish.
insert image description here
insert image description here

Browser access 192.168.1.1, you can log in to the iapp system ( http://192.168.1.1/cgi-bin/luci/ ).
At this time, the web login password of iapp defaults password
insert image description here
because my other router is also connected to the optical modem 192.168.1.1, so changing the ip is convenient for simultaneous access.
insert image description here
insert image description here
After the modification, save the application and access the new address192.168.2.1

The web login password is synchronized with the root password of ssh. Change the password on the following page
http://192.168.2.1/cgi-bin/luci/admin/system/admin

insert image description here

Summary of related resources

R3GV2 patches: https://pan.baidu.com/s/1VK9mSZ_u-pVR83XCU3L8ew Extraction code: 8xms
4C Breed: https://breed.hackpascal.net/breed-mt7688-reset38.bin
Mi4C firmware (custom firmware)+ eeporm backup: https://wwn.lanzouy.com/iyhwZ05hohhg
Mi4C firmware (custom firmware): https://github.com/shengqiangzhang/Drcom-GDUT-HC5661A-OpenWrt/files/8138729/Mi4C.zip
openwrt21.02.2: https://archive.openwrt.org/releases/21.02.2/targets/ramips/mt76x8/openwrt-21.02.2-ramips-mt76x8-xiaomi_mi-router-4c-squashfs-sysupgrade.bin
Openwrt official other versions of the system: https://archive.openwrt.org/releases
restore Xiaomi firmware miwifi_r4cm_firmware_cb838_2.14.80: https://wwwn.lanzoum.com/ir1w30krdkub

Replenish

Mi4C firmware (customized firmware) is openwrt19.07.x.
The python3 version provided in the openwrt19.07.x source is 3.7.
The python3 version provided in the openwrt21.02.x source is 3.9.
For 19.07, replace the source of 21.02 and install python3.9 , the actual measurement can
modify the configuration of opkg, change 19.07 to 21.02, for example (can be modified in iapp)

src/gz openwrt_core http://downloads.openwrt.org/releases/19.07-SNAPSHOT/targets/ramips/mt76x8/packages
src/gz openwrt_base http://downloads.openwrt.org/releases/19.07-SNAPSHOT/packages/mipsel_24kc/base
src/gz openwrt_freifunk http://downloads.openwrt.org/releases/19.07-SNAPSHOT/packages/mipsel_24kc/freifunk
src/gz openwrt_luci http://downloads.openwrt.org/releases/19.07-SNAPSHOT/packages/mipsel_24kc/luci
src/gz openwrt_packages http://downloads.openwrt.org/releases/19.07-SNAPSHOT/packages/mipsel_24kc/packages
src/gz openwrt_routing http://downloads.openwrt.org/releases/19.07-SNAPSHOT/packages/mipsel_24kc/routing
src/gz openwrt_telephony http://downloads.openwrt.org/releases/19.07-SNAPSHOT/packages/mipsel_24kc/telephony

After changing

opkg update
opkg install python3

insert image description here

Guess you like

Origin blog.csdn.net/Ikaros_521/article/details/128575485