From owner-freebsd-current@FreeBSD.ORG Mon Sep 1 17:24:03 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0855216A4BF for ; Mon, 1 Sep 2003 17:24:03 -0700 (PDT) Received: from smtp.mho.com (smtp.mho.net [64.58.4.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 0487143FDF for ; Mon, 1 Sep 2003 17:24:02 -0700 (PDT) (envelope-from scottl@freebsd.org) Received: (qmail 63799 invoked by uid 1002); 2 Sep 2003 00:24:01 -0000 Received: from unknown (HELO freebsd.org) (64.58.1.252) by smtp.mho.net with SMTP; 2 Sep 2003 00:24:01 -0000 Message-ID: <3F53E315.6070401@freebsd.org> Date: Mon, 01 Sep 2003 18:23:49 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Birrell References: <1062445674.59251.1.camel@acheron.livid.de> <3F53CF00.6020304@freebsd.org> <20030901232227.5F1D23A4C3@www.fastmail.fm> <3F53D645.2040501@freebsd.org> <20030902101451.F1311@freebsd1.cimlogic.com.au> In-Reply-To: <20030902101451.F1311@freebsd1.cimlogic.com.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: current@freebsd.org cc: "Scott M. Likens" Subject: Re: Question related to FreeBSD Serial Console... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2003 00:24:03 -0000 John Birrell wrote: > On Mon, Sep 01, 2003 at 05:29:09PM -0600, Scott Long wrote: > >>At one time I was working on patches to the loader to make the console >>speed configurable. At the time, at least, I didn't see any evidence >>that the settings were stored in the boot0 block, but maybe I was wrong. > > > AFAIK, the boot0 block uses bios int 0x16 to get a key-press and bios int > 0x10 to display a character, so in a situation where you *want* a serial > console, the F1 etc stuff can't be used unless the bios supports console > re-direction. And you have to live with whatever baud rate the bios sets. > > Once you get to boot2, then the serial console can work if set in /boot.config. > > It would be nice to have a boot.config setting for the baud rate. I have a > board here that allows bios re-direction to either the first or second serial > port at a fixed baud rate of 38400. I have to build boot2 with > BOOT_COMCONSOLE_SPEED=38400, and then the kernel with CONSPEED=38400 to > get all the ducks in a row. > > But it would be even nicer if both boot2 and the kernel would just work with > whatever baud rate the bios set. > This is exactly the problem that I was working on. Scott