From owner-freebsd-alpha Fri Oct 11 5:47:54 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D0F737B401 for ; Fri, 11 Oct 2002 05:47:52 -0700 (PDT) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id C94A243E8A for ; Fri, 11 Oct 2002 05:47:51 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id IAA12944; Fri, 11 Oct 2002 08:47:43 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g9BClDW57727; Fri, 11 Oct 2002 08:47:13 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15782.51281.422120.59406@grasshopper.cs.duke.edu> Date: Fri, 11 Oct 2002 08:47:13 -0400 (EDT) To: ticso@cicely.de Cc: Poul-Henning Kamp , freebsd-alpha@FreeBSD.ORG Subject: Re: booting UFS2 on alpha (was: cvs commit: src/sys/boot/common ufsread.c) In-Reply-To: <20021011104520.GY17920@cicely8.cicely.de> References: <20021010210124.GV17920@cicely8.cicely.de> <14845.1034332326@critter.freebsd.dk> <20021011104520.GY17920@cicely8.cicely.de> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Bernd Walter writes: > > Is there some place which documents what the requirements for being > > a valid boot-block is ? > > None that I know about. > Maybe someone else on the alpha list knows? > Pages (III) 3-36 and 3-37 of the brown book describe the boot block format. Bascially, everything below offset 480 (which is where the count goes) is reserved. 488 is the starting lbn, 496 are the flags, and 504 is a checksum: 63............................,.0 |Reserved (VAX compat) | :BB |Reserved (Expansion) | :+136 |Reserved | :+472 |Count (LBNS) | :+480 |Starting LBM | :+488 |Flags | :+496 |Checksum | :+504 ................................ :+512 The first thing I'd look at is the checksum. The brown book has this to say about the checksum: "The console computes the checksum of the first 63 quadwords in the block as a 64-bit sum, ignoring overflow. The computation includes both reserved regions." Its too bad we don't have a Bird to try these on. They'ed spit out the AUDIT_CHECKSUM_GOOD, AUDIT_LOAD_BEGINS, AUDIT_LOAD_DONE messages to let you know where in the bootstrap it failed. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message