OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: nghappiness on January 28, 2023, 02:10:19 am

Title: [SOLVED] USB Serial port does not work after upgrade from 22.7.11 to 23.1
Post by: nghappiness on January 28, 2023, 02:10:19 am
I have a HP T740, I used a USB serial port to enable serial console to opnsense.  Since I upgraded to 23.1.  The serial console does not work anymore.  Please show me how to troubleshoot it.

[2/4/2023 update]   I reinstall 23.1 and restore my config.  The USB serial port on the T740 is working again...
Title: Re: USB Serial port does not work after upgrade from 22.7.11 to 23.1
Post by: feld on January 31, 2023, 07:21:17 pm
I have the same issue on my DEC840.

There's a known change with FreeBSD 13 and serial consoles. On other hardware I ran into the same thing where you need to disable Legacy UART in the BIOS which is what I did on my DEC840 so now my serial console works when the system is booted, but I can't see any of the boot process over serial anymore which is the opposite of what I had before.

The solution is to correct parameters in /boot/loader.conf, so hopefully OpnSense has an update soon to address this.
Title: Re: USB Serial port does not work after upgrade from 22.7.11 to 23.1
Post by: chemlud on January 31, 2023, 08:56:15 pm
Is the serial console the "Primary Console" under System -> Settings -> Administration?
Title: Re: USB Serial port does not work after upgrade from 22.7.11 to 23.1
Post by: nghappiness on February 01, 2023, 03:43:55 am
Is the serial console the "Primary Console" under System -> Settings -> Administration?

In 22.7.x   I had

Console driver checked
Primary Console EFI Console
Secondary Console Serial Console
USB-base Serial checked

After upgrade to 23.1,  it stuck at EFI framebuffer information.  I turn off the secondary console serial console.  I am able to boot up now.

But I lost the serial console access.
Title: Re: USB Serial port does not work after upgrade from 22.7.11 to 23.1
Post by: feld on February 01, 2023, 04:25:36 pm
Is the serial console the "Primary Console" under System -> Settings -> Administration?

Primary: Serial Console
Secondary: none
Serial Speed: 115200
USB-based serial: UNCHECKED


I did not change these settings, so I'm actually surprised to see that the USB serial is unchecked as I'd expect it to be checked...
Title: Re: USB Serial port does not work after upgrade from 22.7.11 to 23.1
Post by: franco on February 01, 2023, 04:54:05 pm
See https://docs.opnsense.org/hardware/serial_connectivity.html#legacy-uart-vs-uefi-serial required BIOS setting. It's an USB interface, but not a USB serial so leave unchecked.


Cheers,
Franco
Title: Re: USB Serial port does not work after upgrade from 22.7.11 to 23.1
Post by: Patrick M. Hausen on February 01, 2023, 09:54:36 pm
To elaborate on @franco's answer: it's a plain old UART to the OPNsense/FreeBSD operating system, not a USB serial connection.

Since many laptops nowadays come without serial ports there is a USB to serial converter for the desktop system you connect built into the appliance. So you plug in a USB cable, you get a USB serial device on Windows/Mac/Linux/whatever ... this serial device is connected to the serial port of OPNsense.

Hope that explains things.
Patrick
Title: Re: USB Serial port does not work after upgrade from 22.7.11 to 23.1
Post by: nghappiness on February 01, 2023, 11:26:35 pm
Hi Patrick,

Sorry,  I am a bit lost.  This is my current setup,  Serial console access was working in 22.7.

[HP T740 USB type A port ]---[USB A to Serial DB9 adapter] --- Null Modem cable ---Serial port [Windows laptop]

Should I check the USB Serial port option?

I checked the HP T740, I don't find a way to disable the Legacy UART.