Hi Mark,

On 1/21/25 07:07, Mark Kettenis wrote:
With "ACPI" I can use the serial console with efiboot, but the kernel
output only shows up on the display after the kernel is loaded.

To support the serial console in "ACPI" mode, an SPCR table is needed.
Probably something that should be enabled in your EDK II build.

It looks like the SPCR is compiled and built in, but I'm not familiar
with EDK II...

The OpenBSD bootloader prints the list of ACPI tables and SPCR isn't
printed in the screenshot you made.  It might be built in, but not
enabled.  There might be an option in the EDK II firmware setup menu
to enable serial console redirection.

I checked the UEFI again, but I'm not sure if SPCR is built in and enabled...

At least the serial console works under mainline Linux in ACPI mode.

Linux might be looking at the DBG2 table, which is present.  OpenBSD
doesn't look at that yet.  But I'm looking into that now.  If the
Orion O6 board is primarily targeted at people building some sort of
desktop machine rather than a server, it might actually make sense to
only provide DBG2 and not SPCR.  Such a configuration would indicate
that the framebuffer should be the default output choice, but that a
serial port is available for debug output.  The OpenBSD implementation
I'm considering is that one could switch to serial console in this
case by typing something like "set tty com0" at the boot> prompt.

I checked mainline Linux dmesg (acpi),

| [    0.000000] ACPI: Use ACPI SPCR as default console: Yes

I don't understand what's going on.

Here is full dmesg:
https://drive.google.com/file/d/1islmdKWJUOnFoJLP3lNv3hyMoVXhv6yl/view?usp=sharing

Best regards,

--
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.

Reply via email to