Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2025 07:29:57 +0200
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        Garrett Wollman <wollman@bimajority.org>
Cc:        Warner Losh <imp@bsdimp.com>, Freebsd-stable List <stable@freebsd.org>
Subject:   Re: not working /dev/console
Message-ID:  <71C4AC70-961C-4DAF-A96D-82142C1BE74D@cs.huji.ac.il>
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
Try adding:
	boot_serial=3Dyes
To
	loader.conf


> On 23 Jan 2025, at 23:19, Garrett Wollman <wollman@bimajority.org> =
wrote:
>=20
> 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).
>=20
> <<On Wed, 27 Nov 2024 09:42:24 -0700, Warner Losh <imp@bsdimp.com> =
said:
>=20
>> 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 =
the
>> UEFI
>> level, see below for more details on all this :_
>=20
> 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.
>=20
> 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]
>=20
> (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.)
>=20
> Running "show" in the loader tells me the followin things are set:
>=20
> 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]
>=20
> The loader reports the following in `efi-show` (which if it is
> documented at all I do not know where):
>=20
> OK efi-show -v ConOut                                  =20
> 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()
> OK   =20
> OK efi-show -v ConIn
> global NV,BS,RS ConIn =3D =
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()
>=20
> ...ao I'm guessing that this is taking precedence over `boot_serial`?
> Is it safe to just swap these around?
>=20
> -GAWollman
>=20
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?71C4AC70-961C-4DAF-A96D-82142C1BE74D>