Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2024 09:20:40 +0200
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Robert Schulze <rs@bytecamp.net>, stable@freebsd.org
Subject:   Re: not working /dev/console
Message-ID:  <3B9CAA77-1272-4388-95D5-FBE0D78C6EC0@cs.huji.ac.il>
In-Reply-To: <CANCZdfrs=2mw3pcqG_is8zeLZ07cPropcVab96tGU1Y%2BgycjqQ@mail.gmail.com>
References:  <DBE9ABDF-092F-4198-9E14-DF2E0AAB3638@cs.huji.ac.il> <27224122-3f36-4e88-87b4-c4cfc0a6b7d8@bytecamp.net> <CANCZdfrs=2mw3pcqG_is8zeLZ07cPropcVab96tGU1Y%2BgycjqQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_4FF191DA-24BD-4DF0-A370-CD2226D6646A
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On 27 Nov 2024, at 18:44, Warner Losh <imp@bsdimp.com> wrote:
>=20
>=20
>=20
> On Wed, Nov 27, 2024 at 3:59=E2=80=AFAM Robert Schulze =
<rs@bytecamp.net <mailto:rs@bytecamp.net>> wrote:
> Hello,
>=20
> Am 27.11.24 um 09:34 schrieb Daniel Braniss:
> > Hi,
> > when the console is not uart0, init=E2=80=99s output, which I assume =
uses /dev/console
> > is lost. Boot, kernel and login work ok, also debugger.
>=20
> you can give the loader a hint, which uart is considered a console.
> In my case, any IPMI-console on uart1 works with the following =
settings=20
> in /boot/loader.conf:
>=20
> --
> boot_multicons=3D"yes"
> comconsole_port=3D"0x2f8"
>=20
> hint.uart.0.flags=3D"0x0"
> hint.uart.1.flags=3D"0x10"
> hint.uart.1.baud=3D"115200"
> --
>=20
> hint.uart.N.flags=3D"0x10" means: this is a potential system console.
> See uart(4) manpage for this.
>=20
> hw.uart.console is preferred over the flags. In fact, nobody should be =
setting
> the flags at all. I should remove them from the man page, or burry =
them
> in a footnote somewhere.
>=20
> So boot_mulitcons w/o boot_serial=3Dyes will mean that video is the
> primary console and serial the secondary, and /etc/rc only runs on
> the primary console.
>=20
> Warner

hi Warner:
first some facts:
my problems are with old dell PowerEdge r720, r320
which have old bios 2020/2019
both have COM2 as boot/serial redirect - tried setting it to COM1 but =
that was even worse
running diskless FreeBSD 14.2

so after much trial and mostly errors,
	- the initial messages from boot (loader.efi) is garbled - each =
character appears twice
	- once kernel takes over all is ok, including init(8) output
at the moment this works with:
	hint.uart.1.flags=3D0x10
	hw.uart.console=3D=E2=80=9Cio:760,br:115200=E2=80=9D
	boot_serial=3D=E2=80=9CYES=E2=80=9D
	console=3D=E2=80=9Cefi,comconsole=E2=80=9D
	comconsole_port=3D=E2=80=9C0xf8=E2=80=9D

need more time (and patience) to check which combination of the above =
does the trick
thanks
	danny
PS: hw.uart.console: I can=E2=80=99t pass it as argument via DHCP which =
is a pity - most of others are ok

>=20
> =20
> regards,
> Robert Schulze


--Apple-Mail=_4FF191DA-24BD-4DF0-A370-CD2226D6646A
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 27 Nov 2024, at 18:44, Warner Losh &lt;<a =
href=3D"mailto:imp@bsdimp.com" class=3D"">imp@bsdimp.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><meta =
charset=3D"UTF-8" class=3D""><br class=3D"Apple-interchange-newline"><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
16px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><div =
class=3D"gmail_quote" style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 16px; font-style: normal; font-variant-caps: =
normal; font-weight: 400; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Nov 27, 2024 at =
3:59=E2=80=AFAM Robert Schulze &lt;<a href=3D"mailto:rs@bytecamp.net" =
class=3D"">rs@bytecamp.net</a>&gt; wrote:<br class=3D""></div><blockquote =
class=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; =
border-left-width: 1px; border-left-style: solid; border-left-color: =
rgb(204, 204, 204); padding-left: 1ex;">Hello,<br class=3D""><br =
class=3D"">Am 27.11.24 um 09:34 schrieb Daniel Braniss:<br class=3D"">&gt;=
 Hi,<br class=3D"">&gt; when the console is not uart0, init=E2=80=99s =
output, which I assume uses /dev/console<br class=3D"">&gt; is lost. =
Boot, kernel and login work ok, also debugger.<br class=3D""><br =
class=3D"">you can give the loader a hint, which uart is considered a =
console.<br class=3D"">In my case, any IPMI-console on uart1 works with =
the following settings<span =
class=3D"Apple-converted-space">&nbsp;</span><br class=3D"">in =
/boot/loader.conf:<br class=3D""><br class=3D"">--<br =
class=3D"">boot_multicons=3D"yes"<br class=3D"">comconsole_port=3D"0x2f8"<=
br class=3D""><br class=3D"">hint.uart.0.flags=3D"0x0"<br =
class=3D"">hint.uart.1.flags=3D"0x10"<br =
class=3D"">hint.uart.1.baud=3D"115200"<br class=3D"">--<br class=3D""><br =
class=3D"">hint.uart.N.flags=3D"0x10" means: this is a potential system =
console.<br class=3D"">See uart(4) manpage for this.<br =
class=3D""></blockquote><div class=3D""><br class=3D""></div><div =
class=3D"">hw.uart.console is preferred over the flags. In fact, nobody =
should be setting</div><div class=3D"">the flags at all. I should remove =
them from the man page, or burry them</div><div class=3D"">in a footnote =
somewhere.</div><div class=3D""><br class=3D""></div><div class=3D"">So =
boot_mulitcons w/o boot_serial=3Dyes will mean that video is =
the</div><div class=3D"">primary console and serial the secondary, and =
/etc/rc only runs on</div><div class=3D"">the primary console.</div><div =
class=3D""><br class=3D""></div><div =
class=3D"">Warner</div></div></div></blockquote><div><br =
class=3D""></div>hi Warner:</div><div>first some facts:</div><div>my =
problems are with old dell PowerEdge r720, r320</div><div>which have old =
bios 2020/2019</div><div>both have COM2 as boot/serial redirect - tried =
setting it to COM1 but that was even worse</div><div>running diskless =
FreeBSD 14.2</div><div><br class=3D""></div><div>so after much trial and =
mostly errors,</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>- the initial messages from boot =
(loader.efi) is garbled - each character appears twice</div><div><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>- once =
kernel takes over all is ok, including init(8) output</div><div>at the =
moment this works with:</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	=
</span>hint.uart.1.flags=3D0x10</div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>hw.uart.console=3D<font =
color=3D"#000000" class=3D""><span style=3D"caret-color: rgb(0, 0, 0);" =
class=3D"">=E2=80=9Cio:760,br:115200=E2=80=9D</span></font></div><div><fon=
t color=3D"#000000" class=3D""><span class=3D"Apple-tab-span" =
style=3D"caret-color: rgb(0, 0, 0); white-space: pre;">	=
</span>boot_serial=3D=E2=80=9CYES<span style=3D"caret-color: rgb(0, 0, =
0);" class=3D"">=E2=80=9D</span></font></div><div><font color=3D"#000000" =
class=3D""><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>console=3D=E2=80=9Cefi,comconsole<span style=3D"caret-color: =
rgb(0, 0, 0);" class=3D"">=E2=80=9D</span></font></div><div><font =
color=3D"#000000" class=3D""><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>comconsole_port=3D=E2=80=9C0xf8<spa=
n style=3D"caret-color: rgb(0, 0, 0);" =
class=3D"">=E2=80=9D</span></font></div><div><font color=3D"#000000" =
class=3D""><br class=3D""></font></div><div><font color=3D"#000000" =
class=3D"">need more time (and patience) to check which combination of =
the above does the trick</font></div><div><font color=3D"#000000" =
class=3D"">thanks</font></div><div><font color=3D"#000000" =
class=3D""><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span><span style=3D"caret-color: rgb(0, 0, 0);" =
class=3D"">danny</span></font></div><div><font color=3D"#000000" =
class=3D"">PS:&nbsp;hw.uart.console: I can=E2=80=99t pass it as argument =
via DHCP which is a pity - most of others are ok</font></div><div><font =
color=3D"#000000" class=3D""><span style=3D"caret-color: rgb(0, 0, 0);" =
class=3D""><br class=3D""></span></font></div><div><blockquote =
type=3D"cite" class=3D""><div class=3D""><div class=3D"gmail_quote" =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
16px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;"><div =
class=3D""><br class=3D""></div><div class=3D"">&nbsp;</div><blockquote =
class=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; =
border-left-width: 1px; border-left-style: solid; border-left-color: =
rgb(204, 204, 204); padding-left: 1ex;">regards,<br class=3D"">Robert =
Schulze</blockquote></div></div></blockquote></div><br =
class=3D""></body></html>=

--Apple-Mail=_4FF191DA-24BD-4DF0-A370-CD2226D6646A--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B9CAA77-1272-4388-95D5-FBE0D78C6EC0>