Get the daily emailDaily email
  1. Home
  2. Guides
  3. This story

Building a full PinePhone OS from the kernel up with Claude Code

An embedded engineer used Claude Code to build complete PinePhone firmware: calls, SMS, camera, maps, a Telegram client and a Genesis emulator, all in one LVGL program on Buildroot and a mainline kernel. It includes 81 patches (46 Linux, 23 LVGL) and 1,892…

Published Read the original
Building a full PinePhone OS from the kernel up with Claude Code

Why it matters

It is a solid playbook for agentic low-level work: test-first fixes, automatic A/B rollback, and a CLAUDE.md that carries knowledge across sessions.

What happened

1 min read

An embedded engineer used Claude Code to build complete PinePhone firmware: calls, SMS, camera, maps, a Telegram client and a Genesis emulator, all in one LVGL program on Buildroot and a mainline kernel. It includes 81 patches (46 Linux, 23 LVGL) and 1,892 headless UI tests, with A/B updates so the agent can flash the device safely.

inscraper analysis

Our analysis

The value is the workflow more than the product: 'failing test before fix' catches confident-but-wrong fixes, and A/B rollback makes agent-driven flashing safe. The author is candid about failures, such as the agent overwriting save files while tapping blind before screenshots were required. Every change was reviewed by hand, so this isn't unsupervised autonomy. Worth reading for embedded engineers trying agents.

More in Guides