Skip to content
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

add apple silicon section #827

Merged
merged 1 commit into from
Jan 25, 2025
Merged

Conversation

dkwo
Copy link

@dkwo dkwo commented Dec 23, 2024

Moved from the readme as discussed.

To do: Once this is merged, add a reference to it in asahi wiki/alt distros.

@dkwo
Copy link
Author

dkwo commented Dec 23, 2024

cc @classabbyamp

src/installation/guides/arm-devices/platforms.md Outdated Show resolved Hide resolved
src/installation/guides/arm-devices/platforms.md Outdated Show resolved Hide resolved
src/installation/guides/arm-devices/platforms.md Outdated Show resolved Hide resolved
src/installation/guides/arm-devices/platforms.md Outdated Show resolved Hide resolved
src/installation/guides/arm-devices/platforms.md Outdated Show resolved Hide resolved
src/installation/guides/arm-devices/platforms.md Outdated Show resolved Hide resolved
@dkwo dkwo force-pushed the asahi branch 2 times, most recently from 8da4dfa to 93586fc Compare December 24, 2024 10:08
@classabbyamp classabbyamp changed the base branch from master to release-staging January 12, 2025 16:30
@classabbyamp
Copy link
Member

classabbyamp commented Jan 22, 2025

rewritten to match void's documentation style, please check that I didn't mess up anything

@classabbyamp classabbyamp force-pushed the asahi branch 2 times, most recently from 0ca7b9c to e875c23 Compare January 23, 2025 04:04
@dkwo
Copy link
Author

dkwo commented Jan 23, 2025

I would not have dropped the reference to payload variable, in case someone does not want to use uboot+grub.

@classabbyamp
Copy link
Member

in what cases would you want to use the kernel payload? even if not using grub, it seems that you'd typically want to use u-boot with whichever bootloader/uki

also, is --removable for grub required or recommended?

@Calandracas606
Copy link

also, is --removable for grub required or recommended?

Required. There is no access to efivars, and m1n1 only knows how to execute the hardcoded $ESP\EFI\BOOT\BOOTAA64.EFI

@dkwo
Copy link
Author

dkwo commented Jan 23, 2025

m1n1 can take kernel+initramfs+dtbs as payload, that's the meaning of payload=kernel: this does not use grub, nor uboot, and does not require any hardcoded $ESP\EFI\BOOT\BOOTAA64.EFI or similar. @Calandracas606 Not sure why you think that. (dtbs are taken from kernel btw, not uboot). m1n1 is the bootloader, in some sense.

As for grub, I only meant that --removable works for me. Did not mean it is required. I'm not an experienced grub user, but by simply looking at https://github.com/AsahiLinux/asahi-scripts/blob/main/update-grub in asahi-scripts it seems clear that one can configure grub properly, without using --removable (at least it's not mentioned there).

@dkwo
Copy link
Author

dkwo commented Jan 25, 2025

Quick question: currently on these machines

$ xuname 
Void 6.12.10+2-asahi_2 aarch64 Unknown uptodate rFFFF

Would it make sense to use something like

$ cat /proc/device-tree/model 
Apple MacBook Air (M1, 2020)

for CPU?

@classabbyamp
Copy link
Member

bring it up in leahneukirchen/xtools#227 i guess

@classabbyamp
Copy link
Member

(at least it's not mentioned there).

https://github.com/AsahiLinux/asahi-scripts/blob/main/update-grub#L28
https://github.com/AsahiLinux/asahi-scripts/blob/main/update-grub#L77

this is equivalent to grub-install --removable

@dkwo
Copy link
Author

dkwo commented Jan 25, 2025

Thanks for clarifying that they are equivalent to --removable.
The current text looks good to me.

@classabbyamp classabbyamp merged commit 3dd9204 into void-linux:release-staging Jan 25, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants