MilkFlint is OpenWrt with a few changes for the Flint 2. It aims for:
- Stable 5 GHz Wi-Fi: a fork of the open-source mt76 driver with fixes for the MT7986's Wi-Fi (resets, power save, block-ack sessions, radar detection, firmware replies and more), plus a few mac80211 and hostapd fixes.
- RSS: received Ethernet traffic spread over the MT7986's receive rings, each with its own interrupt and CPU core, instead of all on one.
- cake_mq: multi-queue CAKE for Smart Queue (SQM), sharing the line's rate between the queues by demand, with less CPU per packet, and working with flow offloading.
It also has its own web interface for the everyday settings, served at the router's address; LuCI stays installed under "Advanced".
MilkFlint is experimental (an alpha). Images are on the Releases page. The same build also makes images for the Zyxel EX5601-T0 (also sold as the EX5601-T1 and Telenor's T-56), which has the same MT7986: those are more experimental still, built but not tested on the hardware here (see below).
Don't keep settings. Untick "Keep settings" when you flash MilkFlint, whether the router runs GL.iNet's firmware, OpenWrt or an earlier MilkFlint (from a shell:
sysupgrade -n). Settings from another firmware or an earlier alpha may not match this one; start clean and set the router up again. Back up first if you want your old settings for reference.
Flash only milkflint-*-glinet_gl-mt6000-squashfs-sysupgrade.bin. Never
the factory, preloader or bl31-uboot images: they can brick the router or
replace its bootloader, and with it the U-Boot recovery page.
- From GL.iNet's firmware: at http://192.168.8.1, System → Upgrade → Local Upgrade, upload the image, untick "Keep Settings".
- From OpenWrt: LuCI's System → Backup / Flash Firmware → Flash image, untick "Keep settings".
- If it won't boot: U-Boot recovery, on OpenWrt's GL-MT6000 page.
Then plug a cable into a LAN port and open http://192.168.1.1. There's no password yet: sign in with it empty and set one under System → Admin Password. Wi-Fi is off until you set it up on the Wi-Fi page, with your country.
MilkFlint's kernel isn't OpenWrt's, so OpenWrt's kernel modules (kmod-*)
don't install on it. Each image lists its own kernel's modules instead, in
MilkFlint's feed at https://milkflint-packages.pages.dev, signed with the
key the images already trust: apk update then apk add kmod-… (or
LuCI's Software page) works as on OpenWrt. Modules built for another
MilkFlint's kernel are refused. The MT7921/MT7925 and MT7996 Wi-Fi cards'
drivers aren't in the feed.
Built from the same tree, not tested on the hardware here: reports welcome.
Install OpenWrt on it first, following
OpenWrt's device page
(filed under the T-56, an ISP's EX5601-T1: the same router without the
SFP+ port) and the
EX5601-T0 forum thread,
and make sure you can recover it from there (serial console, recovery image)
before you flash anything else. Then flash the MilkFlint image for the
flash layout it has, which cat /tmp/sysinfo/board_name tells:
zyxel,ex5601-t0-ubootmod(OpenWrt's U-Boot):milkflint-*-zyxel_ex5601-t0-ubootmod-squashfs-sysupgrade.itbzyxel,ex5601-t0-stock(Zyxel's bootloader):milkflint-*-zyxel_ex5601-t0-stock-squashfs-sysupgrade.bin
OpenWrt refuses an image for the other layout. Never flash the preloader or
bl31-uboot images unless OpenWrt's page tells you to: they replace the
bootloader. Its WAN port is wan, its LAN ports lan1 to lan4.
milkflint-25.12 is the OpenWrt release v25.12.6 with MilkFlint's
changes as commits on top, so git log v25.12.6.. lists all of them. Each
update is a new commit, OpenWrt's 25.12 point releases are merged in, and
each MilkFlint release is a tag on the branch (milkflint-0.11a), with its
images on the Releases page.
| Where | What |
|---|---|
target/linux/, package/kernel/mac80211/, package/network/services/hostapd/, package/base-files/ |
Kernel, Ethernet, mac80211 and hostapd patches, and MilkFlint's name and version |
package/kernel/mt76/patches/ |
The mt76 driver fork, on upstream mt76 of the date in its Makefile |
package/milkflint/milkflint-ui/ |
The web interface package (htdocs/ is the built interface) |
package/milkflint/ |
Newer versions of dnsproxy, miniupnpd, nlbwmon and sqm-scripts; they replace the feeds' copies |
package/milkflint/adguardhome/ |
AdGuard Home (GPL-3.0), packaging AdGuard's official Linux arm64 release with MilkFlint's init and jail; off until its page turns it on (see AdGuard Home) |
package/milkflint/gawk/ |
GNU awk (GPL-3.0) from OpenWrt's packages feed, installed as gawk only (not as the system's awk) and without readline, for banIP |
milkflint/ui/ |
The web interface's source (React, TypeScript) |
milkflint/diffconfig |
The build configuration |
On a Linux build host set up for OpenWrt (see below):
./scripts/feeds update -a
./scripts/feeds install -a
cp milkflint/diffconfig .config
make defconfig
make download
make -j$(nproc)feeds install says it isn't overriding the core packages in
package/milkflint/: that's how they replace the feeds' copies. The images
are in bin/targets/mediatek/filogic/; flash the
milkflint-*-glinet_gl-mt6000-squashfs-sysupgrade.bin one, or the EX5601's
for its layout (see Installing).
The configuration builds every kernel module as a package for the feed
(CONFIG_ALL_KMODS), which takes a while; take it out of .config before
make defconfig for the images alone. The images list MilkFlint's feed
for their kernel (CONFIG_VERSION_KMODS_REPO), which only has the
releases' kernels: if you change the kernel, its modules are the
kmod-*.apk files in bin/targets/mediatek/filogic/packages/.
To build the web interface after changing it (Node.js 24 and pnpm):
cd milkflint/ui
pnpm install --frozen-lockfile
pnpm packagepnpm package checks it (TypeScript, ESLint), builds it and copies it into
package/milkflint/milkflint-ui/htdocs/.
The images include AdGuard Home, off until it's turned on on the router's AdGuard Home page (under Security). Its filtering is set in its own web interface. MilkFlint keeps the DNS chain around it: devices still ask the router, which sends their lookups to AdGuard Home with their own address, and AdGuard Home sends what it doesn't block (and hasn't cached) to the router's dnsmasq, which uses the DNS page's servers. If AdGuard Home stops answering, the router answers them itself, unfiltered, until it does again. MilkFlint is not made or endorsed by AdGuard; "AdGuard" is their trademark.
How it's packaged. package/milkflint/adguardhome/ downloads AdGuard's
official AdGuardHome_linux_arm64.tar.gz release from GitHub (verified by
PKG_HASH) and packages it unchanged with MilkFlint's init script, jail and
settings — no Go or Node host toolchain is needed for it.
Licenses. AdGuard Home is GPL-3.0 (PKG_LICENSE, LICENSE.txt). The
image installs its LICENSE.txt in /www/licenses/adguardhome/ (linked from
its page alongside the matching GitHub source tag). MilkFlint's own code (the
web interface, the page's router side) stays MIT and copies nothing from
AdGuard Home.
Its source. AdGuard Home's source is AdGuard's own, at the
version's tag on GitHub
(linked from its page): AdGuard builds its release from that tag, and this
branch's package/milkflint/adguardhome/ packages the release unchanged.
MilkFlint's package site also keeps a copy of each version's release and
of its source at that tag, with the Makefile and a SOURCE.txt of hashes,
next to the package:
https://milkflint-packages.pages.dev/sources/adguardhome/<version>/SOURCE.txt.
Updates come from that same site, a feed signed with the key the
images trust, tagged @milkflint in apk so OpenWrt's own adguardhome
package (built another way) never replaces it. The page installs the
newest, or goes back to one of the earlier versions the feed keeps.
AdGuard Home's own updater is off (--no-check-update).
The rest of this README is OpenWrt's.
OpenWrt Project is a Linux operating system targeting embedded devices. Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with package management. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. For developers, OpenWrt is the framework to build an application without having to build a complete firmware around it; for users this means the ability for full customization, to use the device in ways never envisioned.
Sunshine!
Built firmware images are available for many architectures and come with a package selection to be used as WiFi home router. To quickly find a factory image usable to migrate from a vendor stock firmware to OpenWrt, try the Firmware Selector.
If your device is supported, please follow the Info link to see install instructions or consult the support resources listed below.
An advanced user may require additional or specific package. (Toolchain, SDK, ...) For everything else than simple firmware download, try the wiki download page:
To build your own firmware you need a GNU/Linux, BSD or macOS system (case sensitive filesystem required). Cygwin is unsupported because of the lack of a case sensitive file system.
You need the following tools to compile OpenWrt, the package names vary between distributions. A complete list with distribution specific packages is found in the Build System Setup documentation.
binutils bzip2 diff find flex gawk gcc-6+ getopt grep install libc-dev libz-dev
make4.1+ perl python3.7+ rsync subversion unzip which
-
Run
./scripts/feeds update -ato obtain all the latest package definitions defined in feeds.conf / feeds.conf.default -
Run
./scripts/feeds install -ato install symlinks for all obtained packages into package/feeds/ -
Run
make menuconfigto select your preferred configuration for the toolchain, target system & firmware packages. -
Run
maketo build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the GNU/Linux kernel & all chosen applications for your target system.
The main repository uses multiple sub-repositories to manage packages of
different categories. All packages are installed via the OpenWrt package
manager called opkg. If you're looking to develop the web interface or port
packages to OpenWrt, please find the fitting repository below.
-
LuCI Web Interface: Modern and modular interface to control the device via a web browser.
-
OpenWrt Packages: Community repository of ported packages.
-
OpenWrt Routing: Packages specifically focused on (mesh) routing.
-
OpenWrt Video: Packages specifically focused on display servers and clients (Xorg and Wayland).
For a list of supported devices see the OpenWrt Hardware Database
- Forum: For usage, projects, discussions and hardware advise.
- Support Chat: Channel
#openwrton oftc.net.
- Bug Reports: Report bugs in OpenWrt
- Dev Mailing List: Send patches
- Dev Chat: Channel
#openwrt-develon oftc.net.
OpenWrt is licensed under GPL-2.0
