From owner-freebsd-arm@FreeBSD.ORG Sun Jan 5 19:51:37 2014 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 ESMTPS id 8C60BA33 for ; Sun, 5 Jan 2014 19:51:37 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5B7FE1E9D for ; Sun, 5 Jan 2014 19:51:37 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1VztjT-0001C3-UX; Sun, 05 Jan 2014 19:51:36 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s05JpW9x026591; Sun, 5 Jan 2014 12:51:33 -0700 (MST) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+kbHdHeabFhTaqArWhvmkq Subject: Re: FreeBSD 10 on Dockstar (Marvell Kirkwood) From: Ian Lepore To: Torfinn Ingolfsen In-Reply-To: <20140105144044.4fe6b8e063a664e4010c4cc4@getmail.no> References: <20131231211054.GA90299@moore.morphism.de> <1388770603.1158.273.camel@revolution.hippie.lan> <20140103175914.GC98342@moore.morphism.de> <20140105144044.4fe6b8e063a664e4010c4cc4@getmail.no> Date: Sun, 05 Jan 2014 12:51:32 -0700 Message-ID: <1388951492.1158.317.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: freebsd-arm@FreeBSD.org 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, 05 Jan 2014 19:51:37 -0000 On Sun, 2014-01-05 at 14:40 +0100, Torfinn Ingolfsen wrote: > On Fri, 3 Jan 2014 17:59:14 +0000 > Markus Pfeiffer wrote: > > > It does indeed work. I am a bit surprised that noone seems to be running > > FreeBSD on a dockstar seriously enough to run into these problems. > > FWIW, my Dockstar still runs FreeBSD 8.2-stable from 2011, due to problems getting anything newer working on it[1]. > > Another thing, how does one set up a build environment that doesn't clobber source builds on the host? > The last time I did this, I just let the Kirkwood build clobber the files on the host and fixed it afterwards. > Having a permanent build environment for Kirkwood would be much nicer. A lot of folks use the freebsd-crochet script to create images for arm systems. I've never learned to use it myself (and I usualy don't want a ready-to-flash image). I generally have a dozen or so active development "sandboxes" for different boards. For each board/project I'm working on I create a directory, and within it I have a script named "mk" and these subdirectories: config/ nfsroot/ obj/ src/ In config I put a make.conf and src.conf (even if they're empty), and a custom kernel config file if I'm not using one of the stock files. The src directory is a straight svn checkout of head or a stable branch or whatever. nfsroot is my default DESTDIR for installs; for development I tend to use nfs root. The mk script is attached. It basically sets up the usual defaults for whatever the sandbox is (kernel config name and such), then does a cd into the src directory and fires up make with whatever args I put on the command line. I can just type "mk buildworld" or "mk installkernel" or whatever and the mk script supplies the env vars and make options that never change. If I want to install to an sdcard or usb thumb drive instead of nfsroot/ I can just format and mount it and "mk installworld DESTDIR=/mnt". -- Ian