Cannot boot Gentoo on Apple M1

RobS21

Junior Member
Hi,

I have tried installing Gentoo arm64 now several times on parallels 17.1.4 on an Apple M1 machine but cannot get it to boot, no matter what I do. I followed: https://wiki.gentoo.org/wiki/Quick_Installation_Checklist and tried both the UEFI/GPT version as BIOS/GPT version. Seems to me that UEFI/GPT is the only way to go also because grub fails installing when set to BIOS/GPT:

livecd ~ # grub-install /dev/sda
Installing for arm64-efi platform.
grub-install: error: cannot find EFI directory.​

I can complete the minimal installation without issues for UEFI/GPT but once I'm done, fstab is set and grub2 is installed and configured and I reboot, Parallels tells me no OS is installed on the disk and cannot continue to boot.

Anybody any clue what I'm doing wrong here?
 
Ok. We've fixed the issue.
For those who wants to know the reason for both issues (hang on EFI and seeing no root partition).
The reason of those two issues that kernel can't read required module from disk (module to work with AHCI disks).
There are two possible solutions here:
1. Compile kernel with https://cateee.net/lkddb/web-lkddb/SATA_AHCI_PLATFORM.html enabled to Y
2. Updated your genkernel.conf as per attached mine example:
Code:
RAMDISKMODULES="yes"

# Add additional modules to the initramfs using the module groups defined
# in /usr/share/genkernel/defaults/modules_load (see this file for
# more details).  This would be used if, for example, you
# required an additional crypto module or network device at boot
# time and did not want to statically compile these in the kernel.
# Options take the form AMODULES_{group} where {group} is one of
# the groups in modules_load (which are in the form MODULES_{group}).
# Use this with caution.
AMODULES_group="ahci_platform"
 
Back
Top