github cvhviz/CAIRN experimental-tdisplay-cm0-140
Experimental · LilyGO T-Display CM0 · Cairn 140

pre-release43 minutes ago

Experimental · LilyGO T-Display CM0 (LR2021) · Cairn 140. A first build for a new board: not offered by any online update, and not yet run on a CM0. It may not start at all; the log says why, and that log is what we need back.

The T-Display CM0 is a Raspberry Pi Compute Module Zero under the same 4.1" AMOLED, touch panel, LR2021 radio and keyboard base as the T-Display K230 kit, so this build is the K230's Cairn (tested on a K230 kit) with the parts that differ written for the Pi: the screen through the Pi's display driver, the keys and battery through the drivers LilyGO's image loads, and Wi-Fi through NetworkManager.

Cairn's own interface and MeshCore as one Linux program on the T-Display CM0's AMOLED, with the keyboard base.
For the CM0 with the LR2021 radio (830-945 MHz), on LilyGO's Raspberry Pi OS image. Not yet run on a CM0.

Files (named MeshCore-TDisplayCM0-Cairn140-2026-12-03...):
  ....tar.gz       the program, its installer and its service, in one folder (start here)
  ...-cairn-bin    the program on its own (to update later: replace /root/cairn-bin)
  SHA256SUMS.txt


WHAT IS IN IT

- The interface the K230 has, on the same 568 x 1232 glass: Home, Chats, Nodes, Radios (Spectrum and its Live
  view, Listen), the Map, Settings; portrait or landscape (Settings > Display > Rotate).
- LoRa through the LR2021 (send, receive, the Spectrum page).
- The keyboard base: typing, F1-F6 for the side tabs, the LilyGO key for Home (twice: Apps), the Mic key for
  the Recorder.
- The battery, when LilyGO's battery drivers see one: percent, charging, a Battery page.
- Wi-Fi through the Pi's own NetworkManager: Cairn scans and joins with it, and leaves alone a connection it did
  not make (an SSH session over Wi-Fi stays up). Online maps.
- Sound through the board's codec (ALSA's default device); the Recorder on its mic.
- The screen: brightness and the dark screen are done on the pixels (the panel has no backlight control from
  Linux). It goes dark on its timeout (Settings > Display > Timeout) and wakes with a tap or a key: the CM0 has
  no side button Cairn can read. Lock it from the Quick panel.


NOT IN THIS BUILD

The camera, Bluetooth, GNSS (the nRF9151's port is not known yet), the base's LEDs and key light, online
updates, a switch to LilyGO's desktop from inside Cairn (use the uninstall below).


BEFORE YOU START

- LilyGO's image for the CM0 (Raspberry Pi OS with their overlays: the panel, touch, keypad, radio power), with
  SSH or a console to the board, and a user that can sudo.
- Set the radio preset for your region on first start, before you send anything.
- Listen and Spectrum's Live view use an undocumented route in the LR2021's ROM 1.24. The System page (tap
  Home's System card) shows the chip's version ("LR2021 v1.24"); on another version, skip them.


INSTALL IT

From a computer on the same network (or copy the file over any way you like):
  scp MeshCore-TDisplayCM0-Cairn140-2026-12-03.tar.gz pi@<board>:
On the board:
  tar xzf MeshCore-TDisplayCM0-Cairn140-2026-12-03.tar.gz
  cd MeshCore-TDisplayCM0-Cairn140-2026-12-03
  sudo sh install.sh cairn-bin
It stops LilyGO's desktop (and keeps it off at boot), installs Cairn as a service and starts it. Cairn then
starts at every boot. Its log: /var/log/cairn.log. Its data: /root/cairn.

To go back to LilyGO's desktop:
  sudo sh install.sh --uninstall


WHAT TO TRY, AND WHAT TO SEND

1. Does the screen show Cairn? Does touch land where you tap, in portrait and in landscape (Settings >
   Display > Rotate)?
2. The System page (tap Home's System card): the radio chip and its version, the touch panel, the keyboard.
3. Send a message to another MeshCore node and have it send one back. A repeater's Ping.
4. The keyboard base: type into a chat; F1-F6; the LilyGO key.
5. Wi-Fi: Settings > Network: scan, join a network.
6. Brightness (Settings > Display), the screen going dark on its timeout, a tap to wake, Lock (Quick panel).
7. Send /var/log/cairn.log (sudo cat /var/log/cairn.log) in a GitHub issue (Bug report, with this release's
   tag), saying what happened at each step. "It works" is a useful report too. The first lines matter most:
   they say which display, touch device, keyboard and radio Cairn found.

Don't miss a new CAIRN release

NewReleases is sending notifications on new releases.