From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 31 14:04:47 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 949FA37B401 for ; Thu, 31 Jul 2003 14:04:47 -0700 (PDT) Received: from www.ambrisko.com (adsl-64-174-51-42.dsl.snfc21.pacbell.net [64.174.51.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id D902543FB1 for ; Thu, 31 Jul 2003 14:04:46 -0700 (PDT) (envelope-from ambrisko@www.ambrisko.com) Received: from www.ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.12.8p1/8.12.8) with ESMTP id h6VL4kO7033392; Thu, 31 Jul 2003 14:04:46 -0700 (PDT) (envelope-from ambrisko@www.ambrisko.com) Received: (from ambrisko@localhost) by www.ambrisko.com (8.12.8p1/8.12.8/Submit) id h6VL4khu033391; Thu, 31 Jul 2003 14:04:46 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200307312104.h6VL4khu033391@www.ambrisko.com> In-Reply-To: <1059682298.87235.3.camel@rose.americas.sgi.com> To: Russell Cattelan Date: Thu, 31 Jul 2003 14:04:46 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: Console serial speed X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2003 21:04:47 -0000 Russell Cattelan writes: | On Wed, 2003-07-30 at 21:58, Doug Ambrisko wrote: | > Russell Cattelan writes: | > | How does one set the serial speed of the console. | > | I changed the boot loader speed to 57600 in make.conf | > | but the kernel seems to chose random speeds each time | > | it's booted. | > | Sometimes it's 9600 sometimes it 115200 other times | > | it's 38400. | > | | > | Note this is on 5.x current | > | > You might want to check sys/isa/sio.c in function siocngetspeed. | > I comment out the "return (rclk / (16UL * divisor));" on some of my | > stable boxes. I've seen a few motherboards that result in a messed | > up console if I don't do it (ie. wrong speed). | | I changed the return val to be CONSPEED. | The machine now boots with the console speed correctly set | to 57600 | | Thanks... suppose a proper fix would be good :-) I'm not sure what a proper fix would be. We try to read the speed out of the UART and it fails to get what it was set to. This could be broken hardware etc. Personally I haven't had the motivation to figure out why some machines fail and I just wacked the code to make it work so I can actually fix the real problem I was working on! Maybe some #define that could over-ride everything and just set might be a fix for broken HW. Doug A.