Linux on the ZTE F50 / MU300

Latest Release Total Downloads Stars Forks Issues License

The ZTE F50 is a pocket 5G router. This project turns it into a small Linux computer: Ubuntu 24.04 LTS or OpenWrt, with SSH, Wi-Fi, Bluetooth and its 5G modem working. Android stays on the device, and you can go back to it at any time.

Think of it as a Raspberry Pi that already has a 5G modem, a Wi-Fi access point and 32 GB of storage inside.

Türkçe: ZTE F50 / MU300'ü küçük bir Linux bilgisayarına çevirir: Ubuntu 24.04 veya OpenWrt; SSH, Wi-Fi, Bluetooth ve 5G modem çalışır. Android cihazda kalır, istediğiniz an geri dönersiniz. Kurulum: önce ./install.sh --check ile cihazınıza bakın, sonra ./install.sh ile kurun; ./uninstall.sh ile kaldırın.


What you get

  • A real Linux system, not an app or a container: Ubuntu 24.04 LTS with systemd and apt, or OpenWrt with its LuCI web interface.
  • Internet over 5G/LTE, shared with everything connected to the device.
  • A Wi-Fi hotspot (5 GHz or 2.4 GHz) and USB networking: plug it into a computer and it shows up as a network adapter.
  • SSH access at 192.168.77.1, plus a USB serial console.
  • Bluetooth and the Mali GPU (OpenCL; no screen output).
  • mu300-toolkit, a menu like raspi-config: temperatures, CPU and RAM use, network speeds, performance profiles, stress tests, VPN and services.
  • Android stays installed. One command switches back.

What it costs you

  • Android and Linux share the device. Only one runs at a time; a reboot switches between them.
  • No screen output. HDMI over USB-C does not work (the power-delivery chip never answers), so this is a headless machine you use over SSH or the web interface.
  • No sound. The speaker and microphone path does not work yet.
  • 1.4 GB of RAM. The modem firmware permanently reserves the rest.

Before you start

Your device must already be rooted and unlocked (it must already boot a modified Android boot image), and you need adb on your computer. Getting to that point is not part of this project.

Warning. Installing writes to the boot_b and misc partitions. If something goes badly wrong you may need a recovery tool (SPD/BROM) to revive the device. Android, its data and the partition table are never modified, but there is always some risk. Nothing here is endorsed by ZTE or Unisoc.

What protects you:

  • Linux is installed into empty, unused space on the internal storage; Android's partitions are not touched.
  • Linux starts as a "trial boot". If it fails to start, the bootloader returns to Android by itself.
  • ./uninstall.sh puts everything back.

You need:

  • A ZTE F50 / MU300, rooted, connected by USB, with USB debugging enabled.
  • A computer with adb and Python 3:
    • macOS or Linux: also lz4 and curl (both usually already installed).
    • Windows 10/11: PowerShell, plus pip install lz4. Use install.ps1 / uninstall.ps1 below.
  • About 15 minutes.

Install

Step 0 — back up what cannot be replaced (recommended).

tools/backup-device.sh          # macOS / Linux, device in rooted Android

This copies your unit's own data — prodnv, the modem calibration and IMEI partitions, the bootloader chain — to your computer and verifies every dump against the device. Installing never touches these, but if they are ever lost no firmware download can bring them back, and the modem stays broken. Keep the folder somewhere safe and out of any repository: it contains your IMEI.

Step 1 — check your device. This only reads; it writes nothing.

./install.sh --check          # macOS / Linux
.\install.ps1 -Check          # Windows (PowerShell)

It reports the storage size, where Android's partitions end and how much free space follows them. On the tested devices that is about 32 GiB. If yours shows much less, stop and open an issue.

Step 2 — install.

./install.sh                  # macOS / Linux
.\install.ps1                 # Windows

It asks a few questions (Ubuntu, OpenWrt or both; which one boots; a password), downloads the ready-made images, copies the Wi-Fi and modem files from your own device, shows exactly what it is about to write, and waits for you to type INSTALL. Then it reboots into Linux.

If Linux is already installed it asks whether to update or wipe:

  • update — reinstalls the systems but keeps your settings and data: /etc/mu300 (hotspot, VPN, toolkit), user accounts and home directories, /usr/local, SSH host keys, OpenWrt's UCI config, and the services you enabled yourself.
  • wipe — erases the Linux filesystem and installs from scratch.

If the device is running Linux rather than Android when you start, the installer notices and offers to reboot it into Android for you over SSH.

Step 3 — log in. Wait about a minute, then on the computer it is plugged into:

ssh ubuntu@192.168.77.1        # the password you chose during the install

For OpenWrt use ssh root@192.168.77.1, or open http://192.168.77.1 in a browser for LuCI.

The Wi-Fi network the device broadcasts is its hotspot; unless you chose otherwise it uses the name and password copied from Android.

Everyday use

sudo mu300-toolkit opens a menu for everything below. The direct commands:

I want to… Command
Watch temperatures, CPU, RAM, network speed mu300-toolkit top
Make it faster, or cooler and quieter sudo mu300-toolkit profile performance (also eco, balanced)
Test stability under load sudo mu300-toolkit stress all 10
Check the mobile connection sudo mobile-data status
Change the Wi-Fi name or password edit /etc/mu300/hotspot.conf, then sudo systemctl restart mu300-hotspot
Connect the device to someone else's Wi-Fi sudo mu300-toolkit → Network → Wi-Fi → "Join a network", or sudo wifi-client scan then sudo wifi-client connect "NAME" "PASSWORD"
Update to the newest release sudo mu300-update check then sudo mu300-update apply
Switch between OpenWrt and Ubuntu sudo mu300-os openwrt / sudo mu300-os ubuntu
Go back to Android sudo mu300-next-boot android, then sudo reboot
Return to Linux from Android su -c mu300-linux on the device (see below), or boot/android-boot-linux.sh boot-linux-slotb.img from a computer
Send all traffic through a VPN see below

Starting Linux from Android without a computer

android/magisk/build.sh builds a small Magisk module. Once it is installed, the Magisk app gets an Action button that reboots the device into Linux, and su -c mu300-linux does the same from a terminal (su -c 'mu300-linux status' just shows which system is on which slot). It writes only the same 32 bytes of misc that the installer does. See android/magisk/README.md.

VPN

The device can send its own traffic and everything from connected clients through a VLESS server (sing-box), with a kill switch so nothing leaks over mobile data if the tunnel drops.

sudo cp /etc/mu300/vpn.conf.example /etc/mu300/vpn.conf
sudo nano /etc/mu300/vpn.conf         # paste your vless:// link into VLESS_URI, set ENABLE=1
sudo systemctl enable --now mu300-vpn
mu300-vpn status

Updating

The device can update itself from a published release, without a computer:

sudo mu300-update check      # installed version vs newest release
sudo mu300-update apply      # download, unpack, switch; then reboot
sudo mu300-update rollback   # back to the previous version

mu300-toolkit offers the same under System -> Software update. Your settings, users, /usr/local and the vendor files (Wi-Fi firmware, Android modem userspace) are carried over, and the previous version is kept as <os>.old for a rollback until you run mu300-update clean. The new filesystem is unpacked beside the old one and only swapped in at the end, so an interrupted download cannot leave a half-updated system.

The kernel and the boot image are not updated this way: they have to be built with your device's own Android files, which only ./install.sh on a computer can do.

Uninstall

With the device back in Android:

./uninstall.sh                # macOS / Linux
.\uninstall.ps1               # Windows

It makes Android the boot system again, restores the second boot partition and erases the Linux filesystem. Your Android data is left alone. You choose how thorough the erase is:

  • secure (default) — overwrites the whole 32 GiB region and then verifies it is empty, so your files are really gone. Takes a few minutes.
  • quick — only erases the filesystem headers; the files stay readable on the flash until the space is reused.
  • keep — leaves the Linux filesystem alone; it simply never boots again.

Like the installer, it offers to reboot the device from Linux into Android first.

What works and what does not

Ubuntu 24.04 LTS / OpenWrt 25.12 ✅ boots, no failed services
Mobile data (5G NSA / LTE) ✅ shared with Wi-Fi and USB clients; reconnects by itself after modem resets
Wi-Fi access point ✅ 5 GHz (802.11ac) or 2.4 GHz, one at a time
USB network + serial console ✅ 192.168.77.1, screen /dev/cu.usbmodem* 115200
SSH, telnet ✅
Bluetooth ✅ BlueZ, scanning works
GPU (Mali-G57) ✅ OpenCL 3.0, headless
Storage ✅ about 32 GB in the unused area of the internal eMMC
RAM ✅ 1.4 GB usable (the modem firmware keeps the rest)
Temperature control, status LEDs, SIM tray ✅
Back to Android, automatic rollback ✅
Screen output (HDMI over USB-C) ✗ the USB-C power chip never answers, so no display
Sound ✗ the amplifier does not respond
Mainline kernel (6.18) 🚧 experimental, see upstream/

How it works, in short

The device has two Android boot slots, A and B. Android lives on slot A and is left alone. The installer puts a custom Linux kernel into slot B and marks it as a one-time trial. At boot, a small startup program loads the device's drivers, finds the Linux filesystem in the unused part of the internal storage and starts Ubuntu or OpenWrt from it. If Linux ever fails to start, the bootloader falls back to Android by itself. Three small Android programs keep running inside Linux in a sandbox, because the modem needs them.

The kernel is built from ZTE's published (GPL) source. The reasoning behind each step is in docs/FINDINGS.md, and the full build is in docs/BUILD.md.

Common problems

The device does not come back after installing. Wait two minutes. If there is still nothing, unplug and replug it: the bootloader will have returned to Android on its own. Collect logs with tools/collect-logs.sh.

No internet. Check that the SIM has a data plan, then run sudo mobile-data status. A missing plan looks like a connection that keeps dropping.

Websites think you are in another country. The device has no GPS, so sites guess from the IP address; mobile operators and VPN servers often look like a different city.

I forgot the password, and Linux boots by default. You do not need to log in to get out:

  1. Back to Android: unplug the device about ten seconds after it powers on, then plug it in again. The bootloader sees an unfinished boot and falls back to Android by itself (mu300-boot-ok only confirms a boot ~30 s after the system is up, so an interrupted boot never counts as successful).
  2. Set a new password from your computer, without booting Linux:
    tools/reset-password.sh            # ubuntu, openwrt or both
    
    It mounts the Linux filesystem from Android and rewrites the password hash, keeping all your data.
  3. Start Linux again with boot/android-boot-linux.sh work/boot-linux-slotb.img, or reboot if Linux is the default.

Re-running ./install.sh and choosing update also sets a new password and keeps your data.

Downloads are slow. GitHub's release CDN throttles single connections in some regions (0.2 MB/s on a 180 Mbit/s line here). The installer already downloads in 8 parallel chunks, which measured 8x faster; set MU300_FETCH_JOBS to change that, or point MU300_RELEASE_URL at your own mirror.

Never use OpenWrt's sysupgrade or flash OpenWrt firmware images here. They are written for ordinary computers and would overwrite the device's storage. A normal apk upgrade is fine, except kernel and kmod-* packages.

For developers

  • docs/BUILD.md — build the kernel and images yourself (kernel/build-all.sh does it in one step).
  • docs/FINDINGS.md — everything learned about this hardware and why each workaround exists.
  • docs/DISTROS.md — running other distributions (ImmortalWrt, Arch Linux ARM, Debian, Kali) and what the 5.4 kernel rules out.
  • upstream/ — the mainline 6.18 kernel port.
  • Releases — prebuilt images. They contain no proprietary files; the installer takes those from your own device.
  • Release Download Stats — detailed per-asset download metrics across all versions.
  • Traffic & Clones — GitHub visitor insights and clone graphs.
Path Contents
install.sh, uninstall.sh installer and remover for macOS/Linux
install.ps1, uninstall.ps1 the same for Windows (PowerShell)
kernel/ kernel build environment, config, patches
boot/ initramfs init, boot image builder, slot handling
rootfs/ Ubuntu image: Dockerfile, assemble.sh, services and scripts in overlay/
openwrt/ OpenWrt and ImmortalWrt image build
arch/ Arch Linux ARM image build
android-vendor/ scripts that copy the needed Android files from your device
tools/ helper programs, release tooling, backup, SSH/serial/log helpers

The kernel source used here is mirrored at dikeckaan/zte-ums9620-kernel-5.4.254.

Project statistics

Track community adoption, download numbers, and repository traffic:

Star History

Star History Chart

Credits and licenses

  • Kernel source: ZTE's GPL release for the U30 Air (mirrored by Enceka) and the Unisoc drivers in it — GPL-2.0.
  • Wi-Fi, Bluetooth and GPU drivers: realme C51/C53 AndroidT kernel release — GPL-2.0; the patches in kernel/patches are GPL-2.0.
  • Scripts, tools and documentation in this repository: MIT (see LICENSE).
  • Stock firmware, Android vendor components and bootloaders belong to their owners and are not distributed here, with one exception: stock/ holds the stock trustos (TEE) image for firmware ZYV1.0.0B09, as a last-resort repair for devices whose own TEE is damaged; all rights to it remain with ZTE/Unisoc. Read stock/README.md before touching it — it can make a non-booting device worse.
S
Description
Linux (Ubuntu 24.04/26.04 or OpenWrt) next to Android on the ZTE F50 / MU300 and U30 Air 5G hotspots (Unisoc T760 / UMS9620): installer, vendor 5.4 and mainline 6.18 / 7.2 kernels, 5G modem, Wi-Fi, battery, LEDs, NFC, findings
Readme MIT
66 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 54.3%
Python 21.5%
Shell 13.7%
JavaScript 4.8%
HTML 3.3%
Other 2.3%