Advertisement
mr01010100

Lede_mi_router_3_only

Feb 23rd, 2018
1,729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. downgrade to http://bigota.miwifi.com/xiaoqiang/rom/r3/miwifi_r3_all_55ac7_2.11.20.bin
  2. put miwifi_r3_all_55ac7_2.11.20.bin on usb and rename to miwifi.bin with usb in router hold reset until led is flashing
  3. then release and wait until solid blue then login
  4.  
  5. Get SSH/dropbear access
  6. Log-in into the router and grab the value of the stok URL parameter (for instance: "9c2428de4d17e2db7e5a6a337e6f57a3")from your browsers' address bar.
  7. Replace the <STOK> placeholder--change value and delete these<>
  8. OLD_PASSWORD is your admin password you'd set while setting up the router or can be reset from Mi Wifi app
  9. #####################COMMAND################################
  10. * http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/web/home#router
  11.  
  12. * http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/xqnetwork/set_wifi_ap?ssid=Xiaomi&encryption=NONE&enctype=NONE&channel=1%3Bnvram%20set%20ssh%5Fen%3D1%3B%20nvram%20commit
  13.  
  14. * http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/xqnetwork/set_wifi_ap?ssid=Xiaomi&encryption=NONE&enctype=NONE&channel=1%3Bsed%20%2Di%20%22%3Ax%3AN%3As%2Fif%20%5C%5B%2E%2A%5C%3B%20then%5Cn%2E%2Areturn%200%5Cn%2E%2Afi%2F%23tb%2F%3Bb%20x%22%20%2Fetc%2Finit.d%2Fdropbear
  15.  
  16. * http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/xqnetwork/set_wifi_ap?ssid=Xiaomi&encryption=NONE&enctype=NONE&channel=1%3B%2Fetc%2Finit.d%2Fdropbear%20start
  17.  
  18. * http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/xqsystem/set_name_password?oldPwd=<OLD_PASSWORD>&newPwd=<NEW_PASSWORD>
  19. ###################END_COMMAND############################
  20. Start telnetd on the router: not neccesary
  21. ################COMMAND##########################
  22. http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/xqnetwork/set_wifi_ap?
  23. ssid=whatever&encryption=NONE&enctype=NONE&channel=1%3B%2Fusr%2Fsbin%2Ftelnetd
  24. ##############END_COMMAND#######################################
  25. put kernel1.bin and rootfs0.bin on fat formated usb drive and insert into xiaomi *****from pptp52
  26. ###########################
  27. in ssh or telnet:
  28. ############################COMMAND#############################
  29. cd /extdisks/sda1
  30. cp kernel1.bin /tmp
  31. cp rootfs0.bin /tmp
  32. cd /tmp
  33. nvram set flag_last_success=1
  34. nvram set boot_wait=on
  35. nvram set uart_en=1
  36. nvram commit
  37. mtd write kernel1.bin kernel1
  38. mtd write rootfs0.bin rootfs0
  39. reboot
  40. #########################END_COMMAND#########################
  41. for DLNA support flash eddiecz's sysupgrade via luci or ssh
  42. lede-1.2-r6190-79e0f2f-ramips-mt7620nand-miwifi-r3-squashfs-sysupgrade.tar
  43. from: https://rfid-shop.cz/index.php?route=product/product&language=en-gb&path=65&product_id=67 **registration required
  44. #############################################################
  45. If you want to revert back to stock fw while on LEDE:
  46. insert usb stick (FAT/FAT32) with stock fw renamed to miwifi.bin
  47. fw_setenv flag_last_success 0
  48. power off the device
  49. hold the reset button and power on the device, keep holding the reset button until yellow led starts blinking.
  50. *******recover_by_flashing_kernel0_to_SDRAM_over_TFTP*********option 2 via tty serial
  51. download kernel0 from: https://drive.google.com/drive/folders/0B1VOQQ-_EIXKVTFmVWZHcFM4NGc
  52.  
  53.  
  54. **********sources_of_instructions********
  55. https://dev.ptpt52.com/rom/
  56. https://forum.lede-project.org/t/xiaomi-mi-wifi-3-support/2252/254
  57. https://github.com/ptpt52/lede-source/issues/1
  58. https://wiki.openwrt.org/toh/xiaomi/mir3
  59. https://wiki.openwrt.org/toh/xiaomi/mini
  60. *******recover_by_flashing_kernel0_to_SDRAM_over_TFTP*********
  61. download kernel0 from: https://drive.google.com/drive/folders/0B1VOQQ-_EIXKVTFmVWZHcFM4NGc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement