Project

General

Profile

Actions

Feature #14608

closed

ttymon should use tty-mode property

Added by Toomas Soome 5 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Update ttymon to identify serial device behind /dev/console and use ttyX-mode property value to set up the line.

This implementation is allowing ttymon to fetch line defaults from /etc/ttydefs, if we do have ttyX-mode property, merge it with line properties to use currently configured line speed.

Testing done: build/install/boot, confirm console setup and functionality.

For test, I did set up serial console redirection from BIOS (supermicro X10SAE, no BMC, however), and did remove console variable setup from /boot/solaris/bootenv.rc and loader config files. In both UEFI and BIOS boot, console variable was set to use serial port (tested both ttya and ttyb, physical ports on this hardware) and ttymon did pick up correct settings and console was usable on serial through poweron to console login (tested with default speed of 115200). With redirection disabled, the system defaulted to use local console (vga) again.

Dual console (serial + vga) enables access to console while boot loader is running - so we can use vga in case there is something wrong about serial.


Related issues

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

Actions
Related to illumos gate - Feature #14607: Add CONS_GETDEV so we can see which port is /dev/consoleClosedToomas Soome

Actions
Actions #1

Updated by Electric Monk 5 months ago

  • Gerrit CR set to 2091
Actions #2

Updated by Toomas Soome 5 months ago

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

Updated by Toomas Soome 5 months ago

  • Description updated (diff)
Actions #4

Updated by Toomas Soome 4 months ago

  • Related to Feature #14607: Add CONS_GETDEV so we can see which port is /dev/console added
Actions #5

Updated by Toomas Soome about 1 month ago

  • Description updated (diff)
Actions #6

Updated by Electric Monk about 1 month ago

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

git commit 902bba376031b794865234f1621102c7f4bf9d2b

commit  902bba376031b794865234f1621102c7f4bf9d2b
Author: Toomas Soome <tsoome@me.com>
Date:   2022-07-13T18:54:45.000Z

    14608 ttymon should use tty-mode property
    Reviewed by: Jason King <jason.brian.king+illumos@gmail.com>
    Approved by: Robert Mustacchi <rm@fingolfin.org>

Actions

Also available in: Atom PDF