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

pre-release46 minutes ago

Experimental 2 · LilyGO T-Display CM0 (LR2021) · Cairn 140. The second build for a new board, checked against LilyGO's own image sources (pi-gen, lilygo-linux-dtoverlays): 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.

Changed from the first build: a 64-bit program (LilyGO's image is arm64), the panel's real brightness, the power key as the user button, the base's LEDs, sound on the ES8389 rather than whichever card ALSA lists first, and the keys of LilyGO's FN layer and the duplicate Space and Esc keys read once each. Installing it over the first build is the same command: it replaces it.

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 (arm64). Not yet run on a CM0.

Files (named MeshCore-TDisplayCM0-Cairn140-2026-12-04...):
  ....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 ES8389 codec (picked by name, not the Pi's HDMI audio); the Recorder on its mic.
- The screen: brightness through the panel driver's own control (on the pixels if the driver has none). It
  goes dark on its timeout (Settings > Display > Timeout).
- The power key is the user button: press it to wake or darken the screen. Holding it 3 s still powers the
  board off (LilyGO's own service).
- The base's three LEDs: Caps Lock, unread messages, LoRa activity.


NOT IN THIS BUILD

The camera, Bluetooth, GNSS (the nRF9151's port is not known yet), the 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-04.tar.gz pi@<board>:
On the board:
  tar xzf MeshCore-TDisplayCM0-Cairn140-2026-12-04.tar.gz
  cd MeshCore-TDisplayCM0-Cairn140-2026-12-04
  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, the power key (a press: wake or
   dark), the LEDs (Caps Lock; an unread message; a packet).
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.