Skip to content

Pre-build Snapdragon UKI and include linux-omarchy-v4l2loopback on aarch64 - #588

Merged
dhh merged 4 commits into
quattrofrom
feat/snapdragon-prebuilt-uki-and-v4l2loopback
Nov 27, 2026
Merged

dhh merged 4 commits into
quattrofrom
feat/snapdragon-prebuilt-uki-and-v4l2loopback

Conversation

@dhh

@dhh dhh commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Pre-build prebuilt-uki-qualcomm.efi during OMARCHY_SNAPDRAGON ISO builds using systemd-stub-omarchy, all Snapdragon DeviceTreeAuto DTBs, loadable Qualcomm modules (intentionally excluding qcom_q6v5_pas to keep USB-root installs safe), and Adreno X1/X2 microcode (gen70500, gen71500, gen80100).
  • Wire _qualcomm_prebuilt_uki() into finalize_limine_boot() with strict fallback gates (Snapdragon platform, covered modules, no custom hooks beyond omarchy-quiet-efivars, no qcom-firmware.conf or extra firmware FILES, no qualcomm-adsp-nofw.conf, and a matching HWID JSON under /usr/lib/systemd/boot/hwids/aa64/) to skip the ~7.1s limine-mkinitcpio rebuild on supported Snapdragon laptops.
  • Remove linux-omarchy-v4l2loopback from x86-only exclusions in builder/aarch64-package-filter.sh so aarch64 ISOs ship the prebuilt module instead of compiling v4l2loopback-dkms during install.
  • Add standalone unit test coverage in test/unit/test_qualcomm_prebuilt_uki.py.

Related

Verification

  • bash -n on modified shell scripts
  • test/unit/aarch64-build-test.sh
  • pytest test/unit/test_qualcomm_prebuilt_uki.py test/unit/test_n1x_platform.py test/unit/test_uki_cmdline.py test/unit/test_uki_vconsole.py test/unit/test_prebuilt_uki_keymap.py test/unit/test_prebuilt_uki_provisioning.py (78 passed)

…rch64

- On --snapdragon builds, pre-build prebuilt-uki-qualcomm.efi with
  systemd-stub-omarchy, all Snapdragon DeviceTreeAuto DTBs, loadable
  Qualcomm early modules (excluding qcom_q6v5_pas), and Adreno X1/X2
  microcode, and deploy it in finalize_limine_boot() when the installed
  board matches its HWID/module/file/hook gates (saving ~6.5s).
- Stop excluding linux-omarchy-v4l2loopback in aarch64-package-filter.sh
  so aarch64 ISOs carry the prebuilt module in the offline mirror.
@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge, with no outstanding findings.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with no outstanding findings.

Summary

Pre-builds a Snapdragon UKI and lets supported installs copy it instead of rebuilding it.

  • Snapdragon ISO builds include a Qualcomm UKI ready for supported laptops.
  • Matching Snapdragon laptops use the image’s Qualcomm UKI during installation.
  • aarch64 package lists can keep linux-omarchy-v4l2loopback.

Reviews (4) · Last reviewed commit: "Match bash readlink newline when hashing..." · Reviewed by Greptile

Comment thread builder/build-root-image.sh Resolved
Comment thread builder/build-root-image.sh Resolved
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Install test passed

x86_64 vs quattro aarch64 vs quattro
Result ✅ passed ✅ passed
Build the ISO 93.0 s −6.0 s 205.0 s +35.0 s
Install 21.4 s −0.9 s 29.3 s −2.1 s
First boot 5.6 s −0.0 s 5.0 s +0.1 s
Everyday boot 5.6 s +0.1 s 4.6 s +0.2 s

Boots are loader, kernel and userspace, without the VM's firmware.

Install phases, x86_64
Phase This PR quattro
Preparing live environment 0.1 s 0.1 s
Preparing install target 16 s 16.5 s
Installing Arch + Omarchy 3.9 s 4.3 s
Configuring system 0.5 s 0.5 s
Staging provisioning 0 s 0 s
Finalizing boot and user 0.5 s 0.5 s
Configuring login 0 s 0 s
Configuring SSH access 0.2 s 0.2 s
Configuring Tailscale 0 s 0 s
Configuring DNS resolver 0 s 0 s
Validating boot setup 0 s 0 s
Creating factory snapshot 0.1 s 0.1 s
Install phases, aarch64
Phase This PR quattro
Preparing live environment 0.1 s 0.1 s
Preparing install target 12.4 s 15.5 s
Installing Arch + Omarchy 14.1 s 13.3 s
Configuring system 0.8 s 0.8 s
Staging provisioning 0 s 0 s
Finalizing boot and user 1.2 s 1.1 s
Configuring login 0 s 0 s
Configuring SSH access 0.3 s 0.3 s
Configuring Tailscale 0 s 0 s
Configuring DNS resolver 0 s 0 s
Validating boot setup 0.1 s 0.1 s
Creating factory snapshot 0.2 s 0.2 s

Run · bc4469e

@dhh
dhh merged commit 62abf3a into quattro Nov 27, 2026
22 checks passed
@dhh
dhh deleted the feat/snapdragon-prebuilt-uki-and-v4l2loopback branch November 27, 2026 21:02
outfoxxed added a commit that referenced this pull request Nov 28, 2026
This reverts commit 2f7cabf, keeping the layers comment a later commit
reworded. The pre-built initramfs has no GPU drivers, and on an image with
the boot splash no keyboard layout but US, so a password typed at install in
a non-Latin layout could not be typed at the first boot's prompt.
systemd-boot installs build their own on the machine again.
_recorded_initramfs_inputs stays: the Snapdragon UKI (#588) reads its
record with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
outfoxxed added a commit that referenced this pull request Nov 28, 2026
This reverts commit 2f7cabf, keeping the layers comment a later commit
reworded. The pre-built initramfs has no GPU drivers, and on an image with
the boot splash no keyboard layout but US, so a password typed at install in
a non-Latin layout could not be typed at the first boot's prompt.
systemd-boot installs build their own on the machine again.
_recorded_initramfs_inputs stays: the Snapdragon UKI (#588) reads its
record with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
outfoxxed added a commit that referenced this pull request Nov 28, 2026
This reverts commit 2f7cabf, keeping the layers comment a later commit
reworded. The pre-built initramfs has no GPU drivers, and on an image with
the boot splash no keyboard layout but US, so a password typed at install in
a non-Latin layout could not be typed at the first boot's prompt.
systemd-boot installs build their own on the machine again.
_recorded_initramfs_inputs stays: the Snapdragon UKI (#588) reads its
record with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
outfoxxed added a commit that referenced this pull request Nov 28, 2026
This reverts commit 2f7cabf, keeping the layers comment a later commit
reworded. The pre-built initramfs has no GPU drivers, and on an image with
the boot splash no keyboard layout but US, so a password typed at install in
a non-Latin layout could not be typed at the first boot's prompt.
systemd-boot installs build their own on the machine again.
_recorded_initramfs_inputs stays: the Snapdragon UKI (#588) reads its
record with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
outfoxxed added a commit that referenced this pull request Nov 28, 2026
This reverts commit 2f7cabf, keeping the layers comment a later commit
reworded, and removes the parallel build of its initramfs that 61c8412
added. The pre-built initramfs has no GPU drivers, and on an image with
the boot splash no keyboard layout but US, so a password typed at install in
a non-Latin layout could not be typed at the first boot's prompt.
systemd-boot installs build their own on the machine again.
_recorded_initramfs_inputs stays: the Snapdragon UKI (#588) reads its
record with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dhh pushed a commit that referenced this pull request Nov 28, 2026
* Install with greetd's login screen and Omarchy's boot splash

configure_login points greetd's login screen at the install's user through
the target's omarchy-system-login, with autologin on an encrypted install,
in place of SDDM's state and autologin files.

An image whose settings package carries the omarchy-splash hook gets no
pre-built UKI: its systemd initramfs runs Plymouth, so every install builds
the busybox initramfs the splash runs in, and shows the splash from its
first boot. Nor does such an image ship omarchy-boot-systemd: the splash is
untested with systemd-boot, so a build that would ship them together fails.
prebuilt-uki-test.sh runs the pre-built UKI builds, in turn and in
parallel, with and without the splash.
Comments, docs and tests name the login screen and the splash where they
named SDDM and Plymouth.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Log Try in with greetd and Omarchy's login screen

The Try layer enables greetd and has omarchy-system-login log its user in
at boot. After a logout the login screen asks for the user's empty password,
and Enter logs back in. SDDM's Relogin goes, with the passwordless theme and
the session wrapper that kept it working, and so does the udev settle
drop-in: omarchy-system-wait-drm runs before greetd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Revert "Boot systemd-boot installs from a pre-built initramfs (#529)"

This reverts commit 2f7cabf, keeping the layers comment a later commit
reworded, and removes the parallel build of its initramfs that 61c8412
added. The pre-built initramfs has no GPU drivers, and on an image with
the boot splash no keyboard layout but US, so a password typed at install in
a non-Latin layout could not be typed at the first boot's prompt.
systemd-boot installs build their own on the machine again.
_recorded_initramfs_inputs stays: the Snapdragon UKI (#588) reads its
record with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant