wyrmbound

Onn Native GPU — Development skill for Claude Code

Development community

Native GPU games on the onn 4K Pro (Mali-G310, Android 14) with no root: PanVK + zink + SDL, zero-copy present, sm64ex at 30 fps.

How to install Onn Native GPU

This entry records only its repository, not the path inside it, so there is no exact command to give. Open wyrmbound/onn-native-gpu and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Onn Native GPU does

Native GPU games on the onn 4K Pro (Mali-G310, Android 14) with no root: PanVK + zink + SDL, zero-copy present, sm64ex at 30 fps. Claude Code kit.

Alternatives in Development

  • JEngine — The solution that allows unity games to update in runtime 2.2k ★
  • Engage.Crash — Crash → root cause → reachability → empirical exploitability verdict (native bugs) 348 ★
  • Re Skill — Claude Code skill for reverse engineering retro games — disassemble, annotate, extract assets, web port 131 ★

README

onn-native-gpu

Native, GPU-accelerated Linux-style games on the **onn 4K Pro** (Amlogic S905X5M, Mali-G310, Android 14) with **no root and a locked bootloader**. The demo: **Super Mario 64 (sm64ex) at its native 30 fps, 1280x720, with audio and controller**, rendered on the Mali through a from-source Mesa stack and shown on the TV with zero copies.

The box ships a 32-bit-only Android userspace and no Vulkan loader. This repo is how it works anyway:

game (arm64, SDL2 + GLES2)
  -> SDL2 offscreen video, EGL surfaceless         patches/sdl
  -> Mesa zink (GL on Vulkan), loads the ICD directly   patches/mesa-csf-v10 005-008
  -> Mesa PanVK on mali_kbase (panvk-kbase-android, g610-v10-csf + fixes 001-004, 009-012)
  -> dma-buf frames handed to an Android app's HardwareBuffers (zero copy)  present/, app/
  -> app draws them on screen and plays the game's PCM audio

Vulkan-native games (for example 64-bit Android game APKs built on SDL3) skip zink: `vkshim/libvulkan.so` is a small Vulkan loader for this box that loads PanVK directly and adds an ONNM4 window system, which presents into the same zero-copy buffers. `apkrun/` runs such an APK's native `libmain.so` as a shell process (the box's 32-bit userspace cannot install 64-bit APKs), with a JNI stand-in for the Java side the game expects.

The 64-bit processes run as the adb shell user through a bundled arm64 bionic runtime (linker64, libc and the graphics HAL client libraries) taken from an Android 14 GSI. The app side is a launcher app holding Shizuku; a small Shizuku service passes the buffers' dma-buf fds to the renderer over a unix socket.

Use it with Claude Code

git clone --recursive https://github.com/wyrmbound/onn-native-gpu
cd onn-native-gpu && claude

Then ask: *"Set up native games on my onn 4K Pro with this kit. Walk me through each stage and ask before you change anything on the box."* Claude Code reads `CLAUDE.md`, which has the stages, the rules and every trap we hi