From owner-freebsd-sparc64@freebsd.org Sun Sep 6 12:19:46 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 5E8F89CC62E for ; Sun, 6 Sep 2015 12:19:46 +0000 (UTC) (envelope-from mark.cave-ayland@ilande.co.uk) 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 44BF01E6F for ; Sun, 6 Sep 2015 12:19:46 +0000 (UTC) (envelope-from mark.cave-ayland@ilande.co.uk) Received: by mailman.ysv.freebsd.org (Postfix) id 4180A9CC62D; Sun, 6 Sep 2015 12:19:46 +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 410239CC62C for ; Sun, 6 Sep 2015 12:19:46 +0000 (UTC) (envelope-from mark.cave-ayland@ilande.co.uk) Received: from s16892447.onlinehome-server.info (s16892447.onlinehome-server.info [82.165.15.123]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 035A21E6E; Sun, 6 Sep 2015 12:19:45 +0000 (UTC) (envelope-from mark.cave-ayland@ilande.co.uk) Received: from cpc2-slam8-2-0-cust642.2-4.cable.virginm.net ([82.24.206.131] helo=[192.168.0.5]) by s16892447.onlinehome-server.info with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1ZYYbY-00032J-HU; Sun, 06 Sep 2015 12:59:31 +0100 Message-ID: <55EC2A9A.9000501@ilande.co.uk> Date: Sun, 06 Sep 2015 12:59:22 +0100 From: Mark Cave-Ayland User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Alexey Dokuchaev CC: sparc64@freebsd.org References: <53F87DC9.9020800@ilande.co.uk> <20150906095626.GA50266@FreeBSD.org> In-Reply-To: <20150906095626.GA50266@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 82.24.206.131 X-SA-Exim-Mail-From: mark.cave-ayland@ilande.co.uk Subject: Re: Trying to cross-build FreeBSD 10 release ISOs for sparc64 X-SA-Exim-Version: 4.2.1 (built Sun, 08 Jan 2012 02:45:44 +0000) X-SA-Exim-Scanned: No (on s16892447.onlinehome-server.info); Unknown failure 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 12:19:46 -0000 On 06/09/15 10:56, Alexey Dokuchaev wrote: > 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. I had exactly the same problem, and eventually John pointed me in the right direction: https://lists.freebsd.org/pipermail/freebsd-sparc64/2015-June/009606.html If I kldload the geom_part_vtoc8 module then I can build from a cross-compile environment setup on x86 and all is well. HTH, Mark.