Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

21->22 upgrade - loss of serial port at 115200 #5988

Closed
dirkx opened this issue Aug 23, 2022 · 7 comments
Closed

21->22 upgrade - loss of serial port at 115200 #5988

dirkx opened this issue Aug 23, 2022 · 7 comments
Labels
support Community support

Comments

@dirkx
Copy link

dirkx commented Aug 23, 2022

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug

After a routine 21->22 upgrade; the com console on the serial port (uart0) was lost & 'stty -f' and set to 9600.

To Reproduce

Steps to reproduce the behavior:

install 21.x -- serial port functional and on 115200

upgrade to 22.x -- serial port no longer working

Expected behavior

Expected this to continue working.

Describe alternatives you considered

Adding the line:

 hw.uart.console="io:0x3f8,br:115200"

to loader.conf.local does not work. Also adding the lines

 hw.uart.console="io:0x3f8,br:115200"
 set comconsole_speed=115200
 set comconsole_port=0x3f8
 set console=comconsole

works perfectly.

@fichtner fichtner added the support Community support label Aug 23, 2022
@fichtner
Copy link
Member

Well what hardware is this? And 22.x is a little inconvenient as fixes went in an the OS was upgraded from FreeBSD 12 to 13...

@dirkx
Copy link
Author

dirkx commented Aug 23, 2022 via email

@fichtner
Copy link
Member

For 1) there was a bug in FreeBSD 13 that didn't handle EFI serial consoles anymore. It was added in 22.1.2, but in general FreeBSD 13 requires the BIOS to disable legacy UART emulation: https://docs.opnsense.org/hardware/serial_connectivity.html

For 2) It should continue to work regardless.

For 3) I can't say, not very specific.

@dirkx
Copy link
Author

dirkx commented Oct 11, 2022 via email

@fichtner
Copy link
Member

that workaround works

It's not a workaround. It's a requirement in FreeBSD 13, which broke the EFI serial console in the first place.

loader.conf.local needs to be manually removed/emptied

What's done to loader.conf.local is local to the installation and of no concern to the core system.

hw.uart.console et al.

You can set that from the System: Settings: Tunables GUI if needed.

As for FreeBSD requirements regading serial console across multiple hardware that will be of further subject to change outside of our control through upstream driver changes and hardware adoption.

Cheers,
Franco

@tk-wfischer
Copy link
Contributor

Just as a note - we have experienced issues when booting systems without an attached monitor.
We have written a wiki article on that and we have added links to this issue here on GitHub:

@fichtner
Copy link
Member

fichtner commented Jan 9, 2023

Happy new year @tk-wfischer! :)

Thanks for the article. Although the bug was addressed it's still pending for FreeBSD. I'm not sure at which point it'll be officially accepted. I'll try to poke them again this year to see how much work a "proper" integration actually is.

https://reviews.freebsd.org/D34329

Cheers,
Franco

@fichtner fichtner closed this as completed Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Community support
Development

No branches or pull requests

3 participants