github cvhviz/CAIRN experimental-tdisplay-k230-140
Beta · LilyGO T-Display K230 · Cairn 140

pre-releaseone hour ago

Beta · LilyGO T-Display K230 Kit (LR2021 main unit) · Cairn 140. A pre-release: not offered by any online update.

Cairn's own interface and MeshCore as one Linux program on the K230 kit's AMOLED, now with the keyboard base: typing and the F keys, the key light and the three LEDs, the base's batteries with a full Battery page, the speaker and mic (alerts, music, the Recorder), GNSS from the nRF9151, a Bluetooth scanner through the nRF52840, online maps, and layouts made for the wide screen. LilyGO's launcher stays one key away: hold the LilyGO key to open it, press the power key three times to come back.

Cairn's own interface and MeshCore as one Linux program on the K230 kit's AMOLED, now with the keyboard base.
It runs on one kit on the bench. Its radio is the LR2021: this build is not for other K230 boards.

Files (all named MeshCore-TDisplayK230-Cairn140-2026-11-27-...):
  ...-cairn-bin          the program
  ...-S99zz_cairn        the boot script (Cairn at boot, LilyGO's launcher one switch away)
  ...-cairn-switch       the helper that brings Cairn back from the launcher (three quick power-key presses)
  ...-nrf52840-bridge.uf2  OPTIONAL, untested: Cairn's Bluetooth bridge for the base's nRF52840 (see BLUETOOTH)
  ...-nrf52840-bridge.zip  the same as a DFU package, for bases whose LilyGO firmware accepts AT+DFU
  SHA256SUMS.txt


WHAT WORKS

- LoRa send and receive (LR2021), Wi-Fi, online maps (OpenFreeMap), the Spectrum page with its Live view.
- The keyboard base: typing; F1-F6 pick the six side tabs; the Mic key opens the Recorder; the LilyGO key goes Home
  (hold it to open LilyGO's launcher); the key light (dark 10 s after the last key); the three LEDs (Caps Lock,
  unread messages, LoRa activity).
- The base's batteries: percent, charging, and a Battery page with current, power, temperature, capacity, health
  and the USB input.
- Sound: alert tones and the music player through the base's speaker; the Recorder uses the board's mic.
- The Bluetooth scanner (Radios > Bluetooth) through the base's nRF52840, with LilyGO's own firmware on it.
- GNSS from the base's nRF9151 (reception was weak in our one outdoor test: tell us what you see).


BEFORE YOU START

- It needs a Linux shell on the board: the kit's USB console (the CH342 port, 115200 baud, user root).
- Set the radio preset for your region on first start, before you send anything.
- LilyGO's launcher is not removed; Cairn switches to it and back (see SWITCHING).


INSTALL IT

The kit's root filesystem is on its microSD card (ext4).

1. Copy the files to the board (put the card in a Linux computer, or any way you like):
     ...-cairn-bin     -> /root/cairn-bin
     ...-cairn-switch  -> /root/cairn-switch
     ...-S99zz_cairn   -> /etc/init.d/S99zz_cairn
2. On the board's console:
     chmod +x /root/cairn-bin /root/cairn-switch /etc/init.d/S99zz_cairn
     /etc/init.d/S99zz_k230_phone_ui stop
     mv /etc/init.d/S99zz_k230_phone_ui /root/S99zz_k230_phone_ui.off
     /etc/init.d/S99zz_cairn start
   Cairn now starts at every boot. Its log: /tmp/cairn.log
3. To undo: /etc/init.d/S99zz_cairn stop; rm /etc/init.d/S99zz_cairn;
     mv /root/S99zz_k230_phone_ui.off /etc/init.d/S99zz_k230_phone_ui


SWITCHING

- Cairn -> LilyGO launcher: hold the LilyGO key about a second and choose Open, or Settings > Maintenance >
  LilyGO launcher.
- Launcher -> Cairn: press the power key three times quickly.
- The board boots into whichever of the two you used last.


BLUETOOTH (optional, untested)

The phone link (MeshCore and Cairn OS apps, PIN pairing) needs Cairn's bridge on the base's nRF52840. It has not
been run on a unit yet. LilyGO's firmware on our base does not accept AT+DFU, so the way in is the nRF52840's own
USB-C port: connect it to a computer, double-tap its reset button, and copy the .uf2 onto the drive that appears.
LilyGO's original firmware goes back on the same way (their repository's firmware/*.uf2). With LilyGO's firmware
on the chip, the scanner still works; the phone link stays off.


WHAT TO TRY

1. Typing, the F keys, the LEDs and the key light.
2. Battery: unplug and plug USB at the base; does the Battery page follow?
3. Radio: send a message to another MeshCore node, and have it send one back.
4. Maps: open the map on Wi-Fi; do the tiles load?
5. GNSS outdoors: does it find satellites, and how long to a position?
6. Send /tmp/cairn.log (a GitHub issue, Bug report, with the build's tag), saying what happened at each step.
   Don't use grep or cat on all of /tmp: /tmp/cairn.in is a pipe and the shell will wait on it.


NOT IN THIS BUILD

Online updates, the camera, the data USB port (MTP), Bluetooth without the bridge.

Don't miss a new CAIRN release

NewReleases is sending notifications on new releases.