Lumi
한국어 Open Lumi

Open source

Raspberry Pi image

Lumi OS for the Raspberry Pi, a Linux image that boots straight into Lumi's eyes, under Apache-2.0.

avenpa/lumi-os-pi is the software of the desk robot Lumi started as. The image boots into a C++ screen program that draws to DRM/KMS: no desktop and no browser on the device.

  • Eyes with moods, blinking, gaze and touch reactions. The eye engine exists in JavaScript and C++, and a test compares their pixels.
  • Apps: chat, timer, alarms, notes, to-dos, calendar, music, photos, a web reader, a terminal.
  • A device server in Node with no dependencies, on 127.0.0.1 only.
  • An OS image built with mmdebstrap from Raspberry Pi OS (Debian trixie, arm64), with signed updates and rollback, and QEMU images for testing.
  • A robot SDK for wheels, servos and LEDs through a simulator, a serial line or HTTP.

Status

Version 0.2.10. The QEMU images boot and run. The Raspberry Pi 5 image was built but has not booted on a real board, and Pi 4, 400, CM4 and 3B+ were booted only in QEMU. Motors and servos have never been driven. Talking to Lumi, Google sync and updates went through Avenpa servers that no longer serve this image. The full list is in SUPPORTED.md.

Run it

The web version runs anywhere with Node 22:

git clone https://github.com/avenpa/lumi-os-pi
cd lumi-os-pi/lumi
LUMI_DATA=/tmp/lumi-data node server.mjs   # then open http://127.0.0.1:8790
test/run.sh                                 # every test that needs no device and no AI

Build an image on an arm64 Linux host (mmdebstrap needs sudo):

./os/build.sh pi    # os/out/lumi-<version>-pi.img.xz
./os/build.sh emu   # an image for QEMU, then ./os/emu.sh

To ship your own updates, make an ed25519 key, put its public half in lumi/os/files/usr/lib/lumi/update.pub, and point LUMI_UPDATE in lumi/os/files/etc/lumi.conf at where you host latest.json. lumi/os/release.sh signs a release.

Developer docs

Page Covers
GUIDE.md What is where, and how to add an app or an API route. Start here.
os/README.md Images, displays, audio, the emulator, updates and the guard
HARDWARE.md Hardware detection
ROBOT-SDK.md The robot SDK and its drivers
CONTRIBUTING.md Setup, tests, code style