Skip to content

feat(oms-30): the J616c image for a macOS 27.2 stub installs with zero hand steps - #30

Merged
allanclempe merged 47 commits into
mainfrom
oms-30-j616c-can-t-boot-on-macos
Nov 29, 2026
Merged

allanclempe merged 47 commits into
mainfrom
oms-30-j616c-can-t-boot-on-macos

Conversation

@allanclempe

@allanclempe allanclempe commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

The J616c couldn't boot Omarchy on macOS 27.2 firmware, and people will come to the release from 27.2. This branch builds the J616c image for a 27.2 (26B123) stub on omacom's edge stack, and the image now installs, boots and updates with zero hand steps (JOURNEY 9.69): install, first boot, owner setup, encryption, the desktop, a cold boot, and the first omarchy update, which also moved the login screen to greetd.

What it took, each fix in the build (tools/derive-j616c-image, patches/j616c-installer.patch) and listed in AGENTS.md's hand-fix table:

  • Boot chain: on 27.2, kmutil wraps a raw Stage 1 as Mach-O and Stage 2 refuses it, so the J616c takes upstream's Mach-O Stage 1 path; Recovery pads and enrolls aura v1.0.0b17's Stage 1 itself. Stage 2 from the same release, pinned, with the owner-boot-chain marker so omarchy update's boot check passes.
  • GPU: edge's kernel refuses the 32-core J616c's 26B123 firmware image, so the build carries linux-aurora 7.3.0.aurora1-1.1 (and its headers) with patches/linux-t6041-26b123-32core.patch.
  • Display: on firmware 27 the T6041 primary plane offers no XRGB8888. The build carries aquamarine 0.16.0-1.4 (omarchy-pkgs#2739's alpha-variant fallback) and Hyprland 0.57.2-9.2 (keeps the rendered frame), and owner setup's kmscon draws with --no-drm.
  • Installer patch: J616c admission, the 27.2 (26B123) stub only, camera tuning collection; engine rebuilt and pinned.
  • Derivation: edge pins, a hash-pinned PKGS input, kernel checks for linux#1954, #2233 and the 32-core image, and a guard that refuses a greetd runtime whose first boot can't enable it.

Tested: the 2.3.22 acceptance install (JOURNEY 9.69). The 2.3.23 build, on a post-omarchy#20404 payload with omarchy-mac-pkgs#209's first boot, also reached the desktop through greetd (9.71).

Sent upstream:

Follow-ups: OMS-47 (Neural Engine on 27.2), OMS-48 (video encoder on 27.2), OMS-49 (greeter portal crash), OMS-50 (edge kernel errors aurora main doesn't have), OMS-51 (drop the carried fixes as the upstream PRs land).

docs/oms-30-image-plan.md is the plan as first written; JOURNEY 9.57 to 9.72 record what was built and why.

…it the PR

Review of omacom/omarchy-pkgs#3505 found that 1000 stopped node:22 from
starting (a taken mmap hint returned ENOMEM) and that 1001 handed guest
pointers to the host unchecked. 1000 now places x86-64 mappings below
2^47 by searching QEMU's own page table; 1001 checks every pointer
against guest memory, redoes a read that hit a page protected for
translated code, and translates event errnos. The PR is split: #3505
keeps the source build and 1002, #3602 carries 1000, #3603 carries 1001.

apply-oms41.py makes the same changes on qemu 11.1.3, mmaptest.c and
aiotest.c check the review's cases, and the derivation pins packages
built from the three PRs merged. JOURNEY 9.56.
Installed from the three PRs merged; node:22 and SQL Server 2022 run
through binfmt with a plain docker run. JOURNEY 9.56.
… edge stack

Aurora's newest kernel (7.3.0.aurora1-41) has neither aurora-silicon/linux#1954
(T6041 on 27.2 firmware) nor #2233 (the ISP's computed noise filter); omacom's
edge linux-aurora 7.3.0.aurora1-1 has both, and the two stacks can't be mixed.

The derivation now takes its platform from [omarchy] edge, pinned in EDGE_PINS,
checks the kernel modules for #1954 and #2233, starts speakersafetyd for the J616
speaker card (speakersafetyd's own rule doesn't list it), builds Stage 1 and 2
from aura v1.0.0b17 (aura#265 and the M4 27.2 hand-off), keeps x86 container
support through a hash-pinned PKGS input, and adds 27.2 to the payload's
supported_fw. Edge's omarchy-mac-boot keeps boot-ctxr.bin current and verifies
it, so the Aurora trial, its OMS-17 drop-in and the owner-boot-chain marker go.

The installer patch is rebased onto omarchy-mac-installer e0aa53fd: upstream's
Mach-O mode replaces ours, raw-ctxr is re-added on its design, and the J616c is
offered only the 27.2 (26B123) stub.

docs/oms-30-image-plan.md lists what goes in; JOURNEY 9.57 has the evidence.
…age check expects

mac-image-check payload edge refused the first derived payloads three ways:
the derivation had added 27.2 to the payload's supported_fw (the J616c's 27.2
stub belongs in the catalog's installer_data-j616c.json), it left boot-j700.bin
behind the rebuilt boot.bin, and it deleted the shared boot-ctxr.bin that the
edge payload carries for other M4 Macs. The derivation now copies the rebuilt
boot.bin to boot-ctxr.bin, boot-j700.bin and boot-ctxr-j616c.bin, and leaves
the metadata as built.

The installer patch teaches check_confined_boot_payloads the J616c's raw-ctxr
pair (stage1-j616c.bin with boot-ctxr-j616c.bin), which upstream's Mach-O-only
check refused; other per-board copies are still refused.
…yprland 0.57.2-9.2

The review of omarchy-pkgs#3854 found the relaxed format check also kept a
client's direct-scanout buffer. Limit it to the monitor's swapchain buffers.
Built as 9.2 and retested on the Mac: no flicker, full-screen video plays,
no stale-buffer swaps, no core dumps (JOURNEY 9.66).
…e's titlebars 0.5.0-1

Stage 1: aura v1.0.0b17's aura-raw.bin wrapped unpadded with tools/macho_boot_object.py, sha256 51bbab87. Engine v0.9.2-omarchy.20261128.dd74a03c9b7d: two identical rebuilds, 17,916,827 bytes, sha256 0efe9545, reproduced by prepare-engine.py. Edge dropped titlebars 0.4.0-6; 0.5.0-1 requires hyprland=0.57.2, which 9.2 satisfies.
… finds strings in large modules

Edge's image ships linux-aurora-headers; its -1 kept the old kernel's module directory, so the patched 1.1 headers from the same build are pinned and held. An unowned leftover module directory is removed. module_has piped the module into grep -q under pipefail, which failed on the 7 MB GPU module (SIGPIPE); it counts matches now, as does the Realtek firmware check.
…s greetd without it

omarchy-mac-boot 20261128-0.1 and omarchy-mac 0.2.8-1.1, edge's recipes at #209's head 48ad4d7, go in through PKGS, pinned but not held, so the release with the fix replaces them. A runtime that ships greetd now needs a first boot that enables it.
@allanclempe allanclempe changed the title feat(oms-30): build the J616c image for a macOS 27.2 stub on omacom's edge stack feat(oms-30): the J616c image for a macOS 27.2 stub installs with zero hand steps Nov 29, 2026
@allanclempe
allanclempe merged commit b5bcbd2 into main Nov 29, 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.

1 participant