Closed drksnw closed 4 months ago
FYI, i've been seeing random system crashes very early on boot recently too, but it is not an exclusive problem to Asahi. I see it in my vanilla QEMU+KVM virtual machines running both NixOS and Fedora. I suspect there is some weird intermittent problem in recent arm64 kernels or possibly recent versions of systemd.
Yeah you're right, there's definitely something strange in systemd...
I've tried to enhance systemd's loglevel with this modification to my configuration.nix :
boot.kernelParams = [
"systemd.log_level=debug"
"systemd.log_target=journal"
];
And.... system boots every time... That will be a pain to debug...
Happens to me too after updating to the latest nixpgks-unstable
I can replicate this on my machine. It seems related to graphics drivers, as when a successful boot occurs, I only have ever gotten software rendering. I updated to the 2024-02-14 Mesa and then X just crashes and the login screen doesn't come up on a "successful" boot (instead of the whole machine rebooting).
I'm not having much luck debugging either, haven't identified a more recent nixpkgs which works. I will likely do a release soon with the most recent nixpkgs that works then come back to this later.
I can replicate this on my machine. It seems related to graphics drivers, as when a successful boot occurs, I only have ever gotten software rendering. I updated to the 2024-02-14 Mesa and then X just crashes and the login screen doesn't come up on a "successful" boot (instead of the whole machine rebooting).
FYI, the 20240214 Mesa (and the subsequent bug fix releases) will not work if you're not also running linux-asahi-6.6-15.
Turns out I accidentally broke Rust support due to some other changes so that's why GPU acceleration never worked. So I don't think it's related as much anymore.
But I still don't see anything obvious. I'm considering shipping the nixpkgs in the wip branch where crashes seem very rare instead of frequent, but I can't seem to totally prevent or always trigger the issue. Sometimes even on very crashy nixpkgs versions I can get several reboots in a row without issues.
A weekend of bisecting and several hundred reboots later... it's fixed. Please upgrade to the latest release.
Determining why the SD reader is at fault and what, if anything, might need to be fixed in the kernel or whatever, I leave to someone else.
Hello !
I have an issue where the system hangs up on startup and immediately reboots without throwing any error message. The issue happens on a MacBook Pro M2 Pro.
This problem never happened on Fedora Asahi.
However, sometimes the system manages to boot and is perfectly usable after that, so it doesn't look like an issue with the system generation.
Here is a
journalctl
boot log from a failed boot :failed_boot.txt
Here is my configuration.nix :
Please tell me if you need more informations.
Thanks !