contrib/surface: add Surface Laptop 7 arm64/Snapdragon X Elite bootc example (upstream kernel, NX Mode SB workaround)#2
Open
corning-croak-cable wants to merge 14 commits into
Conversation
…kargs, no tpm2-luks)
…omm stack, sbctl)
This was referenced May 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Surface Laptop 7 - Snapdragon X Elite (aarch64) bootc example (contrib)
Adds example Containerfile and supporting config for building a bootc-compatible
OCI image for the Microsoft Surface Laptop 7 with Snapdragon X Elite (x1e80100, aarch64).
Priorities: bootable images first, upstream kernel only, TPM/Secure Boot enrollment quirks resolved.
Files (
contrib/surface/arm64/)Design decisions (source-grounded)
1. Upstream kernel (no linux-surface)
x1e80100-microsoft-romulus13/15.dtsdevice trees are merged upstream since kernel 6.12.Fedora rawhide aarch64 ships them in
kernel-core. linux-surface provides no aarch64 packages.Source: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus13.dts
2.
block = ["direct"](no tpm2-luks)Qualcomm fTPM on X Elite is not available during the initrd phase when
systemd-cryptenrollattempts TPM2 PCR enrollment. This causestpm2-luksinstall to fail.Verified from
config.rs:blockfield filters allowedBlockSetupvariants.By including only
direct, callers cannot accidentally selecttpm2-luksfor this platform.Source: community testing, linux-surface/linux-surface#1590
3. No MokManager - sbctl firstboot + direct UEFI db enrollment
Surface UEFI enforces NX (No-Execute) mode. MokManager freezes (black screen at logo)
when Secure Boot key enrollment is triggered via shim.
bootc already uses UKI + systemd-boot without shim, so MokManager is irrelevant.
The
surface-sb-enroll.servicefirstboot unit generates keys via sbctl, signs all UKIs,and writes step-by-step instructions for direct UEFI db enrollment.
Source: linux-surface/linux-surface#1590
4.
SuspendState=freeze(s2idle only)Snapdragon X Elite PSCI/ACPI on Linux exposes only s2idle; S3 is not available.
Build and install