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
- Enter the build environment:
cd devenv
docker compose run --rm builder
- Configure and build:
cp /repo/diffconfig_uz801 .config
echo "# CONFIG_SIGNED_PACKAGES is not set" >> .config # Optional: disable signature verification
make defconfig
make -j$(nproc)
A GitHub Actions workflow (build-package.yml) builds luci-app-tailscale, uci-usb-gadget, and luci-app-usb-gadget in both APK and IPK formats. Trigger it manually from the Actions tab.
-
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 [email protected]:/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 - Removed feed:
https://downloads.openwrt.org/snapshots/targets/msm89xx/msm8916/packages/packages.adb
- 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
