Skip to content

Boot MacBook8,1 live ISO with non-T2 kernel and scoped SPI PIO - #438

Open
geeknees wants to merge 1 commit into
omacom:quattrofrom
geeknees:macbook81/live-boot-scoped
Open

geeknees wants to merge 1 commit into
omacom:quattrofrom
geeknees:macbook81/live-boot-scoped

Conversation

@geeknees

Copy link
Copy Markdown

Summary

The 2015 12-inch MacBook8,1 is a pre-T2 Apple computer, but the live ISO's current GRUB selector routes all systems with the SMBIOS manufacturer Apple Inc. to linux-t2. This makes the installer kernel inconsistent with the kernel installed on non-T2 Macs.

Scope two adjustments to MacBook8,1 in both normal GRUB and loopback (Ventoy) boot paths:

  1. Use the live linux-omarchy kernel instead of linux-t2 on MacBook8,1.
  2. Supply initcall_blacklist=dw_pci_driver_init only for that model, because its Wildcat Point SPI input controller hangs when using DesignWare DMA.

For other Apple machines, preserve the current linux-t2 selection; for PCs, leave both kernel and kernel arguments unchanged. If SMBIOS model information is unavailable, retain the existing Apple fallback.

No syslinux BIOS/PXE paths are changed: they cannot reliably identify the target model in the current static boot config, and adding this DMA workaround globally would regress unrelated hardware.

Related work

Hardware evidence

On a MacBook8,1 (Early 2015, Core M-5Y31), a custom Omarchy ISO with the model-specific live boot adjustment enabled the built-in keyboard during installation. The installed system on 7.2.15-2-omarchy uses the PIO boot argument successfully for LUKS unlock and trackpad input. Also verified: Wi-Fi 2.4/5 GHz, speakers/headphones/mic, Bluetooth basic function, camera capture, 10 lid sleep/resume cycles, and long deep/S3 resume (requires a separate LPSS hook).

Tests and remaining verification

  • Local test verifies model gate, argument is not globally applied, and both GRUB configurations are changed.
  • git diff --check and existing test/unit/boot-cmdline-test.sh should be run in an Arch environment where applicable.
  • This focused PR has not been rebuilt and freshly boot-tested independently from the earlier all-in-one PoC. Fresh-ISO verification on T2 and non-Apple machines remains desirable.

@geeknees
geeknees marked this pull request as ready for review November 14, 2026 11:35
@greptile-apps

greptile-apps Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with the existing non-blocking test coverage finding still outstanding.

Findings

  1. P2 Model branch lacks tests ▶

Summary

Both GRUB configurations now boot MacBook8,1 with the default live kernel and add initcall_blacklist=dw_pci_driver_init.

  • MacBook8,1 boots the live ISO with its regular kernel and SPI PIO setting.

Reviews (2) · Last reviewed commit: "Scope MacBook8,1 live SPI PIO workaround..." · Reviewed by Greptile

Comment thread configs/grub/grub.cfg
Comment on lines +69 to +71
if smbios --type 1 --get-string 5 --set sys_product; then
if [ "${sys_product}" == 'MacBook8,1' ]; then
set macbook81_pio=initcall_blacklist=dw_pci_driver_init

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Model branch lacks tests

The new MacBook8,1 branch has no tracked test. The existing Mac boot test supplies only manufacturer=Apple Inc., so it never checks this branch. Tests can therefore pass if the keyboard workaround is dropped or applied to other machines.

Add coverage for MacBook8,1, another Apple model, a failed product lookup, and a non-Apple machine in both configurations. Check the selected kernel and workaround argument in normal and screen-reader entries.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

This branch has not been deployed

No deployments
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