Date: Sun, 28 Jan 2018 23:03:00 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-doc@FreeBSD.org Subject: [Bug 225512] continued changes to sio->uart and console other than com1 requires yet another documentation change... Message-ID: <bug-225512-9@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225512 Bug ID: 225512 Summary: continued changes to sio->uart and console other than com1 requires yet another documentation change... Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Documentation Assignee: freebsd-doc@FreeBSD.org Reporter: dgilbert@eicat.ca The story to here. In the beginning, the words were "recompile the kernel"= and the kernel was good. No. I'll stop that now. Anyways... to use a console other than COM1, you needed to recompile the kernel. At some point, the PR 169544 applied, that is you set hint.sio.n.f= lags to determine which port was console. This didn't work, so in UTSL fashion, I found (in /sys/dev/uart/uart_subr.c: /* * Check the environment variables "hw.uart.console" and * "hw.uart.dbgport". These variables, when present, specify * which UART port is to be used as serial console or debug * port (resp). */ switch (devtype) { case UART_DEV_CONSOLE: cp =3D kern_getenv("hw.uart.console"); break; case UART_DEV_DBGPORT: cp =3D kern_getenv("hw.uart.dbgport"); break; default: cp =3D NULL; break; } meaning that you put "hw.uart.console=3D1" in /boot/loader.conf and you get= COM2. This seems to default to 0 or COM1 (NULL =3D=3D 0, for the most part). I have verified that on 11.1-RELEASE, setting either hint.sio.* or hint.uar= t.* (because, at least as of 11.1-RELEASE, there are no hint.sio anymore) on AM= D64 ... DO NOT WORK. I have also verified hw.uart.console=3D1 in /boot/loader.conf does work. This would all be in reference to the documentation that lives at https://www.freebsd.org/doc/handbook/serialconsole-setup.html --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225512-9>