From owner-freebsd-i386@FreeBSD.ORG Tue Jul 25 20:41:53 2006 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D38D916A504 for ; Tue, 25 Jul 2006 20:41:53 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CABE43DA9 for ; Tue, 25 Jul 2006 20:40:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6PKeEiD004642 for ; Tue, 25 Jul 2006 20:40:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6PKeE77004641; Tue, 25 Jul 2006 20:40:14 GMT (envelope-from gnats) Resent-Date: Tue, 25 Jul 2006 20:40:14 GMT Resent-Message-Id: <200607252040.k6PKeE77004641@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jo Rhett Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3D0616A4DE for ; Tue, 25 Jul 2006 20:36:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFD2B43D69 for ; Tue, 25 Jul 2006 20:36:49 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k6PKanGA072594 for ; Tue, 25 Jul 2006 20:36:49 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k6PKanFd072593; Tue, 25 Jul 2006 20:36:49 GMT (envelope-from nobody) Message-Id: <200607252036.k6PKanFd072593@www.freebsd.org> Date: Tue, 25 Jul 2006 20:36:49 GMT From: Jo Rhett To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: i386/100831: sio ignores BIOS information about serial ports - bounty offered X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2006 20:41:54 -0000 >Number: 100831 >Category: i386 >Synopsis: sio ignores BIOS information about serial ports - bounty offered >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 25 20:40:14 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jo Rhett >Release: 6.0-REL >Organization: svcolo >Environment: FreeBSD arran 6.0-RELEASE FreeBSD 6.0-RELEASE #4: Fri Nov 11 13:29:33 PST 2005 root@barrel.svcolo.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: For our motherboard, "Serial A" in hardwired on the board with a 9-pin connector. "Serial B" is a normal serial connector that can be wired anywhere. Rackable uses this connector to connect to their out-of-band management interface. So in the BIOS configuration, we assign COM1 = "Serial B" and COM2 = "Serial A". This works perfectly for the POST console redirection and FreeBSD boot process. /boot.config contains "-Dh" and /boot/loader.rc contains "console=comconsole" In the middle of the boot process, right after saying "Mounting ", com1 becomes com2 and vice versa. The console output suddenly starts going to Serial A -- which is connected to a modem. Not useful. During the shutdown process, console output reverts to the proper com1 assignment. >How-To-Repeat: Connect consoles to both com1 and com2. Put "-Dh" in /boot.config and "console=comconsole" in /boot/loader.rc. Boot. Observe that all console output goes to the same port. Go into BIOS. Change COM1 assignment from it's natural assignment to the reverse. Boot again. Watch the console output change monitors in the middle of the boot process. >Fix: sio needs to observe the BIOS flags. Note that I've tested this on dozens of systems which different chipsets and BIOSs and this appears to be true in all environments. com1 only works properly if it is assigned to the first serial port that the bios reports to the system. BOUNTY: This problem is serious enough that SVcolo is willing to pay an individual to determine the problem and get it committed to the main tree. Contact me for more information. >Release-Note: >Audit-Trail: >Unformatted: