Bring-up project for the Cosmo Communicator to Linux LTS 6.18
  • C 98.1%
  • Makefile 1%
  • Shell 0.5%
  • Python 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atzero effb70eb44 README: vibration on charger plug-in
The vibrator (regulator-haptic, MT6358 VIBR) buzzes once when a charger
is plugged in (gemini-debian cosmo-charge-buzz). Notification vibration
stays unsupported: desktop Plasma has no haptics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:40:54 -08:00
bin build-kernel: record the source commit next to the modules 2026-11-18 12:50:04 -08:00
docs README: WPA3-only networks are a future goal, maybe not possible 2026-11-24 13:17:02 -08:00
dtbo LK asserts on a failed overlay: build DTB with -@, add no-op dtbo 2026-10-25 09:21:11 -07:00
fbpaint Bring-up: fbpaint probe (bare-metal framebuffer painter packed as a kernel) 2026-10-25 09:47:22 -07:00
initramfs Root filesystem handoff: initramfs boots Debian from userdata, with a tripwire 2026-10-25 16:10:22 -07:00
kernel audio: headphone jack detection and headset microphone 2026-11-24 12:44:23 -08:00
readmeimages README: photo, download link and screenshots 2026-11-13 11:11:14 -08:00
rootfs rootfs: boot confirmation no longer depends on SSH 2026-11-12 16:14:41 -08:00
scripts/gnome/kbconfig gnome kbconfig: accept the uk-ps16 layout 2026-11-23 10:27:45 -08:00
tools tools: add frame-pacing tracing and analysis scripts 2026-11-20 20:02:49 -08:00
userspace/libcamera userspace/libcamera: build into out/libcamera for the image build 2026-11-19 15:24:05 -08:00
.gitignore .gitignore: ignore the local images/ folder 2026-11-13 11:54:59 -08:00
AGENTS.md camera: libcamera patches, Debian build, tuning, calibration tool, docs 2026-11-19 15:22:07 -08:00
CLAUDE.md Skeleton: v6.18.58 base pin, Cosmo DTS (UART/eMMC/MT6358), build script, docs 2026-10-24 22:16:31 -07:00
LICENSE Initial commit 2026-10-25 17:07:46 -07:00
README.md README: vibration on charger plug-in 2026-11-24 13:40:54 -08:00

cosmo-linux618

Cosmo Communicator running Debian with KDE Plasma

Download and install

Mainline Linux 6.18 LTS for the Planet Computers Cosmo Communicator (MediaTek MT6771 / Helio P70), replacing Gemian's vendor 4.4 kernel. The root filesystem is a fresh Debian trixie install built by gemini-debian (DEVICE=cosmo), with a Plasma Wayland desktop.

The approach follows the Gemini PDA projects (gemini-nixos, gemini-debian): a pinned upstream kernel plus a small tree of changed files. The Cosmo needs far less than the Gemini did, because its MT6771 is register-compatible with the MT8183 that mainline already supports well. Where the hardware needs specific values, they are taken from the stock kernel and device tree.

Status

Beta. Most everyday functions work on my device. Beta images are on the releases page: read docs/install.md before flashing, and see docs/beta-testing.md for what to test and how to report problems.

No mobile functionality. Calls, SMS, mobile data and the SIM slot do not work yet; use Wi-Fi. GPS and the rear camera do not work either.

Working

  • Boot, display, GPU (panfrost, Mesa 26.1 from Debian backports, GLES 3.1), Plasma Wayland, SDDM login
  • Touchscreen, keyboard and keyboard backlight, power key, lid
  • Wi-Fi, Bluetooth (pairing, mice, keyboards and audio; reconnects after sleep)
  • Speaker and headphones; plugging headphones in switches the sound over by itself; headset microphone
  • Front camera (through libcamera and PipeWire)
  • Charging, including USB-C PD fast charging; battery level; a short vibration when a charger is plugged in
  • Deep sleep at stock power draw (~85 mA): closing the lid sleeps, opening it, Esc or the power key wake
  • USB device mode on the left port; host mode on both ports (automatic on the right, selected by hand on the left)
  • microSD
  • Cover display shows time and battery
  • CPU frequency scaling, CPU idle power-down, thermal limits, RTC

Known issues

  • After sleep, the right USB-C port may stop working until a restart.
  • USB power output on the left port stops after the first sleep.
  • Wi-Fi is switched off during sleep and back on at wake.
  • The bootloader shows its orange-state warning at every boot.

Not supported yet

  • Modem: phone calls, SMS, mobile data, SIM card
  • GPS
  • Rear camera
  • Screen rotation (the motion, light and compass sensors have drivers, but the desktop does not use them)
  • HDMI out, NFC, fingerprint reader
  • Vibration for notifications (the vibrator works; the desktop has no haptics support)
  • WPA3-only Wi-Fi networks. Networks that offer both WPA2 and WPA3 connect over WPA2 automatically (the first try takes about 30 s). WPA3 is a future goal that may not be possible: the original Wi-Fi driver and firmware never supported it, not even on stock Android.

Screen variants: read before flashing. Cosmos were made with two different screens. Only the NT36672 screen is supported; units with the SSD2092 screen (and its Solomon touch controller) are not. The install guide shows how to check which one a unit has. The kernel refuses to drive any other screen and powers the device off, but that refusal has never been tested on an SSD2092 unit, as none was available: do not rely on it.

I have only tested on my device. The CPU voltage tables have not been checked on other units. Do not flash this on a device you cannot recover with mtk.

Build

Needs gcc for arm64 (native on an arm64 host, otherwise the cross aarch64-linux-gnu-gcc), plus flex, bison, bc and the OpenSSL and libelf headers:

  • Debian/Ubuntu: flex bison bc libssl-dev libelf-dev
  • Fedora: flex bison bc openssl-devel elfutils-libelf-devel
bin/build-kernel.sh dtbs   # device tree only (fast check)
bin/build-kernel.sh        # Image.gz, DTB, modules → out/

The first run clones the pinned stable tag into build/src.

Source code and licences

The kernel and everything in this repository are GPL-2.0 (LICENSE).

  • Kernel: each release names the commit of this repository it was built from; kernel/BASE in that commit pins the upstream stable tag.
  • Rescue initramfs (inside boot.img): initramfs/ and bin/build-boot-img.sh from the same commit, plus these binaries copied unchanged from Fedora 44 aarch64 packages. Their source is in the matching Fedora source packages (dnf download --source <name>, or src.fedoraproject.org):
    • busybox 1.37.0-7.fc44 (GPL-2.0)
    • kexec-tools 2.0.32-3.fc44 (GPL-2.0)
    • glibc 2.43-9.fc44, zlib-ng-compat 2.3.3-3.fc44, xz-libs 5.8.2-2.fc44, libzstd 1.5.7-5.fc44 (libraries used by kexec)
  • Root filesystem: Debian trixie packages, built by gemini-debian; their source is in the Debian archive. The SCP firmware comes from Debian's firmware-mediatek. Wi-Fi and Bluetooth firmware are not shipped: on first use they are copied from the Cosmo's own Android vendor partition.
  • libcamera (front camera): upstream libcamera 0.7.2 with the Cosmo patches, built as Debian packages by userspace/libcamera/ in this repository (LGPL-2.1+).
  • kernel/delta/drivers/misc/mediatek-connectivity/ comes from Planet's GPL release of the Cosmo 4.4 kernel. Some of its files still carry MediaTek's original headers; the code was published under the GPL as part of that kernel.

Documentation

  • docs/install.md: installing the beta, backup and going back to Android
  • docs/beta-testing.md: what to test, known issues, reporting problems
  • docs/bringup-checklist.md: every hardware block and its state
  • docs/hardware-map.md, docs/stock-reference.md: hardware and stock values
  • docs/session-log.md: bring-up history and test results

Screenshots

Plasma desktop

Dolphin and Kate

About this System