Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2025 23:50:26 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Garrett Wollman <wollman@bimajority.org>
Cc:        Freebsd-stable List <stable@freebsd.org>
Subject:   Re: not working /dev/console
Message-ID:  <CANCZdfp5vJag=z%2Bf-zgWpdxtTZ12xHGGsses5qrCokEZSmSymg@mail.gmail.com>
In-Reply-To: <26514.45659.142313.471958@hergotha.csail.mit.edu>
References:  <DBE9ABDF-092F-4198-9E14-DF2E0AAB3638@cs.huji.ac.il> <Z0bcQvu36o-rqsJn@fc.opsec.eu> <CAA78225-E266-4CBE-807D-B72D9BCE58E8@cs.huji.ac.il> <CANCZdfoQtYLP62rWO6oTHg4ajbV7SK=ehq2jkv1o0ZX8_im0jw@mail.gmail.com> <365D866D-F7D2-4DB6-AFFB-B4C3829D8467@cs.huji.ac.il> <CANCZdfoiJE6-aKKFhafXPMY8FOg4nEBmhf2hN%2BcJXzMVrkyiqg@mail.gmail.com> <26514.45659.142313.471958@hergotha.csail.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000022f3c062c6e257a
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, Jan 23, 2025, 2:19=E2=80=AFPM Garrett Wollman <wollman@bimajority.o=
rg>
wrote:

> Resurrecting an old thread, because I find myself in a position where
> I have to get a serial console working on a UEFI-only Dell R360 (with
> iDRAC Express, so no remote video console that I can look at).
>

What version?

>
> <<On Wed, 27 Nov 2024 09:42:24 -0700, Warner Losh <imp@bsdimp.com> said:
>
> > But, the tl;dr is likely just adding 'boot_serial=3DYES' and the
> > "hw.uart.console"
> > line above to /loader.conf and deleting all the comconsole lines (since
> they
> > will result in doubled output if the console really is redirected at th=
e
> > UEFI
> > level, see below for more details on all this :_
>
> So this does not seem to be working for me.  The server boots and the
> loader is accessible over SOL so I am pretty confident that it's
> configured correctly on the UEFI side, but when booting the kernel,
> the only thing it displays is the initial probe message where it
> identifies where the EFI framebuffer is -- nothing else goes to the
> serial port.
>
> OK boot -s
> staging 0x1a800000 (not copying) tramp 0x284f1000 PT4 0x1a6e5000
> Start @ 0xffffffff803081e0 ...
> EFI framebuffer information:
> addr, size     0x40000000, 0x300000
> dimensions     1024 x 768
> stride         1024
> masks          0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000
> [then nothing]
>
> (The system doesn't have a network connection yet, and won't have SSH
> enabled when it's finally installed, so I actually need the serial
> console to work.  I have some other UEFI systems in a remote DC that
> hav broken consoles too, but fixing them requires a disruptive outage,
> so I'm trying to get it fixed first on a new machine.)
>
> Running "show" in the loader tells me the followin things are set:
>
> beastie_disable=3DYES
> boot_multicons=3DYES
> boot_serial=3DYES
> comconsole_pcidev=3D
> comconsole_port=3D760
> comconsole_speed=3D115200
> console=3Defi
> efi-version=3D2.70
> efi_8250_uid=3D0
> efi_com_speed=3D115195
> efi_max_resolution=3D1x1
> hint.uart.1.at=3Dacpi
> hint.uart.1.flags=3D16
> hint.uart.1.port=3D0x2F8
> hw.uart.console=3Dio:0x2f8,br:115200
> smbios.system.product=3DPowerEdge R360
> [a bunch of irrelevant stuff elided]
>
> The loader reports the following in `efi-show` (which if it is
> documented at all I do not know where):
>
> OK efi-show -v ConOut
> global NV,BS,RS ConOut =3D
> PciRoot(0x0)/Pci(0x1C,0x4)/Pci(0x0,0x0)/Pci(0x0,0x0)/AcpiAdr(0x80010100),=
/PciRoot(0x0)/Pci(0x1F,0x0)/Serial(0x0)/Uart(115195,8,N,1)/VenVt100()
>

Odd band rate. Makes me suspect serial clock rate. But this is from the
bios..

OK
> OK efi-show -v ConIn
> global NV,BS,RS ConIn =3D
> UsbHID(0xFFFF,0xFFFF,0x1,0x1),/PciRoot(0x0)/Pci(0x1F,0x0)/Acpi(PNP0303,0x=
0),/PciRoot(0x0)/Pci(0x1F,0x0)/Serial(0x0)/Uart(115195,8,N,1)/VenVt100()
>
> ...ao I'm guessing that this is taking precedence over `boot_serial`?
> Is it safe to just swap these around?
>

Boot -s should do that. If this is 14 can you see if 15 works? I've fixed a
few things.

Warner

>
> -GAWollman
>
>

--000000000000022f3c062c6e257a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote gmail_quote_contai=
ner"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Jan 23, 2025, 2:19=E2=80=
=AFPM Garrett Wollman &lt;<a href=3D"mailto:wollman@bimajority.org">wollman=
@bimajority.org</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Resu=
rrecting an old thread, because I find myself in a position where<br>
I have to get a serial console working on a UEFI-only Dell R360 (with<br>
iDRAC Express, so no remote video console that I can look at).<br></blockqu=
ote></div></div><div dir=3D"auto"><br></div><div dir=3D"auto">What version?=
</div><div dir=3D"auto"></div><div dir=3D"auto"><div class=3D"gmail_quote g=
mail_quote_container"><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
&lt;&lt;On Wed, 27 Nov 2024 09:42:24 -0700, Warner Losh &lt;<a href=3D"mail=
to:imp@bsdimp.com" target=3D"_blank" rel=3D"noreferrer">imp@bsdimp.com</a>&=
gt; said:<br>
<br>
&gt; But, the tl;dr is likely just adding &#39;boot_serial=3DYES&#39; and t=
he<br>
&gt; &quot;hw.uart.console&quot;<br>
&gt; line above to /loader.conf and deleting all the comconsole lines (sinc=
e they<br>
&gt; will result in doubled output if the console really is redirected at t=
he<br>
&gt; UEFI<br>
&gt; level, see below for more details on all this :_<br>
<br>
So this does not seem to be working for me.=C2=A0 The server boots and the<=
br>
loader is accessible over SOL so I am pretty confident that it&#39;s<br>
configured correctly on the UEFI side, but when booting the kernel,<br>
the only thing it displays is the initial probe message where it<br>
identifies where the EFI framebuffer is -- nothing else goes to the<br>
serial port.<br>
<br>
OK boot -s<br>
staging 0x1a800000 (not copying) tramp 0x284f1000 PT4 0x1a6e5000<br>
Start @ 0xffffffff803081e0 ...<br>
EFI framebuffer information:<br>
addr, size=C2=A0 =C2=A0 =C2=A00x40000000, 0x300000<br>
dimensions=C2=A0 =C2=A0 =C2=A01024 x 768<br>
stride=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01024<br>
masks=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0x00ff0000, 0x0000ff00, 0x000000ff,=
 0xff000000<br>
[then nothing]<br>
<br>
(The system doesn&#39;t have a network connection yet, and won&#39;t have S=
SH<br>
enabled when it&#39;s finally installed, so I actually need the serial<br>
console to work.=C2=A0 I have some other UEFI systems in a remote DC that<b=
r>
hav broken consoles too, but fixing them requires a disruptive outage,<br>
so I&#39;m trying to get it fixed first on a new machine.)<br>
<br>
Running &quot;show&quot; in the loader tells me the followin things are set=
:<br>
<br>
beastie_disable=3DYES<br>
boot_multicons=3DYES<br>
boot_serial=3DYES<br>
comconsole_pcidev=3D<br>
comconsole_port=3D760<br>
comconsole_speed=3D115200<br>
console=3Defi<br>
efi-version=3D2.70<br>
efi_8250_uid=3D0<br>
efi_com_speed=3D115195<br>
efi_max_resolution=3D1x1<br>
<a href=3D"http://hint.uart.1.at" rel=3D"noreferrer noreferrer" target=3D"_=
blank">hint.uart.1.at</a>=3Dacpi<br>
hint.uart.1.flags=3D16<br>
hint.uart.1.port=3D0x2F8<br>
hw.uart.console=3Dio:0x2f8,br:115200<br>
smbios.system.product=3DPowerEdge R360<br>
[a bunch of irrelevant stuff elided]<br>
<br>
The loader reports the following in `efi-show` (which if it is<br>
documented at all I do not know where):<br>
<br>
OK efi-show -v ConOut=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<b=
r>
global NV,BS,RS ConOut =3D PciRoot(0x0)/Pci(0x1C,0x4)/Pci(0x0,0x0)/Pci(0x0,=
0x0)/AcpiAdr(0x80010100),/PciRoot(0x0)/Pci(0x1F,0x0)/Serial(0x0)/Uart(11519=
5,8,N,1)/VenVt100()<br></blockquote></div></div><div dir=3D"auto"><br></div=
><div dir=3D"auto">Odd band rate. Makes me suspect serial clock rate. But t=
his is from the bios..</div><div dir=3D"auto"><br></div><div dir=3D"auto"><=
div class=3D"gmail_quote gmail_quote_container"><blockquote class=3D"gmail_=
quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1=
ex">
OK=C2=A0 =C2=A0 <br>
OK efi-show -v ConIn<br>
global NV,BS,RS ConIn =3D UsbHID(0xFFFF,0xFFFF,0x1,0x1),/PciRoot(0x0)/Pci(0=
x1F,0x0)/Acpi(PNP0303,0x0),/PciRoot(0x0)/Pci(0x1F,0x0)/Serial(0x0)/Uart(115=
195,8,N,1)/VenVt100()<br>
<br>
...ao I&#39;m guessing that this is taking precedence over `boot_serial`?<b=
r>
Is it safe to just swap these around?<br></blockquote></div></div><div dir=
=3D"auto"><br></div><div dir=3D"auto">Boot -s should do that. If this is 14=
 can you see if 15 works? I&#39;ve fixed a few things.</div><div dir=3D"aut=
o"><br></div><div dir=3D"auto">Warner=C2=A0</div><div dir=3D"auto"><div cla=
ss=3D"gmail_quote gmail_quote_container"><blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-GAWollman<br>
<br>
</blockquote></div></div></div>

--000000000000022f3c062c6e257a--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfp5vJag=z%2Bf-zgWpdxtTZ12xHGGsses5qrCokEZSmSymg>