How to enable SOL

Yang Zhang yang.zhang.wz at gmail.com
Fri Jun 13 20:21:45 AEST 2025


I found the reason. The default console ID used by sol activate is
"default". After changing the ID in server.ttyS2.conf to "default", I
can see the host's output via sol activate.

On Fri, Jun 13, 2025 at 4:36 PM Yang Zhang <yang.zhang.wz at gmail.com> wrote:
>
> Hi All,
>
> I am trying to set up SOL on my platform. On my platform, ttyS2 is
> connected to the host.
> I can use ssh -p 2202 localhost to see the output from the host, but
> when I run ipmitool sol activate, it shows nothing except the
> following:
>
> ipmitool -I lanplus -C 17 -H 192.168.10.178 -U root -P 0penBmc sol activate
> [SOL Session operational.  Use ~? for help]
>
> I guess the reason is that I haven’t bound SOL to ttyS2, and I don’t
> know how to do this. Are there any settings to bind SOL to ttyS2?
>
> Or maybe there are other configurations I need to add?
>
> Here is the config I used:
> obmc-console_%.bbappend:
> FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
> RDEPENDS:${PN} += "bash"
>
> # Declare port specific config files
> OBMC_CONSOLE_TTYS = "ttyS0 ttyS2"
> CONSOLE_CLIENT = "2200 2202 "
>
> SRC_URI += " \
>              ${@compose_list(d, 'CONSOLE_SERVER_CONF_FMT',
> 'OBMC_CONSOLE_TTYS')} \
>              ${@compose_list(d, 'CONSOLE_CLIENT_CONF_FMT', 'CONSOLE_CLIENT')} \
>            "
>
> SYSTEMD_SERVICE:${PN}:append = " \
>                                 ${@compose_list(d,
> 'CONSOLE_CLIENT_SERVICE_FMT', 'CONSOLE_CLIENT')} \
>                                "
>
> do_install:append() {
>     # Install the console client configurations
>     install -m 0644 ${UNPACKDIR}/client.*.conf ${D}${sysconfdir}/${BPN}/
> }
>
> $ cat server.ttyS0.conf
> # console-id is default to obmc-console
> local-tty = ttyS0
> local-tty-baud = 115200
>
> $ cat client.2200.conf
> # console-id is default to obmc-console
>
> $ cat server.ttyS2.conf
> local-tty = ttyS2
> local-tty-baud = 115200
> console-id = ttyS2
>
> $ cat client.2202.conf
> console-id = ttyS2
>
>
> --
> best regards
> yang



-- 
best regards
yang


More information about the openbmc mailing list