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>

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

[-- Attachment #1 --]
On Thu, Jan 23, 2025, 2:19 PM Garrett Wollman <wollman@bimajority.org>
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=YES' 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 the
> > 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=YES
> boot_multicons=YES
> boot_serial=YES
> comconsole_pcidev=
> comconsole_port=760
> comconsole_speed=115200
> console=efi
> efi-version=2.70
> efi_8250_uid=0
> efi_com_speed=115195
> efi_max_resolution=1x1
> hint.uart.1.at=acpi
> hint.uart.1.flags=16
> hint.uart.1.port=0x2F8
> hw.uart.console=io:0x2f8,br:115200
> smbios.system.product=PowerEdge 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 =
> 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 =
> UsbHID(0xFFFF,0xFFFF,0x1,0x1),/PciRoot(0x0)/Pci(0x1F,0x0)/Acpi(PNP0303,0x0),/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
>
>

[-- Attachment #2 --]
<div dir="auto"><div><br><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Jan 23, 2025, 2:19 PM Garrett Wollman &lt;<a href="mailto:wollman@bimajority.org">wollman@bimajority.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Resurrecting 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></blockquote></div></div><div dir="auto"><br></div><div dir="auto">What version?</div><div dir="auto"></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="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="mailto:imp@bsdimp.com" target="_blank" rel="noreferrer">imp@bsdimp.com</a>&gt; said:<br>
<br>
&gt; But, the tl;dr is likely just adding &#39;boot_serial=YES&#39; and the<br>
&gt; &quot;hw.uart.console&quot;<br>
&gt; line above to /loader.conf and deleting all the comconsole lines (since they<br>
&gt; will result in doubled output if the console really is redirected at the<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.  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     0x40000000, 0x300000<br>
dimensions     1024 x 768<br>
stride         1024<br>
masks          0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000<br>
[then nothing]<br>
<br>
(The system doesn&#39;t have a network connection yet, and won&#39;t have SSH<br>
enabled when it&#39;s finally installed, so I actually need the serial<br>
console to work.  I have some other UEFI systems in a remote DC that<br>
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=YES<br>
boot_multicons=YES<br>
boot_serial=YES<br>
comconsole_pcidev=<br>
comconsole_port=760<br>
comconsole_speed=115200<br>
console=efi<br>
efi-version=2.70<br>
efi_8250_uid=0<br>
efi_com_speed=115195<br>
efi_max_resolution=1x1<br>
<a href="http://hint.uart.1.at" rel="noreferrer noreferrer" target="_blank">hint.uart.1.at</a>=acpi<br>
hint.uart.1.flags=16<br>
hint.uart.1.port=0x2F8<br>
hw.uart.console=io:0x2f8,br:115200<br>
smbios.system.product=PowerEdge 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                                   <br>
global NV,BS,RS ConOut = 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()<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Odd band rate. Makes me suspect serial clock rate. But this is from the bios..</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
OK    <br>
OK efi-show -v ConIn<br>
global NV,BS,RS ConIn = UsbHID(0xFFFF,0xFFFF,0x1,0x1),/PciRoot(0x0)/Pci(0x1F,0x0)/Acpi(PNP0303,0x0),/PciRoot(0x0)/Pci(0x1F,0x0)/Serial(0x0)/Uart(115195,8,N,1)/VenVt100()<br>
<br>
...ao I&#39;m guessing that this is taking precedence over `boot_serial`?<br>
Is it safe to just swap these around?<br></blockquote></div></div><div dir="auto"><br></div><div dir="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="auto"><br></div><div dir="auto">Warner </div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-GAWollman<br>
<br>
</blockquote></div></div></div>
home | help

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