Skip to content
Snippets Groups Projects
Commit a609353e authored by Mark Kettenis's avatar Mark Kettenis Committed by Tom Rini
Browse files

arm: apple: Point stdout-path to framebuffer when keyboard present


Unless you have a spare Apple Silicon machine, getting access to
the serial port on Apple Silicon machines requires special
hardware. Given that most machines come with a built-in screen
the framebuffer is likely to be the most convenient output device
for most users. While U-Boot will output to both serial and
framebuffer, OSes might not. Therefore set stdout-path to point
at /chosen/framebuffer when a keyboard is connected to the machine.

This behaviour can be overridden by setting the "stdout" variable
in the U-Boot environment. I addition to that keep the serial
console as the default when running under the m1n1 hypervisor.
The m1n1 hypervisor virtualizes the serial port such that it
can be easily accessed from any other machine with a USB port.

Signed-off-by: default avatarMark Kettenis <kettenis@openbsd.org>
Reviewed-by: default avatarJanne Grunau <j@jannau.net>
Tested-by: default avatarJanne Grunau <j@jannau.net>
parent 4a8d0711
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment