bazzite icon indicating copy to clipboard operation
bazzite copied to clipboard

Feat: Add apple silicon support(boilerplate)

Open NripeshN opened this issue 10 months ago • 13 comments

Hey @HikariKnight @EyeCantCU @KyleGospo

This is my first contribution to this awesome project, and I’m super pumped to share my approach to bringing Apple Silicon support to Bazzite. ~~Here's the game plan:

  1. Asahi Linux Integration:
    I'll add Asahi Linux as a submodule to keep their drivers and kernel updates in sync with Bazzite. No reinventing the wheel—just piggybacking on their amazing work.

  2. Kernel Tweaks:
    I’ll link Asahi’s prebuilt drivers into Bazzite’s build system and introduce a dedicated kernel config for Apple Silicon. Smooth and simple.

  3. Automation for Updates:
    Updates to Asahi will be automated via a script or maybe even some CI magic, so we stay cutting-edge without breaking a sweat.

This is still a draft PR because I wanted to get your thoughts before diving into the nitty-gritty. Suggestions, feedback, or dad jokes—send them my way! ~~

Boiler plate code for apple silicon Closes #2184

Cheers,
Nripesh Niketan (The new kid in the repo 🛠️)

NripeshN avatar Jan 20 '25 04:01 NripeshN

👀

xXJSONDeruloXx avatar Jan 21 '25 01:01 xXJSONDeruloXx

@NripeshN if you need hardware to test on, I have an M1 Mac that I'm not currently doing much of anything with. Happy to be a part of helping with this new endeavor as well!

noelmiller avatar Jan 21 '25 18:01 noelmiller

@NripeshN if you need hardware to test on, I have an M1 Mac that I'm not currently doing much of anything with. Happy to be a part of helping with this new endeavor as well!

I am currently on an M2 Max MacBook Pro. I can test on my hardware once I figure out how I should be testing stuff lol.

NripeshN avatar Jan 21 '25 18:01 NripeshN

I don't know anything about Bazzite, but my understanding is that it's composed from Fedora packages. If that's the case, I would strongly recommend not building the Asahi integration packages from source, and instead just reusing the ones we have in Fedora Asahi Remix. You might find https://docs.fedoraproject.org/en-US/fedora-asahi-remix/how-its-made/ and https://docs.fedoraproject.org/en-US/fedora-asahi-remix/deviations/ useful, and those point to all the various coprs and packages where you can find the ones we use in the Remix.

cc @Conan-Kudo

davide125 avatar Jan 21 '25 19:01 davide125

This is already being worked on separately by @travier, and I would prefer that enabling AS support is coordinated with him and the Fedora Asahi SIG.

Conan-Kudo avatar Jan 22 '25 16:01 Conan-Kudo

I've started publishing Asahi images at https://github.com/fedora-asahi-atomic-remix/images. It's not "announced" nor official as we have to figure out the naming convention first (https://pagure.io/Fedora-Council/tickets/issue/519).

Ideally, Universal Blue images would build on top of those just like it's done for x86_64.

travier avatar Jan 27 '25 12:01 travier

@NripeshN Probably makes sense to base your PR on the images being built using @travier's repo.

Any updates on this @travier? I see the images are building, but I see you have an open issue on getting it to actually boot on real hardware.

noelmiller avatar Feb 08 '25 18:02 noelmiller

The images work (I tested them on my M2 mac), but there is currently no way to easily install them as you saw in: https://github.com/fedora-asahi-remix-atomic-desktops/images/issues/1

travier avatar Feb 10 '25 13:02 travier

Seems those images are now available, can we modify this to build from them so we can merge into testing?

KyleGospo avatar Mar 31 '25 03:03 KyleGospo

Any progress?

chamychu avatar Apr 22 '25 04:04 chamychu

I have a very rough draft here successfully building arm64 images based on atomic asahi. Looking for feedback, especially how best to get fex/box64 set up ootb to get x86 binaries installed at build time and running seamlessly

https://github.com/xXJSONDeruloXx/bazzite/pull/4

xXJSONDeruloXx avatar May 30 '25 11:05 xXJSONDeruloXx

I have an MacBook Pro 2021 with a M1 Pro if anyone needs testing

chamychu avatar Jun 03 '25 08:06 chamychu

What might be the path forward here, as @travier mentioned, would we want a general ublue image build that we can make a bazzite image container file around? in my base off Asahi directly, I have a lot of odd workarounds whereas a semi centralized base image might be more maintainable. Theres also the question of how to install but one beast at a time

xXJSONDeruloXx avatar Jul 03 '25 17:07 xXJSONDeruloXx