From owner-freebsd-doc@freebsd.org Sun Jan 28 23:03:02 2018 Return-Path: Delivered-To: freebsd-doc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8C3CCEC257B for ; Sun, 28 Jan 2018 23:03:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C8A472FD6 for ; Sun, 28 Jan 2018 23:03:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 4DC0FB27 for ; Sun, 28 Jan 2018 23:03:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w0SN30l2071491 for ; Sun, 28 Jan 2018 23:03:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w0SN30MG071490 for freebsd-doc@FreeBSD.org; Sun, 28 Jan 2018 23:03:00 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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... Date: Sun, 28 Jan 2018 23:03:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Documentation X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dgilbert@eicat.ca X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-doc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jan 2018 23:03:02 -0000 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.=