From owner-freebsd-arm@FreeBSD.ORG Sun Feb 2 16:09:47 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5F22843 for ; Sun, 2 Feb 2014 16:09:46 +0000 (UTC) Received: from cora.hrz.tu-chemnitz.de (cora.hrz.tu-chemnitz.de [134.109.228.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 672BA1756 for ; Sun, 2 Feb 2014 16:09:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=MIME-Version:Content-Type:In-Reply-To:References:Subject:To:From:Message-ID:Date; bh=hPAv05YhWc67R/A5VxsLTNbMDFThB02auhhrvlTs/Tc=; b=h8mKWMA3chpJx/lhX1smB1gff5C21K+TbKgkgsYSJdOAyp5GfTCn/y1ZOcpRXaNrExucG7bRpX2PtLhfclrOpFbYlLr8RhvGvlMMqPu1cX6ELCrvyFG8T06Z1QrqvaRmGdEyJCe0aOwBO8m/HgK0S3T6C8EHrSH7oqp87xro8bY=; Received: from postman.hrz.tu-chemnitz.de ([134.109.133.5] helo=mailbox.hrz.tu-chemnitz.de) by cora.hrz.tu-chemnitz.de with esmtps (UNKNOWN:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80.1) (envelope-from ) id 1W9zGL-000130-BC for freebsd-arm@freebsd.org; Sun, 02 Feb 2014 16:47:13 +0100 Received: from boogie.hrz.tu-chemnitz.de ([134.109.133.10] helo=localhost) by mailbox.hrz.tu-chemnitz.de with esmtp (Exim 4.80.1) (envelope-from ) id 1W9zGL-0007PY-92 for freebsd-arm@freebsd.org; Sun, 02 Feb 2014 16:47:13 +0100 Received: from 77-64-136-114.dynamic.primacom.net (77-64-136-114.dynamic.primacom.net [77.64.136.114]) by mail.tu-chemnitz.de (Horde Framework) with HTTP; Sun, 02 Feb 2014 16:47:13 +0100 Date: Sun, 02 Feb 2014 16:47:13 +0100 Message-ID: <20140202164713.Horde.1jHdcd2ZR4JymDKUnSaCmA2@mail.tu-chemnitz.de> From: Matthieu Kraus To: freebsd-arm@freebsd.org Subject: Re: ZFS on ARM (Beaglebone Black) References: <87k3dd7olx.fsf@gmail.com> In-Reply-To: <87k3dd7olx.fsf@gmail.com> User-Agent: Internet Messaging Program (IMP) H5 (6.1.2) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-Scan-AV: mailbox.hrz.tu-chemnitz.de; 2014-02-02 16:47:13; b4a57b50b19a6935f3eaaf086cf96b83 X-purgate: clean X-purgate-type: clean X-purgate-ID: 154106::1391356033-00000517-5A52B565/0-0/0-0 X-Scan-SA: cora.hrz.tu-chemnitz.de; 2014-02-02 16:47:13; 59755db6c53d7eb1b2857de7f02ec883 X-Spam-Score: -1.5 (-) X-Spam-Report: --- Textanalyse SpamAssassin 3.3.1 (-1.5 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -0.5 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain --- Ende Textanalyse X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Feb 2014 16:09:47 -0000 I'm using the following since a few years which seems to work fine - it's a rather hacky approach, though, I guess: Index: sys/cddl/compat/opensolaris/sys/cpuvar.h =================================================================== --- sys/cddl/compat/opensolaris/sys/cpuvar.h (revision 227813) +++ sys/cddl/compat/opensolaris/sys/cpuvar.h (working copy) @@ -50,6 +50,9 @@ /* Some code may choose to redefine this if pcpu_t would be more useful. */ #define cpu_t solaris_cpu_t +#ifdef cpu_id +#undef cpu_id +#endif #define cpu_id cpuid extern solaris_cpu_t solaris_cpu[]; Quoting hhh@sdf.org: > Hi all, > > I would like to know what is the status of the ZFS on ARM. My goal is > to connect ZFS formatted hard drive to the Beaglebone Black running > FreeBSD 10 (RELEASE or STABLE). > > I tried both the recent pre-compiled (ftp server) and self-compiled > (crochet) images, but neither contained zfs.ko module. I tried to > compile the module on the board, but got error while compiling the > opensolaris module. > > > In file included from > /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/os/fm.c:59: > /usr/src/sys/modules/zfs/../../cddl/compat/opensolaris/sys/cpuvar.h:53:9: > error: 'cpu_id' macro redefined [-Werror] > #define cpu_id cpuid > ^ > ./machine/cpufunc.h:170:9: note: previous definition is here > #define cpu_id() cpufuncs.cf_id() > ^ > 1 error generated. > *** Error code 1 > > Stop. > make: stopped in /usr/src/sys/modules/zfs > > > > Why did it go wrong? > > Thanks for help! > > -- hhh > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"