Repository navigation
The reference on this Mac: a deep sleep and a wake, with the stock first stage #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c4de553
The reference on this Mac: Ante042's kernel and second stage sleep an…
CoreyH 55cff38
PLAN.md: the thread told; Omarchy's repository packages aura beside m…
CoreyH 86a61f2
After Pullfrog on #137: the RTC as the likely wake, the pick-up's old…
CoreyH dfdb967
PLAN.md: the power monitor reads the charger's DC output into the Mac…
CoreyH 8c880a6
PLAN.md: a mailbox-capable aura as a prerequisite; Corey's move of th…
CoreyH 8db1876
PLAN.md: the aura trial checks the mailbox node in the device tree, a…
CoreyH 58a0404
PLAN.md: the aura trial's bundle carries the trial kernel's own J314s…
CoreyH File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| the stock recipe (update-m1n1's, from /etc/default/update-m1n1): /usr/lib/asahi-boot//m1n1.bin (3866624 bytes), 115 device trees, /usr/lib/asahi-boot//u-boot-nodtb.bin gzip'd (312383 bytes), 0 configuration lines | ||
| rebuilt from the installed inputs: sha256 1f1640d71cd50c3252f48fbee26e0eaaefcd7f9a3840517d2c107e2edcc856ed (9804783 bytes) | ||
| /boot/m1n1/boot.bin as it is: sha256 1f1640d71cd50c3252f48fbee26e0eaaefcd7f9a3840517d2c107e2edcc856ed (9804783 bytes), confirmed on the partition (synced, then read from the device) | ||
| match: the live boot.bin is exactly what the recipe builds, confirmed on the partition (synced, then read from the device) | ||
| kept the stock loader as /boot/m1n1/boot.bin.stock (sha256 1f1640d71cd50c3252f48fbee26e0eaaefcd7f9a3840517d2c107e2edcc856ed, read from the device) | ||
| installed: /boot/m1n1/boot.bin is now the bundle (sha256 96f6e465d30baab1dbfe99efa11529df63bf710155f0cedf4435a4a091d0bbfd, 5475525 bytes, read from the device) | ||
| the stock loader is /boot/m1n1/boot.bin.stock (sha256 1f1640d71cd50c3252f48fbee26e0eaaefcd7f9a3840517d2c107e2edcc856ed) | ||
| Until the stock is put back, every start of Linux on this Mac goes through this loader and gets its device trees: | ||
| the regular kernel too, not only a test kernel. | ||
| To go back: | ||
| from Linux, in a regular boot or a safe boot: pkexec ref-loader restore | ||
| from macOS, if Linux doesn't start: mount the EFI partition (ref-loader recovery-notes says which one), copy | ||
| m1n1/boot.bin.stock over m1n1/boot.bin, eject, restart | ||
| A package update that runs update-m1n1 also writes a stock loader over it (and keeps this bundle as boot.bin.old). |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| diff --git i/drivers/gpu/drm/asahi/driver.rs w/drivers/gpu/drm/asahi/driver.rs | ||
| index ba6301fa1..f9244660e 100644 | ||
| --- i/drivers/gpu/drm/asahi/driver.rs | ||
| +++ w/drivers/gpu/drm/asahi/driver.rs | ||
| @@ -95,7 +95,7 @@ pub(crate) struct AsahiDrmRegistrationData<'drm> { | ||
| major: 1, | ||
| minor: 0, | ||
| patchlevel: 0, | ||
| - name: c"aurora", | ||
| + name: c"asahi", | ||
| desc: c"Aurora GPU for Apple AGX", | ||
| }; | ||
|
|
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| 13:07:13.605566 Linux version 7.3.0-s2rref (...) (clang version 23.1.4, LLD 23.1.4) #1 SMP PREEMPT_DYNAMIC Thu Nov 26 11:53:07 CET 2026 | ||
| 13:07:13.606297 Kernel command line: BOOT_IMAGE=/aurora-test/s2rref/vmlinuz root=UUID=... rw rootflags=subvol=@ cryptdevice=UUID=...:root:allow-discards loglevel=3 quiet splash appledrm.show_notch=1 apple_sep.xart_writes=0 apple_sep.provision_keybag=0 sleepdrain.safe | ||
| 13:07:13.606645 apple-s2r: m1n1 mailbox at 0x10004cfca40, 8 CPUs, CPU hotplug through m1n1 | ||
| 13:08:38.924678 apple_sep 396400000.sep: xART: APFS-resolved .gl extent (...); writes disabled | ||
| 13:11:03.821046 pkexec[4688]: Executing command [COMMAND=ref-sleep check] | ||
| 13:11:26.079723 pkexec[4852]: Executing command [COMMAND=ref-sleep go 60] | ||
| 13:11:26.101713 apple-s2r: deep sleep available, select it in /sys/power/mem_sleep | ||
| 13:11:26.407805 ref-sleep: attempt 4852-1795781486: mem_sleep deep, wake armed 60 s from now | ||
| 13:11:26.410701 PM: suspend entry (deep) | ||
| 13:12:30.370906 Freezing user space processes | ||
| 13:12:30.371346 Freezing user space processes completed (elapsed 0.001 seconds) | ||
| 13:12:30.371375 Freezing remaining freezable tasks | ||
| 13:12:30.371386 Freezing remaining freezable tasks completed (elapsed 0.001 seconds) | ||
| 13:12:30.373912 Disabling non-boot CPUs ... | ||
| 13:12:30.373918 IRQ133: set affinity failed(-38). | ||
| 13:12:30.373924 IRQ135: set affinity failed(-38). | ||
| 13:12:30.373942 IRQ147: set affinity failed(-38). | ||
| 13:12:30.373947 IRQ148: set affinity failed(-38). | ||
| 13:12:30.373953 IRQ133: set affinity failed(-38). | ||
| 13:12:30.373958 IRQ135: set affinity failed(-38). | ||
| 13:12:30.373965 IRQ147: set affinity failed(-38). | ||
| 13:12:30.374121 IRQ148: set affinity failed(-38). | ||
| 13:12:30.374138 IRQ133: set affinity failed(-38). | ||
| 13:12:30.374143 IRQ135: set affinity failed(-38). | ||
| 13:12:30.374148 Enabling non-boot CPUs ... | ||
| 13:12:30.374165 CPU1 is up | ||
| 13:12:30.374182 CPU2 is up | ||
| 13:12:30.374215 CPU3 is up | ||
| 13:12:30.374232 CPU4 is up | ||
| 13:12:30.374389 CPU5 is up | ||
| 13:12:30.374482 CPU6 is up | ||
| 13:12:30.374516 CPU7 is up | ||
| 13:12:30.374521 apple-s2r: ps_all: afnc1_lw0 stays off (0x1000030f, was 0x1f0003ff) | ||
| 13:12:30.374527 apple-s2r: ps_all: afnc1_lw1 stays off (0x1000030f, was 0x1f0000ff) | ||
| 13:12:30.374533 apple-s2r: ps_all: pcpu1_0 stays off (0x100, was 0x1f0) | ||
| 13:12:30.374538 apple-s2r: ps_all: pcpu1_0 stays off (0x100, was 0x1f0) | ||
| 13:12:30.375496 apple-s2r: full wake: wakeup event | ||
| 13:12:30.380022 Restarting tasks: Starting | ||
| 13:12:30.380028 Restarting tasks: Done | ||
| 13:12:30.380050 apple_sep 396400000.sep: hwrng: read produced nothing (ENODEV); further failures will not be logged | ||
| 13:12:30.654935 Bluetooth: hci0: Opcode 0x0c01 failed: -19 | ||
| 13:12:32.679302 Bluetooth: hci0: Opcode 0x0c1a failed: -110 | ||
| 13:12:32.680523 PM: suspend exit | ||
| (43 more apple-s2r ps_all lines of the same two kinds left out) |
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.
Uh oh!
There was an error while loading. Please reload this page.