Skip to content

OpenWRT 19.07 for Mi 4A Gigabit with mt76 backports - 2020-07-22

Compare
Choose a tag to compare
@araujorm araujorm released this 22 Jul 15:37
· 151 commits to xiaomi-miwifi-3gv2-19.07-mt76updated since this release

Built on 2020-07-22 from branch xiaomi-miwifi-3gv2-19.07-mt76updated of this repo.

Kernel is optimized for performance (extra ~200KB). If you need optimized for size, please ask in the comments.

Besides the basic, includes:

  • pppoe support (was missing in first builds)
  • luci
  • sqm QoS scripts
  • adblock
  • openvpn
  • wireguard
  • ddns client
  • curl and ufetch-client with SSL support
  • screen
  • tcpdump
  • iperf3
  • iftop

You can install more using opkg.

Attached:

  • config file used for this build, for anyone wanting to use it as a basis for their own builds
  • sysupgrade image - IMPORTANT: you usually only need this, either if you're flashing from another OpenWRT release/build, or if you're flashing OpenWRT for the first time
  • initramfs image - you'll usually won't need it, however in some cases (for still unclear reasons), when flashing OpenWRT for the first time from a running Xiaomi firmware with mtd, data gets corrupted while flashing and all that you can do (unless you have a flasher) is to unbrick with a TFTP server and the original Xiaomi firmware image (for example as described here); if you are in that situation, and only then you may try this (untested):
    • try flashing this image first (you'll get a system with no persistent data so don't bother configuring it yet; you may also end up with a brick... if so, your only option will be to stay with Xiaomi's firmware forever, or buy a cheap flasher)
    • if you succeeded and were able to boot OpenWRT (although not in its final form), from there try accessing the default IP 192.168.1.1 via SSH as root (no password needed)
    • do a cat /proc/mtd and you should see that the MTD partition previously labeled as OS1 in Xiaomi original firmware is now labeled kernel (if not, please see below where to ask for help)
    • upload the sysupgrade image to /tmp (e.g. using wget, curl, or scp from your machine)
    • finally flash the final sysupgrade image: mtd -e kernel -r write openwrt-ramips-mt7621-xiaomi_mir3g-v2-squashfs-sysupgrade.bin kernel and after the router reboots, you should be set

Edit: the feedback I've had points that the initramfs image doesn't really help; although you can boot with it, the kernel partition isn't seen on the mtd device so you'll get stuck. Please try the latest build I released here on github, if it doesn't work please let me know in the forum and look for @db260179 's thread there, as he is investigating this issue (I never had the issue but he has, and he has his alternative builds that can be of help, whilst being also quite complete ones).

If something doesn't work or something is not as described, please leave a comment or try asking in the OpenWRT forum.