From owner-cvs-all@FreeBSD.ORG Wed Mar 31 12:57:53 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C29E216A4D3 for ; Wed, 31 Mar 2004 12:57:53 -0800 (PST) Received: from mail3.speakeasy.net (mail3.speakeasy.net [216.254.0.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E38D43D48 for ; Wed, 31 Mar 2004 12:57:53 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 14912 invoked from network); 31 Mar 2004 20:57:52 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 31 Mar 2004 20:57:52 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id i2VKsMDQ048661; Wed, 31 Mar 2004 15:57:37 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Bruce Evans Date: Wed, 31 Mar 2004 15:43:59 -0500 User-Agent: KMail/1.6 References: <200403261846.i2QIkVuT063179@repoman.freebsd.org> <20040331030428.GI756@empiric.dek.spc.org> <20040331142321.I768@gamplex.bde.org> In-Reply-To: <20040331142321.I768@gamplex.bde.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403311543.59571.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Bruce M Simpson cc: src-committers@FreeBSD.org cc: juli mallett cc: cvs-src@FreeBSD.org cc: Scott Long cc: David O'Brien cc: cvs-all@FreeBSD.org cc: Dag-Erling Sm?rgrav Subject: Re: cvs commit: src/sys/boot/i386/boot0 boot0ext.s src/sys/boot/i386/boot0ext Makefile X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2004 20:57:54 -0000 On Tuesday 30 March 2004 11:29 pm, Bruce Evans wrote: > On Wed, 31 Mar 2004, Bruce M Simpson wrote: > > On Tue, Mar 30, 2004 at 06:00:10PM -0800, David O'Brien wrote: > > > > > Sorry, but I'd like to have a useful boot0 -- one that tells me my > > > > > partition is something other than "???". That can't be done with a > > > > > 1-sector boot0. > > > > > > > > Are you sure that the bug you're seeing isn't the one that was fixed > > > > by this commit: > > > > > > 99% sure. Our boot0 doesn't understand all possbile MS partition > > > types. > > > > I recognised this and was the one who put David up to this. :-) > > > > Other things, such as grokking EMBRs to allow boot from extended > > partitions, or support for serial console other than COM1, can't be done > > in the 512-byte space we currently have. > > > > But because of system incompatibilities, I would emphasize boot0ext > > remain purely optional; and added to son-of-sysinstall with the relevant > > warnings. > > No; neither boot0ext nor boot0sio should exist. boot0 should just load > the next stage, which may or may not consist if a single 512-byte sector > in the sector following boot0. The problems are to allocate space for the > next stage and find this space in boot0. boot0ext only works if the next > sector is free and will remain free. Which is true on virtually all hard disks with an MBR (except for old dangerously dedicated disks which can't use boot0 anyway and wouldn't need to use it) since MBR slices always start on a cylinder boundary and are never allowed to start at cylinder 0. Also, the 2 sector boot0 does start up and then load the larger version of itself as you suggest above. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org