From owner-freebsd-hackers Thu Dec 9 0:34:37 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id C6CCB15281 for ; Thu, 9 Dec 1999 00:34:35 -0800 (PST) (envelope-from robert@cyrus.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.9.3/8.9.3) with SMTP id DAA27762; Thu, 9 Dec 1999 03:33:10 -0500 (EST) (envelope-from robert@cyrus.watson.org) Date: Thu, 9 Dec 1999 03:33:10 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org Reply-To: Robert Watson To: Neil Blakey-Milner Cc: freebsd-hackers@freebsd.org Subject: Re: question about boot loaders In-Reply-To: <19991209102159.B88680@ns1.sunesi.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 9 Dec 1999, Neil Blakey-Milner wrote: > On Thu 1999-12-09 (02:46), Robert Watson wrote: > > Once we get into boot2 land, I recognize the FreeBSD-specific loading > > code, etc. What I don't know much about is those first three 512-byte > > chunks of code. Boot0 appears to be booteasy, but given some ignorance > > about the i386 boot process, I'm not sure whether it's loaded by mbr, or > > by the bios, and where it lives partition-wise. Similarly, how boot1 fits > > into it the whole scheme--I assume this is FreeBSD-specific as it knows > > about boot2, but don't know where it lives, etc. Preferably, afterwards, > > also drop the results into sys/boot/i386/README. :-) > > I wrote up some basic stuff, which doesn't seem quite to describe > what you're after, but which may be of use, at > http://rucus.ru.ac.za/~nbm/boot/ > > It's intended for the handbook, but I haven't had time since starting > my new job to work on it much more. Looks interesting, but doesn't seem to mention the mbr/mbr.s code, and I'm not sure how this fit into the picture. There seem to be three 512-byte chunks of code: -r--r--r-- 1 root wheel 512 Sep 16 18:46 mbr -r--r--r-- 1 root wheel 512 Sep 16 18:46 boot0 -r--r--r-- 1 root wheel 512 Sep 16 18:46 boot1 -r--r--r-- 1 root wheel 7680 Sep 16 18:46 boot2 -r-xr-xr-x 1 root wheel 131072 Sep 16 18:46 loader* When there were two of them, I understood pretty much what was going on. Now there are three, and I clearly haven't been keeping a close enough eye on what is going on, because now I'm confused whereas previously I wasn't :-). Robert N M Watson robert@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 TIS Labs at Network Associates, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message