From owner-freebsd-alpha Fri Oct 11 4:55:21 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 7718B37B401 for ; Fri, 11 Oct 2002 04:55:18 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EF1743E9C for ; Fri, 11 Oct 2002 04:55:17 -0700 (PDT) (envelope-from ticso@cicely8.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) by srv1.cosmo-project.de (8.12.5/8.12.5) with ESMTP id g9BBlW6K060771 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 11 Oct 2002 13:47:34 +0200 (CEST) (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.1.10]) by cicely5.cicely.de (8.12.6/8.12.6) with ESMTP id g9BBlUgK071707 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 11 Oct 2002 13:47:31 +0200 (CEST) (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (localhost [127.0.0.1]) by cicely8.cicely.de (8.12.6/8.12.6) with ESMTP id g9BBlTlv027085; Fri, 11 Oct 2002 13:47:29 +0200 (CEST) (envelope-from ticso@cicely8.cicely.de) Received: (from ticso@localhost) by cicely8.cicely.de (8.12.6/8.12.6/Submit) id g9BBlRwe027084; Fri, 11 Oct 2002 13:47:27 +0200 (CEST) Date: Fri, 11 Oct 2002 13:47:21 +0200 From: Bernd Walter To: Wilko Bulte Cc: ticso@cicely.de, Poul-Henning Kamp , freebsd-alpha@FreeBSD.ORG Subject: Re: booting UFS2 on alpha (was: cvs commit: src/sys/boot/common ufsread.c) Message-ID: <20021011114720.GZ17920@cicely8.cicely.de> Reply-To: ticso@cicely.de References: <20021010210124.GV17920@cicely8.cicely.de> <14845.1034332326@critter.freebsd.dk> <20021011104520.GY17920@cicely8.cicely.de> <20021011130834.A12041@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021011130834.A12041@freebie.xs4all.nl> X-Operating-System: FreeBSD cicely8.cicely.de 5.0-CURRENT i386 User-Agent: Mutt/1.5.1i 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 On Fri, Oct 11, 2002 at 01:08:34PM +0200, Wilko Bulte wrote: > On Fri, Oct 11, 2002 at 12:45:20PM +0200, Bernd Walter wrote: > > On Fri, Oct 11, 2002 at 12:32:06PM +0200, Poul-Henning Kamp wrote: > > > In message <20021010210124.GV17920@cicely8.cicely.de>, Bernd Walter writes: > > > > > > >>>>boot dka400 > > > >(boot dka400.4.0.6.0 -flags 0) > > > >block 0 of dka400.4.0.6.0 is not a valid boot block > > > >bootstrap failure > > > > > > > >This one is my biggest problem. > > > >SRM doesn't accept the disklabel. > > > >Once I dd the first 512 bytes from an old disk SRM is happy. > > > >I compared them with hexdump, but wasn't able to find the reason. > > > > > > 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? > > I'll try to find out. Might take a while. Thank you. In the meantime here are the details. Working: [54]cicely8# hexdump -v ~/delme 0000000 0000 0000 0000 0000 0000 0000 0000 0000 0000010 0000 0000 0000 0000 0000 0000 0000 0000 0000020 0000 0000 0000 0000 0000 0000 0000 0000 0000030 0000 0000 0000 0000 0000 0000 0000 0000 0000040 4557 8256 0004 0000 4553 4741 5441 2045 0000050 0000 0000 0000 0000 0000 0000 0000 0000 0000060 0000 0000 0000 0000 0200 0000 0020 0000 0000070 0040 0000 03ed 0000 0800 0000 6b84 001f 0000080 0000 0000 0000 0000 0e10 0001 0000 0000 0000090 0000 0000 0000 0000 0000 0000 0000 0000 00000a0 0000 0000 0000 0000 0000 0000 0000 0000 00000b0 0000 0000 0000 0000 0000 0000 0000 0000 00000c0 0000 0000 4557 8256 1a40 0008 2000 0000 00000d0 2000 0000 6b84 001f 0000 0000 0800 0000 00000e0 0807 005a 0000 0000 0000 0000 0000 0000 00000f0 0000 0000 6b84 001f 0000 0000 0000 0000 0000100 0000 0000 0000 0000 0000 0000 0000 0000 0000110 0000 0000 0000 0000 0000 0000 0000 0000 0000120 0000 0000 0000 0000 0000 0000 0000 0000 0000130 0000 0000 0000 0000 0000 0000 0000 0000 0000140 0000 0000 0000 0000 0000 0000 0000 0000 0000150 0000 0000 0000 0000 0000 0000 0000 0000 0000160 0000 0000 0000 0000 0000 0000 0000 0000 0000170 0000 0000 0000 0000 0000 0000 0000 0000 0000180 0000 0000 0000 0000 0000 0000 0000 0000 0000190 0000 0000 0000 0000 0000 0000 0000 0000 00001a0 0000 0000 0000 0000 0000 0000 0000 0000 00001b0 0000 0000 0000 0000 0000 0000 0000 0000 00001c0 0000 0000 0000 0000 0000 0000 0000 0000 00001d0 0000 0000 0000 0000 0000 0000 0000 0000 00001e0 000e 0000 0000 0000 0001 0000 0000 0000 00001f0 0000 0000 0000 0000 e550 c9fa 0835 a2fa 0000200 Non-working: [51]cicely8# hexdump -v ~/delme2 0000000 0000 0000 0000 0000 0000 0000 0000 0000 0000010 0000 0000 0000 0000 0000 0000 0000 0000 0000020 0000 0000 0000 0000 0000 0000 0000 0000 0000030 0000 0000 0000 0000 0000 0000 0000 0000 0000040 4557 8256 0004 0000 4553 4741 5441 0045 0000050 0000 0000 0000 0000 0000 0000 0000 0000 0000060 0000 0000 0000 0000 0200 0000 0020 0000 0000070 0040 0000 0248 0000 0800 0000 409e 0012 0000080 0000 0000 0000 0000 0e10 0001 0000 0000 0000090 0000 0000 0000 0000 0000 0000 0000 0000 00000a0 0000 0000 0000 0000 0000 0000 0000 0000 00000b0 0000 0000 0000 0000 0000 0000 0000 0000 00000c0 0000 0000 4557 8256 14b8 0008 2000 0000 00000d0 0000 0000 409e 0012 0000 0000 0800 0000 00000e0 0807 2410 0000 0000 0000 0000 0000 0000 00000f0 0000 0000 409e 0012 0000 0000 0000 0000 0000100 0000 0000 0000 0000 0000 0000 0000 0000 0000110 0000 0000 0000 0000 0000 0000 0000 0000 0000120 0000 0000 0000 0000 0000 0000 0000 0000 0000130 0000 0000 0000 0000 0000 0000 0000 0000 0000140 0000 0000 0000 0000 0000 0000 0000 0000 0000150 0000 0000 0000 0000 0000 0000 0000 0000 0000160 0000 0000 0000 0000 0000 0000 0000 0000 0000170 0000 0000 0000 0000 0000 0000 0000 0000 0000180 0000 0000 0000 0000 0000 0000 0000 0000 0000190 0000 0000 0000 0000 0000 0000 0000 0000 00001a0 0000 0000 0000 0000 0000 0000 0000 0000 00001b0 0000 0000 0000 0000 0000 0000 0000 0000 00001c0 0000 0000 0000 0000 0000 0000 0000 0000 00001d0 0000 0000 0000 0000 0000 0000 0000 0000 00001e0 000e 0000 0000 0000 0001 0000 0000 0000 00001f0 0000 0000 0000 0000 ef43 e7cd 526e e5dc 0000200 struct disklabel starts at 0x40. The only real difference in struct disklabel is d_bbsize, but tests have showed, that this shouldn't be the reason. E.g. if I disklabel -e and don't change anything it's cleared out, but SRM still accepts the boot blocks. struct disklabel is 276 bytes long and the block is padded with some unknown values. Especially the last 8 bytes are interesting for me. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message