From owner-freebsd-sparc64@FreeBSD.ORG Mon Jun 26 18:41:19 2006 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 813C516A4A0 for ; Mon, 26 Jun 2006 18:41:19 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 540624483D for ; Mon, 26 Jun 2006 13:56:37 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k5QDuZ0i083303; Mon, 26 Jun 2006 09:56:35 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-sparc64@freebsd.org Date: Mon, 26 Jun 2006 09:32:27 -0400 User-Agent: KMail/1.9.1 References: <449F1376.1030805@isc.org> In-Reply-To: <449F1376.1030805@isc.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606260932.27608.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Mon, 26 Jun 2006 09:56:35 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1563/Mon Jun 26 05:00:08 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Subject: Re: 'make release' & sunlabel/GEOM.... 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: Mon, 26 Jun 2006 18:41:19 -0000 On Sunday 25 June 2006 18:51, Peter Losher wrote: > I am building a custom FreeBSD for internal use for the various > platforms we use. For sparc64, I am encountering a issue w/ sunlabel > when creating the md devices: > > -=- > sh -e /usr/src/release/scripts/doFS.sh sunlabel "" > /R/stage/mfsroot/mfsroot /R/stage /mnt 4096 /R/stage/mfsfd 8192 auto > + export BLOCKSIZE=512 > + DISKLABEL=sunlabel > + shift > + MACHINE= > + shift > + FSIMG=/R/stage/mfsroot/mfsroot > + shift > + RD=/R/stage > + shift > + MNT=/mnt > + shift > + FSSIZE=4096 > + shift > + FSPROTO=/R/stage/mfsfd > + shift > + FSINODE=8192 > + shift > + FSLABEL=auto > + shift > + [ 4096 -eq 0 -a auto = auto ] > + rm -f /R/stage/mfsroot/mfsroot > + dd of=/R/stage/mfsroot/mfsroot if=/dev/zero count=4096 bs=1k > + uname -r > + [ -f /R/stage/trees/base/boot/boot ] > + BOOT=-r > + dofs_md > + [ x != x ] > + mdconfig -a -t vnode -f /R/stage/mfsroot/mfsroot > + MDDEVICE=md0 > + [ ! -c /dev/md0 ] > + trap umount /mnt; mdconfig -d -u md0 EXIT > + [ xsunlabel != x ] > + sunlabel -w -r md0 auto > Obsolete -r flag ignored > sunlabel: Geom not found > + umount /mnt > umount: /mnt: not a file system root directory > *** Error code 1 > > Stop in /usr/src/release. > + umount /dev > *** Error code 1 (ignored) > -=- > > is sunlabel GEOM-aware? Yes. I think it's called 'options GEOM_SUNLABEL'. It should be on by default on sparc64 systems, but if you are trying to cross-build it on another platform you will need to add it. There might be a geom_sunlabel.ko kernel module as well. -- John Baldwin