From owner-freebsd-sparc64@FreeBSD.ORG Thu Jul 29 13:22:56 2010 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02132106566B for ; Thu, 29 Jul 2010 13:22:56 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id C5B188FC20 for ; Thu, 29 Jul 2010 13:22:55 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 70B1B46B66; Thu, 29 Jul 2010 09:22:55 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id B2EEF8A050; Thu, 29 Jul 2010 09:22:54 -0400 (EDT) From: John Baldwin To: Marius Strobl Date: Thu, 29 Jul 2010 09:21:26 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100217; KDE/4.4.5; amd64; ; ) References: <201007270945.32010.jhb@freebsd.org> <20100728210257.GB10197@alchemy.franken.de> In-Reply-To: <20100728210257.GB10197@alchemy.franken.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201007290921.26805.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Thu, 29 Jul 2010 09:22:54 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00, SUBJECT_FUZZY_TION autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-sparc64@freebsd.org Subject: Re: ZFS root partition X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2010 13:22:56 -0000 On Wednesday, July 28, 2010 5:02:57 pm Marius Strobl wrote: > On Tue, Jul 27, 2010 at 09:45:31AM -0400, John Baldwin wrote: > > On Tuesday, July 27, 2010 4:40:48 am Rob Farmer wrote: > > > Is is possible to have a ZFS root with sparc64? I've used one of the > > > guides on the wiki, http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot, on > > > amd64 and it worked fine, but that doesn't seem to apply, since the > > > /boot/pmbr and /boot/gptzfsboot files don't exist on sparc64. > > > > Booting from a GPT isn't supported for OpenFirmware, so it doesn't work for > > sparc64. > > > > Looking at the description of the ZFS on-disk format it should > be possible to implement something similar with the VTOC scheme > though; the first-stage loader (8K max., we have no zero-stage > on sparc64) probably should jump to something like a 1.5-stage > loader located in the 3.5MB boot block area located after the > ZFS uberblock and would need to know how to read ZFS in order > to finally load /boot/loader. I haven't looked at how the GPT > variant works in detail but I suspect most of the ZFS-specific > actually could be recycled. The other missing part would be to > teach some part (maybe GEOM_PART) how to write something to the > ZFS boot block area. Any takers? :) dfr@ has C bits to handle ZFS reading for the loader that should be easy to reuse. The only MD bits are that you need to probe all the available drives so ZFS can discover all the devices that back volumes / pools. -- John Baldwin