Files
mu300-linux/wiki/Building-from-Source.md
Abdurrahman Kaan DikeçandClaude Opus 5.5 0aa83038ce Retire kernel 7.2: releases ship 5.4, 6.18 and 7.3; devices on 7.2 move to 7.3
kernel.org ended the 7.2 series with 7.2.15. Releases no longer build or carry
mu300-kernel-7.2.tar.gz or the -k7.2 Magisk zips (release and mainline
workflows, make-release, make-magisk-zips), patches/7.2 is gone (7.3 has its
own 0028) and parity/mainline.list drops the 7.2 series.

Migration: mu300-update takes a 7.2 choice for 7.3 (never the 5.4 an unknown
choice means), says so in apply/boot/check/kernel, installs 7.3 through the
usual boot update (image before kept for rollback-boot, one-boot fallback
unchanged) and writes 7.3 down once an image of 7.3 is in place.
"mu300-update kernel 7.2" refuses and names 7.3. rollback-boot to a 7.2 image
still works and says the next update brings 7.3. Zips and directories of older
releases with 7.2 are still read. install.sh, install.ps1, the GUI, the web
installer and the Ubuntu panel take an answer or a choice of 7.2 as 7.3 with
a note; the kernel menu is 1) 5.4, 2) 6.18, 3) 7.3, and 4 still means 7.3.
mu300-api and the LuCI adapter no longer accept 7.2. Docs, wiki and site
(en/tr/zh) list three kernels and describe the retirement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-11-02 02:25:17 +03:00

4.7 KiB

Building from Source

In one sentence: you never need this to install (the installer downloads ready-made images), but everything can be built from public sources with Docker.

The simple version: the releases are bread from the bakery. This page is the recipe, for when you want to bake it yourself or change an ingredient.

The full, authoritative instructions are in docs/BUILD.md. This page is a map.

What a release contains

File Contents
mu300-kernel.tar.gz Linux 5.4.254 Image and modules (with the U30 Air's own), static busybox and logdw, the generic boot ramdisk segment
mu300-kernel-6.18.tar.gz, mu300-kernel-7.3.tar.gz the mainline kernels and their modules (7.3 from the next release after v2026.10.19.2 on; older releases also have mu300-kernel-7.2.tar.gz, 7.2 being retired since)
mu300-ubuntu-rootfs.tar.gz, mu300-ubuntu-26.04-rootfs.tar.gz Ubuntu 24.04 and 26.04
mu300-openwrt-rootfs.tar.gz, mu300-openwrt-luci-rootfs.tar.gz OpenWrt 25.12.6, plain and with the control panel
mu300-extra-lang.tar.gz more web interface languages
mu300-update the on-device updater
mu300-magisk-*.zip Magisk installers, one per system and kernel
SHA256SUMS, SHA256SUMS-magisk checksums

The images contain no proprietary files; the installer takes those from your own device.

How a boot goes

flowchart TD
    LK[LK bootloader, Linux slot] --> K[Kernel + vendor_boot device tree]
    K --> I[initramfs boot/init]
    I --> M[Load 85 vendor modules in a fixed order]
    I --> U[USB gadget: NCM or ECM network + serial console]
    I --> F[Find the Linux disk:<br/>SD card mu300sd, else free eMMC space mu300root]
    F --> S[switch_root into the chosen system]
    S --> V[mu300-vendor: Android modem_control in a chroot]
    S --> L[mu300-lan: USB + Wi-Fi bridge, DHCP/DNS]
    S --> W[Wi-Fi, mobile data, Bluetooth, SSH]

The build in one step

kernel/build-all.sh    # -> out/Image, out/modules/*.ko, out/modules.builtin*

That builds the 5.4 kernel and its Wi-Fi, Bluetooth and Mali modules from pinned public sources with all patches applied (about 10 minutes on Apple silicon). Then:

  • Root filesystems: Ubuntu from rootfs/ (Docker), OpenWrt with openwrt/build-rootfs.sh, the control-panel system with MU300_SYSTEM=openwrt-luci openwrt/build-rootfs.sh.
  • Install your own build: ./install.sh --build uses your local kernel outputs and builds the root filesystems instead of downloading them.
  • Release: tools/make-release.sh TAG --publish (it refuses to publish an image that contains firmware, Android files, host keys or local settings), or the Release workflow in GitHub Actions. TAG is vYYYY.MM.DD.N: the day (UTC) of the build and the number of the release that day; tools/make-release.sh --next-tag prints it (see Updating).
  • Magisk zips: tools/make-magisk-zips.sh RELEASE_DIR OUT_DIR.

Sources

  • 5.4 kernel: ZTE's GPL release for the U30 Air, mirrored at dikeckaan/zte-ums9620-kernel-5.4.254.
  • Wi-Fi, Bluetooth and GPU drivers: realme C51/C53 AndroidT kernel release (GPL-2.0).
  • Mainline 6.18 and 7.3: kernel.org Linux plus the port in upstream/.
  • Each release's notes list the exact source commits.

Other distributions

Debian 13, Kali, Arch Linux ARM and ImmortalWrt build from this repository too; how, and what to expect: docs/DISTROS.md. A distribution must be arm64 and work on the kernel you run; one with a different init system than systemd or procd needs its ~15 services written again.

Repository layout

Path Contents
install.sh, install.ps1, install.cmd installers (macOS/Linux, Windows)
uninstall.* removers
kernel/ kernel build environment, config, patches
upstream/ the mainline kernel port
boot/ initramfs init, boot image builder, slot handling
rootfs/ Ubuntu image and the device services in overlay/
openwrt/ OpenWrt builds and the control panel
arch/ Arch Linux ARM build
android/magisk/ the Magisk module and zip installer
android-vendor/ scripts that copy the needed Android files from your device
tests/ unit tests
tools/ helpers: backup, logs, release tooling
docs/ BUILD, DISTROS, FINDINGS

Licences

Scripts, tools and documentation: MIT. Kernel and the patches in kernel/patches: GPL-2.0. Stock firmware and Android vendor components belong to their owners and are not distributed here.