Post #1539649
2026-04-01 15:52 UTC
@daandemeyer I'm also wondering how this ends-up working with non-headless systems where either there is no GOP in the EFI implementation, or where simple-framebuffer is being handed down to the kernel, but without the actual GOP protocol being available...
If the desired outcome is that "when the kernel can output to the display, put the console on the display", this implementation may pick serial while the kernel would have previously used the display.
Replies (1)
-
@daandemeyer@mastodon.social 2026-04-01 16:07
@samueldr So I'm already reworking this to pick the right index on x86 since they're statically allocated there. You're right that on arm we can't really know for sure. I kept it for now to pick ttyAMA0 if we find a single serial console. As for the graphical console, you're of course right that this breaks if the uefi firmware can't detect the graphics output. I guess I could make it opt-in to avoid breaking existing use cases.