
Intro
I reviewed the GL.iNet Mango 2 a couple of months ago and noticed GL.iNet bakes a couple of goodies into its firmware that I never used, including GoodCloud. During my testing, GoodCloud sat dormant unless you bound an account. Then on November 20, 2026, GL.iNet disclosed that attackers exploited an MQTT authorization and command-injection flaw in GoodCloud to gain root access and drop backdoors on connected routers and IP-KVMs, pushing them to patch their servers and rush out cleanup firmware like 4.11.1 for the Mango 2 (GL-MG1300).
Since I have no use for GL.iNet’s extra services anyway, I wanted to get a vanilla OpenWrt build running on it. GL.iNet has an upstream pull request open (openwrt/openwrt#24886 (opens in a new tab)), but it is unmerged and targets OpenWrt snapshot rather than a stable release. So I put together a repository at openwrt-gl-mg1300 (opens in a new tab) that builds plain OpenWrt 25.12.6 (kernel 6.12) for the Mango 2, with zero vendor cloud agents or proprietary wrappers.
Building the image
The first step was mapping out the hardware from the stock GL.iNet firmware. I started with OpenWrt’s existing GL-MT1300 device tree (DTS) as a reference and wrote a read-only dump script to pull the partition layout, GPIOs, LEDs, switch config, and factory MAC addresses off the Mango 2. From those dumps I put together the GL-MG1300 device tree and board support patch, and later pulled in a few fixes for pin config, Wi-Fi MACs, and LEDs from PR #24886.
Instead of maintaining a full OpenWrt fork, I wrote a small build.sh script that clones OpenWrt at a pinned release tag, copies my device tree, patches, and custom files on top of it, and compiles a regular sysupgrade.bin. It includes LuCI and the full Wi-Fi package (wpad-mbedtls) so roaming works out of the box if you run it as a second AP.
To keep builds up to date, a nightly Actions workflow on my self-hosted Gitea instance watches for new OpenWrt v25.* tags and publishes a new release automatically. Since the Mango 2 isn’t in upstream OpenWrt yet, you can’t use Attended Sysupgrade, so I also bundled gl-upgrade (CLI and a LuCI page under System ➔ Online Upgrade) to grab releases from Gitea, verify the checksum, and flash without doing it by hand.
Flashing
Download openwrt-ramips-mt7621-glinet_gl-mg1300-squashfs-sysupgrade.bin from the releases page (opens in a new tab) and flash it from stock GL.iNet firmware without keeping settings:
- GL.iNet Web UI: Open System -> Upgrade -> Local Upgrade, upload the
squashfs-sysupgrade.binfile, and uncheck Keep Settings. - Over SSH: Run
sysupgrade -n openwrt-ramips-mt7621-glinet_gl-mg1300-squashfs-sysupgrade.bin.
After rebooting, OpenWrt comes up at 192.168.1.1 with LuCI. More details are in the repository README (opens in a new tab).
Optional: unlocking TX power
While reviewing the unit, I saw that the Mango 2’s coverage range is limited (as expected of a travel router). Looking into why, I found that the factory power limits are 17 dBm on 2.4 GHz and 18 dBm on 5 GHz, roughly what you’d expect from a mobile hotspot.
I unlocked the ceiling by patching the mt76 Wi-Fi driver to accept an opt-in max_txpower module parameter instead of hard-capping every channel at the factory limit (it still respects your country’s regulatory limit). Lo and behold, the range opened up. An unexpected side effect was that once I hit around 23 dBm, my devices jumped from HT (Wi-Fi 4) up to VHT (Wi-Fi 5), letting me reach upwards of 700 Mbps down and 600 Mbps up.
The catch is that transmit power doesn’t scale linearly. Because dBm is logarithmic, every +3 dBm roughly doubles the radio’s RF output (going from 18 dBm to 24 dBm is about 4x the transmit power), which adds heat and power draw. Because of that, max_txpower defaults to 0 so the router stays within stock thermal and USB power limits unless you opt in.
To raise the ceiling (for example, to 25 dBm), run this over SSH and reboot. The first line sets the driver option on boot, and the second makes sure firmware updates keep it:
printf 'mt7615-common max_txpower=25\nmt7615e\n' > /etc/modules.d/mt7615e
grep -qxF '/etc/modules.d/mt7615e' /etc/sysupgrade.conf || echo '/etc/modules.d/mt7615e' >> /etc/sysupgrade.conf
rebootOnce back up, /sys/module/mt7615_common/parameters/max_txpower will read 25. You can access higher power levels in LuCI under Network -> Wireless -> Edit Radio -> General Setup -> Maximum transmit power (or via uci set wireless.radio1.txpower='25').
Done!
Now Mango 2 is running vanilla OpenWrt 25.12.6 with no vendor additions or third-party cloud access, and the nightly builds will keep tracking 25.12.x releases until PR #24886 lands in a stable OpenWrt branch.
P.S.
Aloura turns 10 months in 2 weeks. She loves yapping, eating, and her first tooth is almost out! She still can’t crawl but she has made her first assisted steps. Maybe she will skip crawling. We are getting ready to spend Christmas in Honduras, where she will meet my extended family for the first time.
Here is a pic of her first Thanksgiving turkey:

If you ever read this, please know I love you dearly.