Modern OpenWrt build targeting MSM8916 devices with full modem, display, and USB gadget support.
- About OpenWrt
- Supported Devices
- Features
- Prerequisites
- Building
- Installation
- Device-Specific Configuration
- 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.
| Device | OpenWrt Target | SoC | RAM | Storage | Display | Battery | Notes |
|---|---|---|---|---|---|---|---|
| UZ801v3 | yiming-uz801v3 |
MSM8916 | 384MB | 4GB | ❌ | ❌ | USB dongle form factor |
| UF02 | generic-uf02 |
MSM8916 | 384MB | 4GB | ❌ | ❌ | USB dongle form factor most likely with only asian bands. (Can be somewhat changed via QPST and the qcn file from uz801) |
| MiFi M68E | generic-mf68e |
MSM8916 | 384MB | 4GB | ✅ GC9107 | ✅ | Portable hotspot with interactive display |
| MiFi M9S | generic-mf9s |
MSM8916 | 384MB | 4GB | ❌ (Leds) | ✅ | Portable hotspot |
- 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
- Display: GC9107 framebuffer support (MiFi M68E only)
- System info screen with WiFi QR code
- Configurable auto-dim and lockscreen timers
- VPN Ready: TUN driver and WireGuard pre-installed
- LED Control: Managed via
hotplug.dscripts (UZ801 Only)- WiFi LED: 99-modem-led
- Modem LED: 99-wifi-led
- Display Manager: FIFO-based display control daemon (MiFi M68E only)
- Script: display-manager
- Manages brightness, timers, and power states
- Commands:
full,dim,off,lockscreen,update,shutdown - Controlled via
/var/run/display.fifo
- SquashFS Root: Compressed root filesystem
- OverlayFS: ext4 overlay partition for user data
- Factory Reset:
firstbootmechanism enabled
- Tailscale: LuCI app included in
/root(manual installation required)- Install with:
apk add --allow-untrusted /root/luci-app-tailscale*.apk - Not auto-installed to save space
- Install with:
- 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 .config
echo "# CONFIG_SIGNED_PACKAGES is not set" >> .config # Optional: disable signature verification
make defconfig
make -j$(nproc)
-
Install EDL tool: https://github.com/bkerler/edl
-
Enter EDL mode:
- UZ801v3: See PostmarketOS wiki guide
- MiFi M68E:
- From OEM firmware:
adb reboot edl - After flashing OpenWrt: Requires EDL cable or shorting test pads on PCB (see forum guide)
- From OEM firmware:
-
Backup original firmware:
edl rf backup.bin -
Flash OpenWrt:
./openwrt-msm89xx-msm8916-*-flash.shThe script automatically backs up device-specific partitions, flashes the firmware, and restores critical data.
- 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:
- Fastboot mode from OpenWrt: Enter
edlmode and erase boot partition (edl e boot). This will force bootloader. - EDL mode:
- From OEM:
adb reboot edl - From OpenWrt: Requires EDL cable or shorting PCB test pads.
- From OEM:
The MiFi M68E features an interactive display and power management system controlled via the power button and UCI configuration.
- Single press: Display system information screen
- Shows: Carrier name, signal type (4G/3G), hostname, battery percentage, WiFi QR code
- Automatically starts display timers
- Double press (quick succession): Power off the device
Configure display behavior through UCI:
# Display timers (in Seconds)
uci set display.display.timeout_dim='5' # Seconds until screen dims
uci set display.display.timeout_off='3' # Seconds until screen turns off
uci set display.display.enable_lockscreen='1' # Show lockscreen when dimmed (0/1)
# Display brightness
uci set display.display.brightness_dim_divisor='8' # Brightness divisor when dimmed (higher = dimmer)
# FIFO control (advanced)
uci set display.display.fifo='/var/run/display.fifo'
uci commit display
| Option | Type | Default | Description |
|---|---|---|---|
timeout_dim |
integer | 5 | Seconds before display dims |
timeout_off |
integer | 3 | Seconds before display turns off |
enable_lockscreen |
boolean | 1 | Display lockscreen when dimmed |
brightness_dim_divisor |
integer | 8 | Brightness divisor for dim mode (higher value = dimmer) |
fifo |
string | /var/run/display.fifo |
FIFO pipe for display control |
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 - 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: swap/zram configuration
- @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
