RADIUSdesk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
2021:xiaomi_flash [2021/10/20 20:47] – [Invading the Router] admin2021:xiaomi_flash [2021/11/03 15:43] (current) – [Flashing the new firmware] admin
Line 114: Line 114:
         * SSH into the router         * SSH into the router
         * Write the firmware to the OS1 flash partition using the **mtd** program.         * Write the firmware to the OS1 flash partition using the **mtd** program.
-  * Copy the firmware file to the router. Please change the name of the firmware file to match yours.+  * Copy the firmware file to the router.  
 + 
 + 
 +<wrap em>**!! Please change the name of the firmware file to match yours !!**</wrap> 
 <code bash> <code bash>
 scp -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc -o UserKnownHostsFile=/dev/null openwrt-ramips-mt7621-xiaomi_mi-router-4a-gigabit-squashfs-sysupgrade.bin  root@192.168.31.1:/tmp scp -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc -o UserKnownHostsFile=/dev/null openwrt-ramips-mt7621-xiaomi_mi-router-4a-gigabit-squashfs-sysupgrade.bin  root@192.168.31.1:/tmp
 </code> </code>
   * SSH into the device    * SSH into the device 
 +
 +<wrap em>**!! Here also change the name of the firmware file to match yours !!**</wrap>
 +
 <code bash> <code bash>
-system@one:~/Documents/xiaomi_flash/OpenWRTInvasion$ ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc -o UserKnownHostsFile=/dev/null root@192.168.31.1+ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc -o UserKnownHostsFile=/dev/null root@192.168.31.1
  
 BusyBox v1.19.4 (2019-06-28 10:13:42 UTC) built-in shell (ash) BusyBox v1.19.4 (2019-06-28 10:13:42 UTC) built-in shell (ash)
Line 151: Line 158:
   * Now you can try out your new firmware.   * Now you can try out your new firmware.
   * If things however did now work according to plan the next section is for you.   * If things however did now work according to plan the next section is for you.
 +
 +===== De-Bricking The Xiaomi Router =====
 +  * There is an awesome write-up with some YouTube videos on how to de-brick and restore the router's original firmware.
 +  * https://hoddysguides.com/xiaomi-debrick-tools-all/
 +  * One point if interest is if you run a Linux environment you can simply install **Wine** and run the **pxesrv.exe** program as root.
 +<code bash>
 +sudo wine pxesrv.exe
 +</code>
 +