From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 3 20:39:38 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 833B9EDC for ; Fri, 3 Oct 2014 20:39:38 +0000 (UTC) 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 mx1.freebsd.org (Postfix) with ESMTPS id 6565C24A for ; Fri, 3 Oct 2014 20:39:38 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s93Kdc0J043740 for ; Fri, 3 Oct 2014 20:39:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 194121] New: device.hints not honored when selecting UART for system console Date: Fri, 03 Oct 2014 20:39:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 10.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mgsmith@netgate.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- 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: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2014 20:39:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194121 Bug ID: 194121 Summary: device.hints not honored when selecting UART for system console Product: Base System Version: 10.0-STABLE Hardware: amd64 OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: misc Assignee: freebsd-bugs@FreeBSD.org Reporter: mgsmith@netgate.com I am trying to boot 10-STABLE on a system based on Intel's Atom C2538 board with 2 UART devices. The first UART is not used. The second is exposed externally to be used as the system console. When I try to set hint.uart.1.flags="0x10" and unset that flag from UART 0, nothing gets displayed to the system console when it boots. I repeated the test on a SuperMicro system based on Intel's Atom C2758 board and got similar results. Trying to force the second serial port to be the system console doesn't work. If I set the flag to indicate that the second uart is available as the system console, when the system comes up, the first uart is still acting as the console. Here are the hints: hint.uart.0.at="isa" hint.uart.0.port="0x3F8" hint.uart.0.irq="4" hint.uart.1.at="isa" hint.uart.1.port="0x2F8" hint.uart.1.irq="3" hint.uart.1.flags="0x10" and the relevant info from dmesg: uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 on acpi0 uart0: console (115200,n,8,1) uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0 I've tried other tricks: 1. Comment out the hints listed above and just add a new set of hints for uart.0 that has irq 3, port 0x2f8, flags 0x10. The result was that the system still found the other uart and made it the system console. dmesg data: uart1: <16550 or compatible> port 0x3f8-0x3ff irq 4 on acpi0 uart1: console (115200,n,8,1) uart0: <16550 or compatible> port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0 2. Set hint.uart.0.disabled="1" with the hints listed above. The result was that the system did not output any console messages on either serial port and just used the VGA. In all of this testing, I had both ttyu0 and ttyu1 enabled in /etc/ttys. /boot/loader.conf had console="comconsole,vidconsole" and comconsole_speed="115200". /boot.config contained -D. I can boot both of these devices from FreeBSD 8.3 with the second serial port set as the system console. Newer versions of FreeBSD, at least 10-STABLE and 11-CURRENT, it doesn't seem to work. I haven't tried any of the 9.x releases. -- You are receiving this mail because: You are the assignee for the bug.