]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
uefi stand: Guess the console better
authorWarner Losh <imp@FreeBSD.org>
Sat, 14 Jul 2018 00:40:38 +0000 (00:40 +0000)
committerWarner Losh <imp@FreeBSD.org>
Sat, 14 Jul 2018 00:40:38 +0000 (00:40 +0000)
commit3fecfbebe94b17b0573acfb4e6554b294ec4d48b
tree983d78ea9fe54bec739529592e6b1272e4157b68
parent2e08e39ff53a55f7ba5db298069b00a9e73f2dc3
uefi stand: Guess the console better

For server machines, ComOut is set to the set of devices that the efi
console suppots. Parse it to see if we have serial, video or both.
Make that take precidence over the command line args. boot1.efi parses
them, but loader.efi doesn't. It's not clear where to read boot.conf
from, so we don't do that. The command line args can still be set via
efibootmgr, which is more inline with the UEFI boot manager to replace
that. These args are typically used only to set serial vs video and
the com speed line. We can infer that from ComOut, so do so.
Remember the com speed and hw.uart.console to match.

RelNotes: yes
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D15917
stand/efi/loader/bootinfo.c
stand/efi/loader/main.c