HomeFreeBSD

stand: More sensible defaults when ConOut is missing

Description

stand: More sensible defaults when ConOut is missing

When ConOut is missing, we used to default to serial. Except we did it
in the worst way possible by just setting the howto bits and not
updating the console setting, which lead to weird behavior where we'd
get some things on the video port, others on serial.

Instead, set console to "efi,comconsole" for this case. Also set
RB_MULTIPLE always (so we get dual consoles from the kernel) and or in
RB_SERIAL when we can't find GOPs that suggest the precense of a video
console. This will put output in the most places and have a sensible
default for 'primary' console.

Sponsored by: Netflix
Reviewed by: emaste, manu
Differential Revision: https://reviews.freebsd.org/D36299

(cherry picked from commit df065f699f1ff819bb9607c44a6754275ab335ed)

Details

Provenance
impAuthored on Aug 26 2022, 9:46 PM
Reviewer
emaste
Differential Revision
D36299: stand: More sensible defaults when ConOut is missing
Parents
rG39cfd1380a64: stand: Use bool for stage_offset_set
Branches
Unknown
Tags
Unknown