Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Nov 2013 22:08:54 +0100
From:      "Christopher J. Ruwe" <cjr@cruwe.de>
To:        <freebsd-ports@freebsd.org>, freebsd-arm@freebsd.org
Cc:        crees@FreeBSD.org, yerenkow@gmail.com
Subject:   cross-compiling for arm6 with poudriere - has anybody done that?
Message-ID:  <20131111220854.62f00133@dijkstra.cruwe.de>

next in thread | raw e-mail | index | archive | help
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)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131111220854.62f00133>