From owner-freebsd-arm@FreeBSD.ORG Mon Nov 11 21:08:59 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AC5ABCD0; Mon, 11 Nov 2013 21:08:59 +0000 (UTC) (envelope-from cjr@cruwe.de) Received: from wp376.webpack.hosteurope.de (wp376.webpack.hosteurope.de [IPv6:2a01:488:42::50ed:8591]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6BA7B27C0; Mon, 11 Nov 2013 21:08:59 +0000 (UTC) Received: from p57b802ab.dip0.t-ipconnect.de ([87.184.2.171] helo=dijkstra.cruwe.de); authenticated by wp376.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1VfyjA-0001a7-EW; Mon, 11 Nov 2013 22:08:56 +0100 Date: Mon, 11 Nov 2013 22:08:54 +0100 From: "Christopher J. Ruwe" To: , freebsd-arm@freebsd.org Subject: cross-compiling for arm6 with poudriere - has anybody done that? Message-ID: <20131111220854.62f00133@dijkstra.cruwe.de> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;cjr@cruwe.de;1384204139;6d94b4a6; Cc: crees@FreeBSD.org, yerenkow@gmail.com X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Nov 2013 21:08:59 -0000 I am cc'ing the persons originally describing a solution for my problem. I would like to cross-compile packages for FreeBSD on a Raspberry Pi (arm6) on a stronger machine. Various web-sources describe how to cross-compile kernel and world for arm6/RaspberryPi [1,2,3]. Roughly a year ago, reportedly, ports have been build successfully in chrooted environments, but have failed in poudriere jails [4,5]. I have not found any more recent information on that approach. From [5] i gather the issue in [4] has been fixed, so I will try to employ poudriere to build packages for my raspberry on a stronger machine. My idea is outlined as such: Build a 9.2-RELEASE jail, cross-compile a arm6 obj tree in that jail and set poudriere make.conf options to TARGET=arm TARGET_ARCH=armv6 TARGET_CPUARCH=armv6 PATH=/usr/obj/arm.armv6/usr/src/tmp/usr/bin:${PATH} CONFIGURE_HOST=amd64 STRIP_CMD=true Has anybody tried a similar approach or can comment on my idea? Should that be pointless, I do not want to waste much time trying. [1] crochet-freebsd: https://github.com/kientzle/crochet-freebsd [2] FreeBSD developer's notebook: http://kernelnomicon.org/?p=275 [3] How to install FreeBSD on a Raspberry Pi (or: How to cross compile FreeBSD/arm): http://ogris.de/howtos/freebsd-raspberry.html [4] yerenkow@gmail.com, Ports cross-compiling: http://lists.freebsd.org/pipermail/freebsd-hackers/2012-September/040428.html [5] crees@freebsd.org, Ports cross-compiling: http://lists.freebsd.org/pipermail/freebsd-hackers/2012-November/041106.html Many thanks, -- Christopher TZ: GMT + 1h GnuPG/GPG: 0xE8DE2C14 FreeBSD 9.2-STABLE #1 r256184: Thu Oct 10 19:12:54 CEST 2013 cjr@dijkstra.cruwe.de:/usr/obj/usr/home/cjr/media/src/freebsd/base/stable/9/sys/GEN_WDTRACE Punctuation matters: "Lets eat Grandma or Lets eat, Grandma" - Punctuation saves lives. "A panda eats shoots and leaves" or "A panda eats, shoots, and leaves" - Punctuation teaches proper biology. "With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead." (RFC 1925)