public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant Edwards <grant.b.edwards@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Serial console stops working as soon as openrc starts
Date: Sat, 9 Sep 2023 19:39:51 -0000 (UTC)	[thread overview]
Message-ID: <udihm7$15iu$1@ciao.gmane.io> (raw)
In-Reply-To: udiftt$ibl$1@ciao.gmane.io

On 2023-09-09, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> I've set up a serial console by adding the following to my kernel
> command line:
>
>     console=ttyS0,115200 console=tty1
>
> It works fine for the first few seconds as the kernel starts up. All
> of the expected messages are sent out ttyS0.
>
> But, soon after init starts, the serial console stops working.

That's because one of the first things openrc runs in
/etc/init.d/dmesg, and it changes the kernel logging level to the
value defined in /etc/conf.d/dmesg (which defaults to 1).

Changing the level in /etc/conf.d/dmesg from 1 to 8 allowed the serial
console to continue working as I wanted it to.

[I spent an entire day trying to get serial logging to work on Ubuntu
with systemd, and got exactly nowhere. After replacing Ubuntu/systemd
with Gentoo/openrc it didn't take long to track down the answer in the
openrc docs.]




  reply	other threads:[~2023-09-09 19:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-09 19:09 [gentoo-user] Serial console stops working as soon as openrc starts Grant Edwards
2023-09-09 19:39 ` Grant Edwards [this message]
2023-09-09 20:48   ` [gentoo-user] " Dale
2023-09-09 21:08     ` Grant Edwards
2023-09-09 21:50       ` Dale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='udihm7$15iu$1@ciao.gmane.io' \
    --to=grant.b.edwards@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox