From owner-freebsd-sparc64@FreeBSD.ORG Wed Sep 1 23:54:06 2010 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 774BD10656D5 for ; Wed, 1 Sep 2010 23:54:06 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id E889B8FC1A for ; Wed, 1 Sep 2010 23:54:05 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.3/8.14.3/ALCHEMY.FRANKEN.DE) with ESMTP id o81NW2VX083983; Thu, 2 Sep 2010 01:32:02 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.3/8.14.3/Submit) id o81NW2QN083982; Thu, 2 Sep 2010 01:32:02 +0200 (CEST) (envelope-from marius) Date: Thu, 2 Sep 2010 01:32:02 +0200 From: Marius Strobl To: volker@vwsoft.com Message-ID: <20100901233202.GA83851@alchemy.franken.de> References: <4C7EC72A.9030903@vwsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C7EC72A.9030903@vwsoft.com> User-Agent: Mutt/1.4.2.3i Cc: sparc64@freebsd.org Subject: Re: sparc64 boot0 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: Wed, 01 Sep 2010 23:54:06 -0000 On Wed, Sep 01, 2010 at 11:35:38PM +0200, volker@vwsoft.com wrote: > Dear list, > > I'm about to prepare boot media for a sparc64 installation (bought a > cheap used Blade 1500). > > For amd64/i386 I usually do a bsdlabel -wB ...; newfs ; make > install{world|kernel} blablabla to get things on a bootable usb thumb drive. > > I've already finished the cross build for TARGET_ARCH=sparc64 and am > wondering which boot0 I will want to use for the thumb drive to get the > Sun Blade booting? > The disk layout of sun4u is way different from what you know from x86, f.e. it doesn't use a boot0 at all but only a boot1, which in the new world order is installed via gpart(8) just like on x86. In order to label a disk for sun4u on x86 with gpart(8) you'd need an x86 kernel built with options GEOM_PART_VTOC8 or the equivalent module, which likely noone has tried so far. There are more obstacles to what you are trying to though, f.e. FreeBSD isn't able to write a big-endian UFS on x86, apart from the fact that Blade 1500 probably don't support booting from USB drives ... The straight-forward way to install cross-built kernel and userland on a sun4u machine is to netboot it with them. Marius