Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 2026 17:48:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 292206] loader generates invalid hw.uart.console value when serial console redirection is disabled, preventing system from booting
Message-ID:  <bug-292206-227-xykQLDxGwz@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-292206-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292206

--- Comment #5 from commit-hook@FreeBSD.org ---
A commit in branch stable/15 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=34c94bee0cee0cbf67e14d47809acc751fca8da5

commit 34c94bee0cee0cbf67e14d47809acc751fca8da5
Author:     Jarmo Jaakkola <jarmo.jaakkola@roskakori.fi>
AuthorDate: 2026-01-08 05:14:56 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-01-13 17:30:21 +0000

    loader.efi: Only use SPCR if enabled.

    SerialPort in the SPCR is zeroed when serial redirection is disabled,
    rather than the SPCR being omitted from the ACPI tables ony many
    systems. Check to see that SerialPort.Address is non-zero before using.

    FreeBSD would fail to boot on systems that could have a serial port
    redireciton, but don't have it enabled because the loader would create a
    bogus hw.uart.console. While one could unset this value to boot, you
    couldn't do that automatically very easily. Instead, don't even look
    at the SPCR table if the SerialPort is zero'd.

    PR: 292206
    MFC After: 3 days
    Sponsored by: Netflix
    Co-authored-by: Warner Losh <imp@FreeBSD.org>
    Closes:  https://github.com/freebsd/freebsd-src/pull/1948

    (cherry picked from commit d82698ac68c23d856716dc9f6524b9ef363d7eba)

 stand/efi/loader/main.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-292206-227-xykQLDxGwz>