AsahiLinux / linux

Linux kernel source tree
Other
2.17k stars 84 forks source link

M1 Macbook Fails to Run the Kernel #227

Open gaoxiangliu opened 8 months ago

gaoxiangliu commented 8 months ago

Hi, I used the Asahi-installer (https://github.com/AsahiLinux/asahi-installer) to install the Asahi Linux 6.5.0 with the Plasma GUI. Below is my computer info: Product name: MacBook Air (M1, 2020) SoC: Apple M1 Device class: j313ap Product type: MacBookAir10,1 Board ID: 0x26 Chip ID: 0x8103 System firmware: iBoot-10151.41.12 Boot UUID: 51ED1F02-9D5C-4186-8604-E581B015E0F5 Boot VGID: 51ED1F02-9D5C-4186-8604-E581B015E0F5 Default boot VGID: B2C2F0CC-6148-405C-B351-4235F983DF33 Boot mode: macOS OS version: 14.1 (23B74) Main firmware version: 14.1 (23B74) No Fallback System Firmware / rOS SFR version: 23.2.74.0.0,0 SystemRecovery version: 22.7.74.0.0,0 (13.5 22G74)

I tried to build the Linux kernel from this repo use the same configuration file as the system installed by the script. There were no errors when building the kernel (make) and install modules (make modules_install). But, the computer fails to boot up if I select the self-built kernel in grub.

Could anyone gives some suggestions about how to build my own modified Linux kernel and install on MacBook M1?

Thank you!