Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| toh:xiaomi:xiaomi_mi_router_4c [2020/11/27 23:02] – [JTAG] mactavishao | toh:xiaomi:xiaomi_mi_router_4c [2023/02/03 13:21] – [Tags] fix tags danitool | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| /* DO NOT CREATE NEW DEVICEPAGES VIA COPY & PASTE! */ | /* DO NOT CREATE NEW DEVICEPAGES VIA COPY & PASTE! */ | ||
| /* USE https:// | /* USE https:// | ||
| + | |||
| + | |||
| + | <WRAP important 100%> | ||
| + | |||
| /*****/ | /*****/ | ||
| Line 10: | Line 14: | ||
| {{ : | {{ : | ||
| + | |||
| ===== Supported Versions ===== | ===== Supported Versions ===== | ||
| Line 19: | Line 24: | ||
| ---- | ---- | ||
| - | ===== Experimental Versions ===== | ||
| - | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | ||
| - | |||
| - | //None at this time.// | ||
| ===== Hardware Highlights ===== | ===== Hardware Highlights ===== | ||
| Line 35: | Line 31: | ||
| header | header | ||
| align : c, | align : c, | ||
| - | filter | ||
| filter | filter | ||
| - | filter | ||
| ---- | ---- | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - | /* stable release */ | ||
| - | /* uncomment once stable release is available | ||
| ---- datatable ---- | ---- datatable ---- | ||
| cols : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url | cols : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url | ||
| Line 50: | Line 42: | ||
| filter | filter | ||
| ---- | ---- | ||
| - | */ | ||
| - | |||
| - | |||
| - | /* snapshot */ | ||
| - | /* delete once stable release is available */ | ||
| - | ---- datatable ---- | ||
| - | cols : Model, Versions, Supported Current Rel, Firmware OpenWrt snapshot Install URL_url, Firmware OpenWrt snapshot Upgrade URL_url, Firmware OEM Stock URL_url | ||
| - | headers : Model, Version, Current Release, Firmware OpenWrt snapshot Install, Firmware OpenWrt snapshot Upgrade, Firmware OEM Stock | ||
| - | align : c,c,c | ||
| - | filter | ||
| - | ---- | ||
| - | |||
| -> [[docs: | -> [[docs: | ||
| <WRAP center round important> | <WRAP center round important> | ||
| - | The snapshot version is NOT tested and it does not ship with a GUI. Your initial network configuration needs to be done via uci. Afterwards you can install LuCI for GUI. | ||
| As of the time of this edit (2019-06-19), | As of the time of this edit (2019-06-19), | ||
| </ | </ | ||
| Line 73: | Line 52: | ||
| - Install python3 and and to PATH if not installed. | - Install python3 and and to PATH if not installed. | ||
| - Install requirements: | - Install requirements: | ||
| - | - Login to Web panel of your router and copy stok code from URL. | + | - Login to Web panel of your router and copy the stok URL parameter out of the address field of your browser. |
| - Execute the exploit: < | - Execute the exploit: < | ||
| - Enter stok and router' | - Enter stok and router' | ||
| Line 86: | Line 65: | ||
| ===== Hardware ===== | ===== Hardware ===== | ||
| ==== Info ==== | ==== Info ==== | ||
| - | |||
| ---- datatemplatelist dttpllist ---- | ---- datatemplatelist dttpllist ---- | ||
| template: meta: | template: meta: | ||
| Line 93: | Line 71: | ||
| ---- | ---- | ||
| + | ==== Photos ==== | ||
| + | /* =====>>>>> | ||
| + | /* When uploading photos, **name them** intelligently. Nobody knows what 20100930_000602.jpg is! */ | ||
| + | /* e.g. {{: | ||
| + | /* Thanks, your wiki administration - Oct. 2015 */ | ||
| + | |||
| + | **PCB** | ||
| + | |||
| + | {{media: | ||
| + | |||
| + | **PCB (Close Up)** | ||
| + | |||
| + | {{media: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ===== Flash layout ===== | ||
| + | |||
| + | ==== Stock /proc/mtd ==== | ||
| + | < | ||
| + | dev: size | ||
| + | mtd0: 01000000 00010000 " | ||
| + | mtd1: 00020000 00010000 " | ||
| + | mtd2: 00010000 00010000 " | ||
| + | mtd3: 00010000 00010000 " | ||
| + | mtd4: 00010000 00010000 " | ||
| + | mtd5: 00010000 00010000 " | ||
| + | mtd6: 00100000 00010000 " | ||
| + | mtd7: 00c60000 00010000 " | ||
| + | mtd8: 00af0000 00010000 " | ||
| + | mtd9: 00200000 00010000 " | ||
| + | </ | ||
| + | |||
| + | ==== OpenWrt snapshot /proc/mtd ==== | ||
| + | < | ||
| + | dev: size | ||
| + | mtd0: 00020000 00010000 " | ||
| + | mtd1: 00010000 00010000 " | ||
| + | mtd2: 00010000 00010000 " | ||
| + | mtd3: 00010000 00010000 " | ||
| + | mtd4: 00010000 00010000 " | ||
| + | mtd5: 00100000 00010000 " | ||
| + | mtd6: 00ea0000 00010000 " | ||
| + | mtd7: 002052ab 00010000 " | ||
| + | mtd8: 00c9ad55 00010000 " | ||
| + | mtd9: 00a10000 00010000 " | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== OpenWrt back to STOCK ==== | ||
| + | 0. Consider OpenWrt factory reset first | ||
| + | < | ||
| + | 1. Download STOCK firmware | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | 2. Copy to router | ||
| + | < | ||
| + | 3. Write to " | ||
| + | < | ||
| + | 4. Router will reboot and after few minutes will boot into stock firmware with IP address 192.168.31.1 | ||
| + | ===== Debricking ==== | ||
| + | Using Mi Wifi Repair tool: | ||
| + | [[http:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | \\ | ||
| + | ===== Hardware Mod - USB Port ==== | ||
| - | ===== Bootloader mods ===== | + | See the photos for break down of where to solder etc. |
| - | -> [[docs: | + | On picture are shown all soldier points for desired pins with markings. |
| + | Also you must connect 15kOhm resistors to ground from D+ and D- lines. | ||
| - | ===== Hardware mods ===== | + | **Software mod** |
| - | None so far. | + | Simple hardware mod does not enable USB, you must enable OHCI and AHCI in board description file and compile appropriate firmware. |
| + | Board description file is on location < | ||
| + | In this file change: | ||
| + | < | ||
| + | &ehci { | ||
| + | status = " | ||
| + | }; | ||
| + | &ohci { | ||
| + | status = " | ||
| + | }; | ||
| + | </ | ||
| + | to | ||
| - | ===== Bootlogs ===== | + | < |
| - | ==== OEM bootlog ==== | + | &ehci { |
| - | <WRAP bootlog> | + | status |
| - | < | + | }; |
| - | </WRAP>\\ | + | &ohci { |
| + | status | ||
| + | }; | ||
| + | </code> | ||
| - | ==== OpenWrt bootlog ==== | + | Enable usb kernel module support in "make menuconfig", |
| - | <WRAP bootlog> | + | |
| - | < | + | |
| - | </ | + | |
| - | ===== Notes ===== | + | <wrap warning> You can use 5V power supply from router |
| - | // | + | |
| - | * ... | ||
| ===== Tags ===== | ===== Tags ===== | ||
| [[meta: | [[meta: | ||
| - | {{tag> | + | {{tag> |