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

Tom Rini trini at konsulko.com
Sat Apr 23 14:09:18 CEST 2022


On Tue, Apr 19, 2022 at 09:20:31PM +0200, Mark Kettenis wrote:

> 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 at openbsd.org>
> Reviewed-by: Janne Grunau <j at jannau.net>
> Tested-by: Janne Grunau <j at jannau.net>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220423/eef98227/attachment.sig>


More information about the U-Boot mailing list