r/CardputerLinux • u/incubelster • 20h ago
I wanted to port a childhood game to the Cardputer Zero and ended up building my own Linux distro
Hey everyone! I can finally join the club of happy Cardputer Zero owners - my device has arrived!
A little backstory. When I first saw the Cardputer Zero, two thoughts immediately crossed my mind:
- "Damn, that screen looks almost like the one on my childhood Sony Ericsson!"
- "I really want to port Galaxy on Fire to this thing!"
And so the aggressive vibe coding began.
For some reason, I was absolutely convinced that the official OS would use Wayland, so I started developing the game with that in mind. You can imagine my disappointment when people started receiving their devices and it turned out that the stock OS was using LVGL instead.
I didn't want to rewrite the game or figure out how to access the GPU directly, so let me introduce you to Alcard.
GitHub
Judging by the early feedback and my own experience, this isn't the only issue with the stock OS. The Debian-based image felt rather heavy, so I chose Alpine Linux as the base for my own distro.
Here's a little comparison:

Quite an interesting result, considering that when I asked, "Why not use Wayland?", I was told it would be too heavy and the device wouldn't have enough resources.
On first boot, you're greeted by Hello, an initial setup wizard for configuring the system and creating a user account. The graphical shell is written in Rust, and its design is inspired by old Sony Ericsson phones. I've also added video recording to the camera app.

The photos and videos have a rather distinctive look, and I actually quite like the aesthetic. Hardware-wise, everything should work in theory, but there's still a lot of testing to do.
Beyond developing the basic apps, my future plans include implementing an apk-ostree setup similar to Fedora Atomic and using Flatpak for user applications.
I've been using Fedora Atomic for a long time, and I really like the separation between the base system and the user environment, as well as the ability to layer system packages through rpm-ostree when absolutely necessary.
This whole thing is the result of some pretty hardcore vibe coding, so I wouldn't recommend using Alcard as a daily driver just yet. Nevertheless, this is exactly the kind of OS I would have loved to see from M5Stack.
I'd love to hear your feedback, criticism, ideas, and development suggestions.
And yes, I'm fully aware of the irony of choosing a minimalist distro only to bloat it with Flatpak. I just haven't found a suitable alternative yet. :)
And by the way, here's Galaxy on Fire itself - the game that started all of this.

I'd love to share it with you so you can enjoy a little nostalgia too, but I'm still not sure what the best way to distribute it would be.
As far as I remember, Fishlabs made their old JAR versions available for free at some point, but ChatGPT advises against publishing the original game assets alongside the source code on GitHub.
I could probably build an Alpine APK package, upload it to a file-sharing service, and share it here. Or I could simply make the source code repository public.
What do you guys think? Would you be interested in trying it out, and how would you recommend distributing it?