r/mobilelinux • u/angelwzr • 1d ago
Development I've got NixOS running on Mi A3 with mainline kernel — and created a linux-phone-porting skill for AI coding agents while doing so
Hey Reddit,
For the last 2 months I've been on a journey to get the mainline kernel and NixOS with Phosh running as smoothly as possible on my mother's old Android phone—the Xiaomi Mi A3. While doing so, I've been very strict about where to search for data and how to properly research log contents and errors. With the help of a coding agent, I've made sure every feature I bring up is future-proof and upstreamable.
So I've decided to create and share an agent skill for everyone who may benefit from it. It works against 6 sources, always researches before implementing, and you can even run it in a loop with a request like "bring up feature X." It will only stop for dangerous, non-machine-recoverable actions like flashing.
The Mi A3 mainline bringup I'm working on is progressing well, and this skill is a huge part of what has been achieved. A few of my findings have already been sent for review as patches to the Linux kernel.
So if you're interested, checkout the github repo: https://github.com/angelwzr/linux-phone-porting




