From owner-freebsd-arm@FreeBSD.ORG Sat Apr 13 20:48:54 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4FB4B11F for ; Sat, 13 Apr 2013 20:48:54 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 14D1E133C for ; Sat, 13 Apr 2013 20:48:52 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r3DKmjx0039247; Sat, 13 Apr 2013 20:48:45 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id 42r9pgt7v3itaevszfjj4imrze; Sat, 13 Apr 2013 20:48:45 +0000 (UTC) (envelope-from tim@kientzle.com) Subject: Re: Packages for RPi Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: Date: Sat, 13 Apr 2013 13:48:44 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <516797EA.1080504@thieprojects.ch> To: hiren panchasara X-Mailer: Apple Mail (2.1283) Cc: freebsd-arm 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: Sat, 13 Apr 2013 20:48:54 -0000 On Apr 12, 2013, at 12:50 AM, hiren panchasara wrote: > On Thu, Apr 11, 2013 at 10:13 PM, Werner Thie = wrote: >>=20 >> On 4/12/13 5:31 AM, hiren panchasara wrote: >>>=20 >>> Played with Tim's crochet scripts and generated an image last night. >>> Works great. Thanks for all the work. >>>=20 >>> Sorry if the following question has been answered: >>> How do I build things/ports on the pi. I am building ports on it and >>> boy...its slow (as expected). Is there any better way I do not know >>> of? Cross-compiling of any sort? >>=20 >> Hi >>=20 >> Just doing it the slow way on the RPi itself, but the most promising >> solution to me seems the poudriere >>=20 >> https://fossil.etoilebsd.net/poudriere/doc/trunk/doc/index.wiki >=20 > Alright. I am setting up poudriere right now for building arm = packages. > Lets see how it goes. >=20 > Thanks for the suggestion, > Hiren >=20 >>=20 >> solution, which allows for maintaining the ports tree and bulk = building >> packages for different architectures on the host and then using = portmaster >> on the RPi. I'll have to dive into this shortly, because bringing up = twisted >> on the RPi or BeagleBone is taking almost 24 hours Once you have built ports on one board, you can easily make packages from them and then install those packages directly from Crochet for future builds. You just need a web server that can serve static files (I run it on the same machine I'm running crochet itself on): 1) Build the ports (I've been doing this natively). 2) Create package files: $ pkg create -a 3) Create a catalogue of your packages: $ pkg repo 4) Put the package files and catalog on a web server somewhere. You can then use a config.sh similar to the following: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D board_setup BeagleBone option ImageSize 3950mb customize_freebsd_partition ( ) { echo "Installing packages" # Where to download packages from: PACKAGESITE=3Dhttp://192.168.3.1/~tim/packages export PACKAGESITE # Upgrade 'pkg' on the build target first. pkg -c $1 update pkg -c $1 install -y pkg pkg -c $1 upgrade # Now install other packages: pkg -c $1 install -y emacs-nox11 } =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D CAVEAT: pkgng does not yet handle POST-INSTALL scripts when doing cross-architecture installs like this. This will cause a bunch of warnings and likely some missing symlinks. (There are a couple of straightforward ways it could handle POST-INSTALL issues; just needs someone to do the work.) Tim