From owner-freebsd-sparc64@freebsd.org Sun Sep 6 09:56:26 2015 Return-Path: Delivered-To: freebsd-sparc64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C57669CBA53 for ; Sun, 6 Sep 2015 09:56:26 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B236B1A77 for ; Sun, 6 Sep 2015 09:56:26 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B23769CBA52; Sun, 6 Sep 2015 09:56:26 +0000 (UTC) Delivered-To: sparc64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1CE89CBA51 for ; Sun, 6 Sep 2015 09:56:26 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id A5C0D1A76; Sun, 6 Sep 2015 09:56:26 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id A45431214; Sun, 6 Sep 2015 09:56:26 +0000 (UTC) Date: Sun, 6 Sep 2015 09:56:26 +0000 From: Alexey Dokuchaev To: Mark Cave-Ayland Cc: sparc64@freebsd.org Subject: Re: Trying to cross-build FreeBSD 10 release ISOs for sparc64 Message-ID: <20150906095626.GA50266@FreeBSD.org> References: <53F87DC9.9020800@ilande.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53F87DC9.9020800@ilande.co.uk> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2015 09:56:26 -0000 On Sat, Aug 23, 2014 at 12:40:57PM +0100, Mark Cave-Ayland wrote: > While the output ISOs are generated, they appear to be invalid (or at > least OpenBIOS can't find a valid partition on them). Reviewing the > logs, the entire build process seems to work all the way up to the point > where the ISOs are generated which looks like this: > > [...] > gpart: scheme 'VTOC8': Invalid argument > gpart: No such geom: md0. > gpart: No such geom: md0. > > Superficially it looks as if gpart can't understand the partitioning > scheme used for sparc64 ISOs but does anyone else have any ideas as to > why this isn't working? I'm trying to test the patch in https://reviews.freebsd.org/D2791, and today had encountered exactly this problem with "scheme 'VTOC8': Invalid argument" of gpart(8). Quick googling had revealed [1] that it might happen due to endianess being different on i386 (host) and sparc64 (target). I'll need to have a closer look at gpart(8) sources to know better about it, but trying to make sparc64 iso-image on big-endian PowerPC allowed to create VTOC8 scheme and produce bootable images. ./danfe [1] https://lists.freebsd.org/pipermail/freebsd-questions/2013-February/249013.html