From owner-freebsd-arm@FreeBSD.ORG Thu Sep 22 00:14:18 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15664106566C for ; Thu, 22 Sep 2011 00:14:18 +0000 (UTC) (envelope-from mrossi@swin.edu.au) Received: from gpo2.cc.swin.edu.au (gpo2.cc.swin.edu.au [136.186.1.31]) by mx1.freebsd.org (Postfix) with ESMTP id A47DA8FC0C for ; Thu, 22 Sep 2011 00:14:17 +0000 (UTC) Received: from mrossi.caia.swin.edu.au (mrossi.caia.swin.edu.au [136.186.229.109]) by gpo2.cc.swin.edu.au (8.14.3/8.14.3) with ESMTP id p8M0DkX7025136; Thu, 22 Sep 2011 10:13:47 +1000 Message-ID: <4E7A7DB8.3040804@swin.edu.au> Date: Thu, 22 Sep 2011 10:13:44 +1000 From: Mattia Rossi User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0) Gecko/20110824 Thunderbird/6.0 MIME-Version: 1.0 To: Naoyuki Tai References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: How can I cross-compile the packages for ARM on i386 FreeBSD? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2011 00:14:18 -0000 Here you'll find my experience with cross-compiling: http://matrossi.blogspot.com/2011/08/cross-compiling-ports-for-arm-under.html You need to play with the configure args and the -rpath an -L settings a bit, and compile one port a at a time (each dependency by itself) for best results. The end of cross-compiling came to me in the form of perl.. Mat On 22/09/2011 00:04, Naoyuki Tai wrote: > > I'm running my DreamPlug off of a 4GB USB stick. First partition is > a small DOS partition for kernel.bin, and the rest (/dev/sd2s2a) is > the root partition. (I'll switch to larger SD card at some point.) > > With the root file system compiled into the kernel, > (options ROOTDEVNAME=\"ufs:/dev/da2s2a\") > > The first snag was that I could not use the portsnap. > After googling a little, I found out that disabling the clustering > of file I/O may fix it. > > cat /etc/fstab > /dev/da2s2a / ufs rw,noclusterr,noclusterw 1 1 > > After finding this out, I noticed > > http://www.plugcomputer.org/plugwiki/index.php/FreeBSD_8.0_Setup > > uses these mount option flags. (doh!) > > > Anyhow, at this point, I can probably compile every port. But it > would be really time consuming to do so on the DreamPlug. > > I'd like to learn how I can build the packages for the ARM on > the Intel FreeBSD 8.2 where I compiled the kernel for ARM. > Could someone point the direction for me? > > Thanks. > > -- Tai > _______________________________________________ > 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"