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
- Boot Alpine with a kernel for the device (mainline when possible) and the USB gadget:
/initandtaunus-usbgive youtdtover USB as soon as the kernel runs. - 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. - Audio: an ALSA UCM profile in the overlay; set
audio.volume_control. - Display: DRM/KMS through labwc. Without a DRM driver, a framebuffer route exists (see the Tab S6 Lite port on its branch).
- Form factor:
tabortv. Everything else follows.
Existing ports: athena (Echo Show 8 2nd gen, MT8183) and tabs6lite (Galaxy Tab S6 Lite, in progress).