Date: Thu, 04 Feb 2021 20:47:12 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 253253] stable/13: efi boot always defaults to cons: serial Message-ID: <bug-253253-227-pr7aiHHoCv@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-253253-227@https.bugs.freebsd.org/bugzilla/> References: <bug-253253-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253253 --- Comment #3 from Toomas Soome <tsoome@freebsd.org> --- (In reply to sirdice from comment #2) vidvonsole is only valid with bios loade, not with uefi (loader.efi). There is this block of code: rv =3D efi_global_getenv("ConOut", buf, &sz); if (rv !=3D EFI_SUCCESS) { /* If we don't have any ConOut default to serial */ how =3D RB_SERIAL; goto out; } That does explain it... This patch should fix it tsoome@freebsd-2:/usr/src % git diff diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c index ca41cd4a2610..a21e8b0d96ba 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -735,6 +735,8 @@ parse_uefi_con_out(void) how =3D 0; sz =3D sizeof(buf); rv =3D efi_global_getenv("ConOut", buf, &sz); + if (rv !=3D EFI_SUCCESS) { + rv =3D efi_global_getenv("ConOutDev", buf, &sz); if (rv !=3D EFI_SUCCESS) { /* If we don't have any ConOut default to serial */ how =3D RB_SERIAL; tsoome@freebsd-2:/usr/src % --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253253-227-pr7aiHHoCv>