Skip to content

Include Apple USB controllers before root unlock - #5

Closed
maralcbr wants to merge 1 commit into
mainfrom
port/604-m3-usb-early
Closed

maralcbr wants to merge 1 commit into
mainfrom
port/604-m3-usb-early

Conversation

@maralcbr

@maralcbr maralcbr commented Oct 4, 2026

Copy link
Copy Markdown
Member

Port of one commit from omacom/omarchy-mac#604 (draft) by @scottjones. Co-authored commit.

92-omarchy-mac-hid.conf adds sn201202x and dwc3_apple to the initramfs where the kernel has them, so a USB keyboard on an M3 types at the disk password prompt.

Left out: the MacBook display scale seeding (it wrote into the user's monitors.lua, which the packages no longer do) and the migration fixture change (the migration engine moved out of the packages).

Tested: omarchy-mac-boot/test/all and test/integration/all (runtime #13362 69d80ccc) pass in an ALARM aarch64 container. The drift check warns: omacom/omarchy keeps a test copy of 92-omarchy-mac-hid.conf that needs the same change. Draft, as the original was.

SN201202x negotiates the USB data role on M3, and dwc3_apple binds the
Apple USB controller. The initramfs now carries both, where the kernel has
them, so a USB keyboard types at the disk password prompt without waiting
for root-filesystem coldplug.

Ported from omacom/omarchy-mac#604 (this commit only) with paths mapped to
this repository. Its MacBook display scale seeding wrote into the user's
monitors.lua, which the packages no longer do, and its migration fixture
change went with the migration engine.

Co-authored-by: Scott Jones <444693+scottjones@users.noreply.github.com>
@chriskearney

Copy link
Copy Markdown
Contributor

Thanks for the controller inclusion. I rebased this onto current main in #31, retained Marcelo/Scott attribution, and updated the Mac boot manual. Target-kernel, built-in/absent and existing-hook controls pass, as does the boot package suite. The disposable ARM64 initramfs test also passes; it uses synthetic modules, so actual-package dependency/UKI inspection is still in progress.

The full integration suite fails the coherent-boot-chain fixture on both this change and pristine d8100ec (cannot list the files of linux-aurora). #31 remains draft pending CI, independent approval and cold-boot evidence.

@chriskearney

Copy link
Copy Markdown
Contributor

The full integration failure was environmental: tracing found a sanitized subprocess writing into /tmp after its disk quota was exhausted. The unmodified full integration suite passes with isolated temporary storage. Actual-package image inspection now also passes: both the initramfs and generated ARM64 UKI contain SN201202x, TPS6598x core, Apple DWC3 and DWC3. #31 remains draft for required CI/review and cold-boot keyboard qualification.

@maralcbr

Copy link
Copy Markdown
Member Author

This PR is already superseeded.

Thanks a lot for your contribution! 🤘

@maralcbr maralcbr closed this Oct 25, 2026
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.

2 participants