From owner-freebsd-current@FreeBSD.ORG Mon Jan 5 03:34:20 2004 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 939AD16A4CE for ; Mon, 5 Jan 2004 03:34:20 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id E56A643D39 for ; Mon, 5 Jan 2004 03:34:16 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id WAA19455; Mon, 5 Jan 2004 22:34:05 +1100 Date: Mon, 5 Jan 2004 22:34:04 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Bruce M Simpson In-Reply-To: <20040105071321.GA63069@saboteur.dek.spc.org> Message-ID: <20040105215501.M5112@gamplex.bde.org> References: <20040103233044.N17367@root.org> <20040104.003330.54786488.imp@bsdimp.com> <20040104.164103.03383403.imp@bsdimp.com> <20040105162219.A3687@gamplex.bde.org> <20040105071321.GA63069@saboteur.dek.spc.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org cc: nate@root.org Subject: Re: Serial console only works after reboot? 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: Mon, 05 Jan 2004 11:34:20 -0000 On Mon, 5 Jan 2004, Bruce M Simpson wrote: > On Mon, Jan 05, 2004 at 04:50:13PM +1100, Bruce Evans wrote: > > It should use BOOT_COMCONSOLE_PORT and BOOT_CONSOLE_SPEED like boot2 > > does. > > Ideally, yes. However an assembly language macro would be needed to stuff > the appropriate divisor value into the BIOS call used to set the speed. There > are hardly any bytes free in boot0; I had to shave strings to get enough > space as it is. There are also hardly enough bits in the BIOS interface. It has a whole 3 bits to encode the speed and is limited to 9600 bps. > Doing sio directly bypassing the BIOS would require that the MBR be enlarged > to 1024, rather than 512, bytes. This is one of the issues I originally had > with the code being imported as-is however obrien was happy to take it anyway. Probably, but direct access only takes a few more bytes (20-30 altogether). A feature could be left out to make room. (The boot0 that I use has a completely different feature set.) Bruce