m0xnu project boots Apple's XNU kernel and iOS 9.3.5 on a Samsung Galaxy S3
square3ang's m0xnu patches Apple's XNU kernel at build time to boot iOS 9.3.5 on the Exynos-based Galaxy S3, with a userspace Mali-400 driver built on Mesa Lima providing OpenGL ES.
Summary
Developer square3ang has published m0xnu, an experimental bare-metal port of Apple's XNU kernel that boots iOS 9.3.5 on the Samsung Galaxy S3. The work was tested on the SHW-M440S, the Korean 3G variant of the phone built around Samsung's Exynos chip. A Python script in the repository patches the kernel during the build, and the project ships a complete build and installation guide.
Graphics support comes from a Mali-400 driver built on Mesa Lima, which runs in userspace and exposes OpenGL ES. Building the port requires a legal copy of the iPhone 4S firmware, since the project reuses Apple's userspace and kernel sources rather than reimplementing them. The result is a research-grade demonstration of running a closed mobile OS stack on hardware it was never intended for.
How m0xnu brings XNU to Exynos hardware
- Kernel port: m0xnu is an experimental port of Apple's XNU kernel to the Samsung Galaxy S3, booting iOS 9.3.5 directly on the phone's Exynos SoC rather than through an emulator or compatibility layer.
- Build-time patching: a Python script in the repository patches the kernel during the build process, which is how the port adapts Apple's kernel sources to the target device.
- Graphics stack: the Mali-400 GPU is driven by a userspace driver built on Mesa Lima, providing OpenGL ES support on top of the ported kernel.
- Firmware dependency: a build requires a legal copy of the iPhone 4S firmware, indicating the project relies on Apple's shipped kernel and userspace components as its base.
- Target hardware: testing was done on the SHW-M440S, the 3G Galaxy S3 variant, and the repository includes a full build and installation guide.
Why it matters
The project is a notable data point for the Mesa Lima driver, showing it being reused outside its usual Linux and Android context to bring OpenGL ES to a ported Apple kernel on Mali-400 hardware. For the open hardware and reverse-engineering community, m0xnu documents how far a build-time patched XNU can be pushed onto a non-Apple Exynos device, and the published build guide gives other researchers a reproducible starting point. It remains an experimental curiosity rather than a usable phone OS, since it depends on Apple firmware and offers no path to a legally distributable image.
Original reference: blog.adafruit.com →