summaryrefslogtreecommitdiff
path: root/disk
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@openbsd.org>2022-04-19 21:20:31 +0200
committerTom Rini <trini@konsulko.com>2022-04-22 15:56:39 -0400
commita609353e82fd757b7635d18ed6a0828fff657d59 (patch)
tree264c39d01f071f308b3b7f8bc88b20cb09681653 /disk
parent4a8d07114e4b5e18469d9cfc3c27a3fada9c22dd (diff)
downloadu-boot-a609353e82fd757b7635d18ed6a0828fff657d59.tar.gz
u-boot-a609353e82fd757b7635d18ed6a0828fff657d59.tar.bz2
u-boot-a609353e82fd757b7635d18ed6a0828fff657d59.zip
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: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Janne Grunau <j@jannau.net> Tested-by: Janne Grunau <j@jannau.net>
Diffstat (limited to 'disk')
0 files changed, 0 insertions, 0 deletions