Modern OpenWrt build targeting MSM8916 devices with full modem, USB gadget, and WiFi support.
- About OpenWrt
- Supported Devices
- Features
- Prerequisites
- Building
- Installation
- Troubleshooting
- Roadmap
- Credits
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.
All devices use the Qualcomm MSM8916 SoC with 384 MB RAM and 4 GB eMMC.
- UZ801v3 (
yiming-uz801v3) -- USB dongle form factor. - UF02 (
generic-uf02) -- USB dongle form factor, most likely with only asian bands. Can be somewhat changed via QPST and theqcnfile from UZ801.
MF68E and M9S device support has been moved to the TBR directory for reference. See that README for re-integration instructions.
- Modem: Fully functional with cellular connectivity
- ModemManager Rx/Tx stats not displayed in LuCI (known issue)
- WiFi: Complete wireless support
- USB Gadget Modes: NCM, RNDIS, Mass Storage, ACM Shell
- Configure via UCI or LuCI app
- VPN Ready: TUN driver and WireGuard pre-installed
- LED Control: Managed via
hotplug.dscripts (sysfs-based, no extra packages)
- SquashFS Root: Compressed root filesystem
- OverlayFS: ext4 overlay partition for user data (formatted automatically via preinit)
- Factory Reset:
firstbootmechanism enabled
- Tailscale: LuCI app available as standalone package (APK and IPK)
- Docker installed on your system
- Basic knowledge of Linux command line
- For flashing: edl tool
GHA workflows automatically resolve the latest OpenWrt 25.12.x tag. Trigger manually from the Actions tab:
- Build firmware:
build.yml— select a device (uz801,uf02, orall) - Build packages:
build-package.yml— buildsluci-app-tailscale,uci-usb-gadget, andluci-app-usb-gadgetin APK and IPK formats
- Build the environment (defaults to OpenWrt
main/snapshot):
cd devenv
docker compose build builder
- Enter and build:
docker compose run --rm builder
cp /repo/diffconfig_uz801 .config
make defconfig
make -j$(nproc)
To build a specific release locally:
OPENWRT_VERSION=v24.10.2 docker compose build builder --no-cache
Supported versions: OpenWrt 25.12.x and current snapshots (kernel 6.12). OpenWrt 24.10.x (kernel 6.6) compiles but does not boot — the Makefile supports it via
KERNEL_FOR_24(currently commented out) if someone wants to investigate further.
-
Install EDL tool: https://github.com/bkerler/edl
-
Enter EDL mode:
- UZ801v3: See PostmarketOS wiki guide
-
Backup original firmware:
edl rf backup.bin -
Flash OpenWrt:
./openwrt-msm89xx-msm8916-*-flash.shThe script flashes entirely via EDL (no fastboot step). It automatically backs up radio partitions, writes the new GPT, firmware, boot and rootfs, and restores the backed-up partitions.
- Fastboot mode: Insert device while holding the button
- EDL mode: Boot to fastboot first, then execute:
fastboot oem reboot-edl
- Fastboot mode:
- From OEM:
adb reboot bootloader. - From OpenWrt: Enter
edland erase boot partition (edl e boot).
- From OEM:
- EDL mode:
- From OEM:
adb reboot bootloader, flashlk2ndaboot. Reboot pressing the button. - From OpenWrt: Insert device while holding the button.
- From OEM:
The modem requires region-specific MCFG configuration files.
-
Dump modem partition:
edl r modem modem.bin -
Mount and navigate:
# Mount modem.bin (it's a standard Linux image) cd image/modem_pr/mcfg/configs/mcfg_sw/generic/ -
Select your region:
APAC- Asia PacificCHINA- ChinaCOMMON- Generic/fallbackEU- EuropeNA- North AmericaSA- South AmericaSEA- South East Asia
-
Locate your carrier's MCFG: Navigate to your telco's folder and find
mcfg_sw.mbn. If your carrier isn't listed, use a generic configuration from thecommonfolder.
Transfer to device (capitalization matters!):
scp -O mcfg_sw.mbn root@192.168.1.1:/lib/firmware/MCFG_SW.MBN
# ... and reboot the device ...
- Custom package server for msm89xx/msm8916
- Note: Target-specific modules may require building from source via
make menuconfig - The target-specific APK feed is automatically removed on first boot (msm89xx is not on downloads.openwrt.org)
- Note: Target-specific modules may require building from source via
- Investigate
lpacfor eSIM support - Memory expansion:
kmod-zram+zram-swapenabled on all devices
- @ghosthgy - Initial project foundation
- @lkiuyu - MSM8916 support, patches, and OpenStick feeds
- @Mio-sha512 - USB gadget and firmware loader concepts
- @AlienWolfX - Carrier policy troubleshooting guide
- @gw826943555 & @asvow - Tailscale LuCI application
