From owner-freebsd-bugs@freebsd.org Thu Feb 4 21:28:00 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 86B0D52F815 for ; Thu, 4 Feb 2021 21:28:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4DWs8w38QWz3BnV for ; Thu, 4 Feb 2021 21:28:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 6C1DA52F814; Thu, 4 Feb 2021 21:28:00 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6BE9352F813 for ; Thu, 4 Feb 2021 21:28:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DWs8w2NwPz3C1S for ; Thu, 4 Feb 2021 21:28:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4534313205 for ; Thu, 4 Feb 2021 21:28:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 114LS0Bu092802 for ; Thu, 4 Feb 2021 21:28:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 114LS0i8092801 for bugs@FreeBSD.org; Thu, 4 Feb 2021 21:28:00 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 253253] stable/13: efi boot always defaults to cons: serial Date: Thu, 04 Feb 2021 21:28:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: sirdice@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2021 21:28:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253253 --- Comment #5 from sirdice@gmail.com --- Did this: root@molly:/usr/src/stand/efi/loader # git diff diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c index ca41cd4a261..9d81003acc4 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -735,6 +735,9 @@ 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; Build is good.=20 root@molly:/usr/src/stand/efi/loader # cp /usr/obj/usr/src/amd64.amd64/stand/efi/loader/loader_lua.efi /boot/efi/EFI/BOOT/bootx64.efi Then rebooted. Yes! That works. Cons: is now video by default. I even got t= he cool graphics loader :) --=20 You are receiving this mail because: You are the assignee for the bug.=