Skip to content

Cosmo Debian Beta1.2: first-login freeze fix

Latest

Choose a tag to compare

@atzandrew atzandrew released this 20 Nov 22:35
· 9 commits to main since this release

Cosmo Debian Beta1.2: first-login freeze fix

A fix release for Beta1
and Beta1.1,
with a new kernel.

New install? Use the files from this release (see Downloads). The
Beta1 and Beta1.1 images have the first-login freeze below.
Already running Beta1 or Beta1.1? Your account is past its first
login, so the freeze will not happen to you. To get the new kernel without
reinstalling, see "Update an installed Beta1 or Beta1.1".

No warranty. This software is provided as is, without warranty of
any kind. I am not responsible for bricked or damaged devices or lost
data. You flash it at your own risk.

What was fixed

  • First login: the start menu froze. Typing into the application
    launcher on the first login of a new account made the menu flicker, and
    the keyboard stopped working until the next login or a restart. At
    exactly display scale 2 the launcher keeps resizing itself the first
    time it opens. New accounts now start at scale 2.25 (everything is about
    11% larger). The setup screens and the login screen stay at 2.
  • Display errors in the kernel log. The display read memory without
    its IOMMU, so it could not show graphics buffers from the GPU and logged
    sg_table is not contiguous and swiotlb buffer is full, in bursts in
    every session. The display now uses the IOMMU, as the stock firmware
    does; the errors are gone.
  • Bluetooth mice and keyboards (BLE) paired but never connected. The
    Bluetooth address was lost each time Bluetooth was switched off and on.
    It is now set again at every power-on. Devices paired while the address
    was wrong need to be paired again once.
  • SCP firmware missing. The image now includes firmware-mediatek, so
    the SCP co-processor starts without a firmware error.

What changed

  • Front camera works through libcamera and PipeWire, for apps that
    use PipeWire cameras. The rear camera does not work yet.
  • Speaker profile: the speaker shows up as "Built-in Audio Speaker".
  • Sensors and vibrator have kernel drivers (accelerometer, light,
    compass). Screen rotation stays off.
  • Headphone and line-out volume read back correctly after a restart.
  • Debian updates since Beta1.1.

The dtbo file is the same as Beta1.

Update an installed Beta1 or Beta1.1

This updates the kernel and its modules. It does not install the front
camera and speaker profile packages; for those, reinstall with the image
from this release.

  1. Download cosmo-beta1.2-update.sh and cosmo-modules-beta1.2.tar.zst
    into the same folder on the Cosmo and run:

    sudo sh cosmo-beta1.2-update.sh
    

    It prints what it installed and ends with Done. It needs an internet
    connection for firmware-mediatek. Your previous modules are kept in
    /usr/lib/modules/6.18.58-cosmo.before-beta1.2.

  2. On your PC, write the new boot image (Cosmo connected as for the
    install, see docs/install.md):

    mtk w boot "$COSMO_FILES/cosmo-boot-beta1.2.img"
    
  3. Start the Cosmo.

Versions

Part Version
Kernel Linux 6.18.58-cosmo (new: IOMMU display, camera, Bluetooth, SCP)
Debian 13.7 (trixie)
Plasma 6.3.6 (Wayland)
Mesa 26.1.6 (trixie-backports), panfrost GPU driver, GLES 3.1
Firefox 160.0.1 (Mozilla's repository)
libcamera 0.7.2 (Cosmo build), PipeWire 1.6.9 (trixie-backports)
Source: kernel, boot image, modules cosmo-linux618 tag beta1.2 (b511341)
Source: root filesystem build gemini-debian 6d29db2

On an installed Cosmo, cat /etc/gemini/build-info shows the same
versions.

Downloads

File Use
cosmo-boot-beta1.2.img new install: write to boot; update: see above
cosmo-dtbo-beta1.img new install: write to dtbo (same as Beta1)
cosmo-debian-beta1.2.img.zst new install: write to userdata (decompress first)
cosmo-beta1.2-update.sh installed Beta1/Beta1.1: update script (see above)
cosmo-modules-beta1.2.tar.zst installed Beta1/Beta1.1: modules for the update script
SHA256SUMS check the downloads: sha256sum -c SHA256SUMS

The install guide's write command names the Beta1 files. For Beta1.2,
decompress cosmo-debian-beta1.2.img.zst and use this command instead:

mtk w boot,dtbo,userdata "$COSMO_FILES/cosmo-boot-beta1.2.img","$COSMO_FILES/cosmo-dtbo-beta1.img","$COSMO_FILES/cosmo-debian-beta1.2.img"

Install steps, warnings and known issues are as in Beta1: read
docs/install.md
and the Beta1 release notes
before flashing. Installing erases the data partition.