Repository navigation
saipan v1.0.0 - Droidspaces + KernelSU-Next kernel for the moto g(50) 5G
Two prebuilt kernels for the moto g(50) 5G (saipan, XT2149-1, MediaTek MT6833 / Dimensity 700), built for Droidspaces.
Both reuse the stock Motorola ramdisk unchanged and are smaller than the 41,943,040-byte boot partition. Flash with fastboot flash boot <file>; the boot partition is the only thing touched.
| file | size | md5 | what it is |
|---|---|---|---|
boot-saipan-ksu-level.img |
28,551,168 | 7c852300024f14f5b73e2f2fa8b23fda |
recommended - Droidspaces config, KernelSU-Next root, vendor-module CRC tolerance, plus a cmdline-selectable MTK DVFS segment |
boot-saipan-ksu.img |
28,549,120 | 6698b76d58dacb34669bfe29cd2646d4 |
the first build that was flashed and validated; the level override is not in this one |
The second is a strict subset of the first: with no mtk_cpufreq.level= on the cmdline the level image behaves identically. It is published because it is the build that was validated first, and keeping it makes the history honest.
What was verified on hardware
vendor modules 17 of 17 load - Wi-Fi, Bluetooth, touch, fingerprint, GPS, FM, sensors
root KernelSU-Next, su -c id -> uid=0 context=u:r:ksu:s0
SELinux Enforcing
Droidspaces v6.5.5, container debian-moto, Debian 13 trixie, systemd PID 1
Docker in container Engine 29.8.1, overlay2, cgroupfs, cgroup v1, hello-world rc=0
release string 4.14.186+ - byte-identical to the stock vermagic
Why this kernel exists
The handset's 17 prebuilt modules in /vendor/lib/modules were built by Motorola from branch android-12-release-s1rs32.38-20-7-16. The only branch published for that train is …-20-9, so building it - even with the completely unmodified shipped config - produces different symbol CRCs and check_version() rejects every module at once. Wi-Fi, Bluetooth, the touchscreen, the fingerprint reader and GPS all go away together, while the kernel still boots and looks healthy. This kernel keeps CONFIG_MODVERSIONS=y so the vermagic stays byte-identical, and turns that one CRC mismatch into a warning.
The container options Droidspaces needs are in place too, with one deliberate exception: SYSVIPC is off. IPC_NS only depends on (SYSVIPC || POSIX_MQUEUE), so POSIX_MQUEUE satisfies it, and SYSVIPC would insert fields into struct task_struct before fs/files/nsproxy/signal/sighand - shifting offsets the prebuilt vendor modules rely on. Silent memory corruption, not a clean failure.
Running Docker inside a container on 4.14
Three non-default settings are required, and Droidspaces' own troubleshooting covers two of them:
droidspaces --name=<container> start --net=nat --hw-access --privileged=noseccomp --force-cgroupv1--privileged=noseccomp- on legacy kernels Droidspaces returnsEPERMto namespace syscalls to avoid the 4.14 VFS deadlock, and containerd's shim needs them.--force-cgroupv1- on cgroup v2 runc must program device rules with BPF, and 4.14 has noBPF_CGROUP_DEVICEprog-query support.- A systemd drop-in inside the container replacing
dockerd -H fd://with-H unix:///var/run/docker.sock.
CPU clocks
The MT6833 driver carries three OPP tables selected by an efuse segment code. I made the choice switchable from the boot image cmdline and measured all three with a hardware frequency readback:
| segment | driver reports | hardware PLL | Vproc | sysbench, pinned to cpu6 |
|---|---|---|---|---|
FY (stock) |
2,203,000 kHz | 2,202,000 | 793,750 µV | 927.9 events/s |
B20G |
2,000,000 kHz | 1,999,000 | 750,000 µV | 841.2 events/s (−9.3 %) |
B24G |
2,400,000 kHz | 2,202,000 | 837,500 µV | 929.6 events/s (+0.2 %) |
The 2.4 GHz table is not an overclock on this silicon: the PLL never leaves 2.202 GHz, throughput does not change, and the core voltage is 43.75 mV higher. The handset runs the stock segment.
Notes
- Never relock the bootloader. On a Motorola MTK device that programs an efuse and can leave a phone that will not flash anything, including official firmware.
- Tested against stock Android 12
S1RSS32.38-20-7-16on an XT2149-1 (opencl). Other builds and variants are untested. - GPU acceleration from inside the container is untested on this device.
- Full write-ups: kernel notes, CPU clocks, server setup.