ubuntu-asahi icon indicating copy to clipboard operation
ubuntu-asahi copied to clipboard

Kernel Panic on Upgrade from 23.10 to 24.04 on M1 Max Mac Studio

Open umnaut opened this issue 1 year ago • 7 comments

I'm experiencing a kernel panic issue when attempting to upgrade from Ubuntu 23.10 to 24.04 on my M1 Max Mac Studio. The initial 23.10 install was done yesterday, so m1n1 has always been at v1.4.14 for this system.

Steps to Reproduce:

  • Updated to macOS 14.5.
  • Followed the ubuntu-asahi Linux installation process.
  • Installed Ubuntu 23.10 successfully.
  • Upgrade to Ubuntu 24.04
  • Reboot

Issue:

The system experiences a kernel panic after GRUB boots the upgraded system. I have wiped and retried the installation process three times with the same results.

Here’s a screenshot of the kernel panic:

panic

Additional Information:

The system eventually booted after looping for over an hour. From the now-booted system: m1n1/noble, now 1.4.14-1ubuntu0.1~asahi1 arm64

Logs:

Log from eventual successful boot on 24.04: Journalctl Log Previous (-b -1), boot logs from 23.10: Part 1 Part 2

Please let me know if any additional information is required.

Thank you!

umnaut avatar May 20 '24 18:05 umnaut

@umnaut is this now booting again consistently? Or does it loop every boot and take ~1 hour?

john-cabaj avatar May 21 '24 16:05 john-cabaj

I sent the reboot command, started a timer, and observed the following:

  • 0 to 4 mins: During several boots, the system displayed a black screen with a single underscore character after uboot screen. Each boot lasted several seconds before rebooting again.
  • 4 mins 10 secs: On a single boot, the Grub menu appeared after uboot. Following the Grub timeout, the Ubuntu greeter showed up. After a few seconds at the greeter, the system rebooted to the Boot Recovery Assistant.

I had initially left the system on after the single successful boot to be able to run diagnostic commands, but I've now rebooted to gather this information.

umnaut avatar May 21 '24 16:05 umnaut

I attempted to boot Ubuntu from the Boot Recovery Assistant and observed a similar pattern:

0:50 - U-Boot -> underscore
1:25 - U-Boot -> underscore
2:10 - U-Boot -> Grub -> underscore
3:30 - U-Boot -> Grub -> underscore
4:40 - U-Boot -> kernel panic
5:50 - Boot Recovery Assistant

umnaut avatar May 21 '24 16:05 umnaut

I had the same problem on mac studio m2ultra. It seems that some information remains when rebooting from macosx. If possible, try rebooting, force quitting, or shutting down from grub and waiting a few minutes before turning the power back on.

t-komatu avatar May 23 '24 02:05 t-komatu

Sorry, please don't reboot

t-komatu avatar May 23 '24 02:05 t-komatu

This is a known hardware bug in the sdhci chipset which causes errors when autosuspend triggers before device probe. You need this workaround, I don't know if ubuntu-asahi ships it? cc @tobhe (be aware of the dependencies, this needs to be installed on the system, then hwdb updated, then the initramfs built with that hwdb so it picks it up too).

marcan avatar Dec 15 '24 14:12 marcan

Thanks @marcan! we don't currently ship it because I wasn't aware of that. I'll make sure to change that quickly :)

tobhe avatar Dec 15 '24 15:12 tobhe