Skip to main content

Porting to a new device

A device is a folder devices/<id>/:

devices/<id>/
├── device.toml the profile (see Platform APIs › Device profile)
├── overlay/ files copied over the image: udev rules, ALSA UCM, fstab, labwc rc.xml, firmware
└── kernel/ build-kernel.sh, config fragments, patches

DEVICE=<id> in build.conf builds for it.

Steps​

  1. Boot Alpine with a kernel for the device (mainline when possible) and the USB gadget: /init and taunus-usb give you tdt over USB as soon as the kernel runs.
  2. Write device.toml: display output and rotation, touch device and calibration, keys, partitions, USB strings, audio card. Nothing outside the profile and the overlay may name the device.
  3. Audio: an ALSA UCM profile in the overlay; set audio.volume_control.
  4. Display: DRM/KMS through labwc. Without a DRM driver, a framebuffer route exists (see the Tab S6 Lite port on its branch).
  5. Form factor: tab or tv. Everything else follows.

Existing ports: athena (Echo Show 8 2nd gen, MT8183) and tabs6lite (Galaxy Tab S6 Lite, in progress).