How to install LibreMesh on the Xiaomi MiWiFi R3

This is a pretty good device with lots of memory, one of the last dual band devices easily hackable. Installing LibreMesh/LEDE/OpenWrt is a bit more work but can be done. Here are the instructions:

Follow these steps:

scp lede-ramips-mt7620nand-miwifi-r3-squashfs-kernel1.bin   root@192.168.15.1:/tmp/
scp lede-ramips-mt7620nand-miwifi-r3-squashfs-rootfs0.bin   root@192.168.15.1:/tmp/
  • login through ssh:

ssh root@192.168.15.1
nvram set flag_last_success=1
nvram set boot_wait=on
nvram set uart_en=1
nvram commit
mtd write /tmp/lede-ramips-mt7620nand-miwifi-r3-squashfs-kernel1.bin kernel1
mtd write /tmp/lede-ramips-mt7620nand-miwifi-r3-squashfs-rootfs0.bin rootfs0
reboot
  • and it should be meshing already!

Upgrading from OpenWRT/LEDE

If you somehow installed OpenWRT/LEDE before installing LibreMesh, here is the sysupgrade file: