Project

General

Profile

Actions

Feature #14580

closed

loader.efi: detect console from ConOut/ConOutDev

Added by Toomas Soome 5 months ago. Updated 29 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Walk devices listed in ConOut (ConOutDev) variable(s) and set up console accordingly.

We need to check both variables because ConOut may be missing. In fact, both of them may be missing, in which case, we default to efi console (video). I have witnessed only laptop missing both ConOut and ConOutDev, therefore fall back to video should be justified (no serial on laptops).

Testing done: tested on my supermicro (physical system). For test, one should remove console and ttyX-mode lines from /boot/solaris/bootenv.rc and remove console line from /boot/defaults/loader.conf.


Related issues

Related to illumos gate - Feature #12389: loader should consult with ACPI SPCR table for serial consoleClosedToomas Soome

Actions
Related to illumos gate - Bug #14609: loader: os console in options menu should use first name from listClosedToomas Soome

Actions
Related to illumos gate - Bug #14533: loader.efi: detect console from ConsOutDuplicateToomas Soome

Actions
Actions #1

Updated by Toomas Soome 5 months ago

  • Tracker changed from Bug to Feature
  • Description updated (diff)
  • Category set to bootloader
  • Status changed from New to In Progress
  • Assignee set to Toomas Soome
  • % Done changed from 0 to 90
Actions #2

Updated by Electric Monk 5 months ago

  • Gerrit CR set to 2047
Actions #3

Updated by Gary Mills 5 months ago

I have this setting in /boot/loader.conf on my supermicro system:

console="ttyc" 

Will this still work, or should I move it?

Actions #4

Updated by Toomas Soome 5 months ago

Gary Mills wrote in #note-3:

I have this setting in /boot/loader.conf on my supermicro system:

[...]

Will this still work, or should I move it?

it is fine; what we try to do here (and in 12389 for BIOS version) is, we set initial value for console, any later settings will override the detected value.

Actions #5

Updated by Toomas Soome 5 months ago

  • Related to Feature #12389: loader should consult with ACPI SPCR table for serial console added
Actions #6

Updated by Toomas Soome 4 months ago

  • Related to Bug #14609: loader: os console in options menu should use first name from list added
Actions #7

Updated by Electric Monk 29 days ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit e27085df90712f99e5ea3d44ab0b83c73ac1bf52

commit  e27085df90712f99e5ea3d44ab0b83c73ac1bf52
Author: Toomas Soome <tsoome@me.com>
Date:   2022-07-11T07:42:55.000Z

    14580 loader.efi: detect console from ConOut/ConOutDev
    Reviewed by: Garrett D'Amore <garrett@damore.org>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions #8

Updated by Toomas Soome 29 days ago

  • Related to Bug #14533: loader.efi: detect console from ConsOut added
Actions

Also available in: Atom PDF