Inconsistent failure to boot after update

I updated my Linux machine yesterday (switched to unstable NixOS branch).

Very worried to ask what happens when u-boot starts rapidly spamming “Resetting EP 2” before stopping and then slowly spamming “XHCI timeout on event type 0”, but when I restarted thats what it started doing. “no biggie”, I thought; I’ll just update m1n1, since I forgot to do that and that was probably the issue. Then it persisted, and then one magical instance it didn’t, without me changing anything. So I carried on with my day thinking it had sorted itself out and my computer was not in fact bricked.

So imagine my excitement when it starts doing it again today. At first its consistently failing in the exact same way every time I try and boot into my computer, and then I try to unplug all my USB devices to see if it helps, it starts working again, so I plug all them back in and it continues working. So I again haven’t actually changed anything and I am nowhere closer to understanding what’s actually going on.

I think it might have something to do with my external SSD, but it wasn’t doing that before and I was near certain that bug was fixed. But again its too inconsistent to really tell. The only alternatives I can think of though are my keyboard, my tablet, or the number of devices I have plugged in (9).

I figured I’d come here first since it seems to be a problem with u-boot and possibly the USB controller, but if you think it’s more likely an issue on the NixOS’s end I can file an issue on the nixos-apple-silicon repo.

Any idea on how I even debug a problem like this?

The U-Boot stuff is just U-Boot USB support being half broken, which is a known problem. Your machine/hardware is fine. I already fixed over a dozen bugs in that stack, but it looks like we need to fix more. Sure would be nice if someone volunteered to spend some time on it… :confused:

If it spams and boots fine, you don’t need to worry. If it locks up that’s less than ideal, but you can just work around it by unplugging your USB devices and plugging them back in after boot (or at least after U-Boot initializes). Sorry that this still kind of sucks…

This could be a result me adding support for new Apple keyboards and Keychrom keyboards which emulate Apple keybords. Those appear to be USB HID spec non-complient as they don’t report anything if no keys are pressed.
If you use an Aplle or Keychron keyboard please test by booting with the keyboard disconnected.

you know its funny you mention that because i have a keychron keyboard and i recently discovered that it boots fine specifically when i have the keyboard disconnected, so its probably that actually

dont worry too much about it. youre a volunteer group doing some incredible work getting linux working on a completely undocumented platform. we’re all super appreciative of all youve done and nobody was ever expecting it to be completely bug free :3

2 Likes