chadmed / asahi-gentoosupport

Gentoo support files for Apple Silicon devices
61 stars 16 forks source link

Adding Asahi Fedora compatibility #17

Closed sm-moshi closed 4 months ago

sm-moshi commented 7 months ago

I had to change the lines from “pacman -S …” to “dnf install -y …” to gain compatibility for the new Asahi Fedora Remix, which is standard for the Asahi Installer now.

Furthermore, the grub folder is called grub2 in Fedora and for Dracut to call dmsquash-live the parameter “hostonly” needs to get set to “no”.

Greets, Stuart

chadmed commented 7 months ago

Did WiFi work in the Gentoo livecd with this? I've been working on this locally and found that the WiFi firmware crashes immediately upon upload which is why I've left this ALARM-only for now.

sm-moshi commented 7 months ago

Sadly not. Somehow, on the Live CD, only my USB-C dongles Ethernet port is detected. I played around with it for the last 3 hours, but sadly, it seems like LUKS doesn't work, arrow keys aren't detected most of the time, as well as the TTY bugging around constantly.

I guess it's somehow connected to Fedoras kernel because I also had to manually change the GRUB entry to pick this one. Just selecting the Live CD did not work whatsoever.

But I'll keep digging. :)

Oh, forgot: I'm using an MBP M2 Pro for this.

chadmed commented 7 months ago

Yeah these are all known issues

schkwve commented 7 months ago

Yeah these are all known issues

* The WiFi doesn't work because the firmware immediately crashes when booted on the chip (works fine once Gentoo is installed, this is _only_ when using the Fedora kernel for the livecd

* The keyboard/TTY bugginess is only on tty1, if you move to tty[2-9] everything works fine

* The Fedora kernel naming scheme is different so of course the GRUB menuentry needs more changes.

Are these issues related to M2 only? I couldn't find any mention on these anywhere on the Asahi Linux wiki.

EDIT: I have decided to try and install Gentoo on my M1 MacBook Air, and have gotten into some issues on a fresh Minimal Fedora install. Firstly, the required dmsquash-live module for dracut is not available by default, and requires another package to be installed: dracut-live. This can be fixed with a simple sudo dnf install dracut{-live,}.

Secondly, as per this report, dracut may overwrite configuration with the one present in /usr/lib/dracut/dracut.conf.d/01-dist.conf, where I have confirmed was hostonly enabled. I don't know if it has been resolved, but may be worth mentioning incase someone else encounters this error message: dracut module 'dmsquash-live' cannot be found or installed.

I will add more edits to this if I find any errors/bugs.

chadmed commented 4 months ago

We managed to fix this by forcing the addition of some programs into the initramfs.