Abdurrahman Kaan DikeçandClaude Opus 5 7fa8eab542 audio: an AGDSP image has its addresses built in, so make room for both layouts
Why the Moto G35 image takes this device down, from its own device tree rather
than a guess: pulled out of vendor_boot.img in the same firmware, it puts
audio-mem at 0xaf600000 and a 7 MiB DSP region at 0xaf900000, with cmdaddr
0xaf880000 - a megabyte below this board's 0xaf700000 / 0xafa00000 / 0xaf980000.
Written to the wrong base the image runs into memory belonging to something else.
Read the other way it is reassuring: the donor image answers SIPC at 0xaf980000,
so it is built for this layout and is where it should be.

CONFIG_OF_RESERVED_MEM_ADD now reserves 0xaf600000,3M;0xaf900000,7M, contiguous
to 0xb0000000 and a superset of what this board uses, so one boot image can host
either. audio-mem-shm-shift.patch adds shm_shift for the addresses that are
absolute in the device tree instead of derived from the region - ddr32_base and
dspbin_base already move everything else.

The experiment itself is inconclusive rather than negative. At its own addresses
the Moto image no longer takes the board down and ldinfo reads 0xaf900000 /
7340032, but the DSP does not answer and shm_shift is not confirmed to have
taken effect - cmdaddr still shows as 0xaf980000 in the SIPC trace. FINDINGS says
so, along with two things that cost time here: audio_mem has three DT parsers and
this board uses the sharkl5 one, so a change made in whale2's compiles, loads,
accepts its parameter and does nothing; and the boot service loads audio_mem at
startup where it is [permanent], so trying another layout needs the service
disabled and a reboot first.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Z17MBkdHmZPvNPNSLxcHk
2026-09-22 00:38:20 +03:00
2026-09-20 23:57:16 +03:00
2026-09-21 07:43:45 +03:00

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 Unisoc card comes up (sprdphone-sc2730, 19 PCM devices) and snd-aloop gives a virtual one; the board has no speaker and the audio DSP is not started yet
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:

Last updated: 2026-09-21 04:42:15 UTC (tracked automatically via GitHub Actions)

Overview

Metric Count Details
⭐ Stars 41 Stargazers
🍴 Forks 12 Forks (29% fork-to-star ratio)
📥 Release Asset Downloads 150 102 OS/Kernel images, 48 checksums
👥 Page Views (Archived) 1,154 ~487 unique visitors
💻 Git Clones (Archived) 668 ~291 unique cloners

Daily Traffic & Git Clones

Date Page Views Unique Visitors Git Clones Unique Cloners
2026-09-19 131 47 110 51
2026-09-18 347 105 196 87
2026-09-17 657 328 300 125
2026-09-16 19 7 62 28

Top Referring Sites

Referrer Total Views Unique Visitors
github.com 57 32
Google 6 4
github-com.translate.goog 6 3
coolapk.com 3 2
Bing 2 2
chatgpt.com 1 1
web.telegram.org 1 1

Release Downloads Breakdown

Release Asset Size Downloads
v2026.09.22 mu300-kernel.tar.gz 22.7 MB 2
mu300-openwrt-rootfs.tar.gz 44.2 MB 2
mu300-ubuntu-rootfs.tar.gz 104.3 MB 1
SHA256SUMS 273 B 3
v2026.09.21 mu300-kernel.tar.gz 22.7 MB 22
mu300-openwrt-rootfs.tar.gz 44.2 MB 19
mu300-ubuntu-rootfs.tar.gz 104.3 MB 13
SHA256SUMS 273 B 25
v2026.09.20 mu300-kernel.tar.gz 22.7 MB 11
mu300-openwrt-rootfs.tar.gz 44.2 MB 9
mu300-ubuntu-rootfs.tar.gz 104.2 MB 5
SHA256SUMS 273 B 11
v2026.09.19 mu300-kernel.tar.gz 22.7 MB 5
mu300-openwrt-rootfs.tar.gz 44.2 MB 5
mu300-ubuntu-rootfs.tar.gz 104.2 MB 2
SHA256SUMS 273 B 6
v2026.09.18 mu300-kernel.tar.gz 22.7 MB 0
mu300-openwrt-rootfs.tar.gz 44.2 MB 0
mu300-ubuntu-rootfs.tar.gz 104.2 MB 0
SHA256SUMS 273 B 0
v2026.09.17 mu300-kernel.tar.gz 22.7 MB 3
mu300-openwrt-rootfs.tar.gz 44.2 MB 1
mu300-ubuntu-rootfs.tar.gz 104.2 MB 2
SHA256SUMS 273 B 3

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%