This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
2021:xiaomi_flash [2021/10/20 21:05] admin [Flashing the new firmware] |
2021:xiaomi_flash [2021/11/03 15:43] (current) admin [Flashing the new firmware] |
||
---|---|---|---|
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> | ||
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 |