From owner-freebsd-arm@FreeBSD.ORG Sat May 18 03:48:16 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 15C77811; Sat, 18 May 2013 03:48:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) by mx1.freebsd.org (Postfix) with ESMTP id 54E6CE05; Sat, 18 May 2013 03:48:15 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id c10so801591wiw.3 for ; Fri, 17 May 2013 20:48:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=6rFbWPeT4VHPlBcmw8g1z3Radlc/SlBwd9OdHDcH1K4=; b=hEaQyAEzo3d6+pKC6Vi8UpJxnp6VnmvOH4eUJEmZMUVtNbCH5gfclNpOEbGvkuIEUF mDoHbEdcb0cx9ftZSNb8F57SOQARm3qSB9bjkhe+2lzGrbPV1AvIUv7V1OqWETtASytp 2eToJ0ai/4+PyqtnlzhlsK2QTYHXFdbUVHojjAeXufvskRXU2k8Sic4irpWvRN+vIJXw dko3z77SZZTYSxpeXB+H9wExi8gvXMCicy214/Cz7FfA/TVks2nQsOfG1NTJ4WqsSNIy /MA5iaR6O5/Fndo9SY/XBsWzHyRDrFu/A8iJVsT0ha9z7yRyyPQLS+SwNQNz9wGKMOtN /f5w== MIME-Version: 1.0 X-Received: by 10.194.21.101 with SMTP id u5mr3577727wje.56.1368848893990; Fri, 17 May 2013 20:48:13 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.58.138 with HTTP; Fri, 17 May 2013 20:48:13 -0700 (PDT) In-Reply-To: <8DC27DAB-FC30-4152-A408-4D666AD15875@freebsd.org> References: <3B16A2E5-C92B-4248-BE98-DD5C1194CB05@freebsd.org> <86vc6hpb5r.wl%gnn@neville-neil.com> <8DC27DAB-FC30-4152-A408-4D666AD15875@freebsd.org> Date: Fri, 17 May 2013 20:48:13 -0700 X-Google-Sender-Auth: K4ZmGqmFjq2v87nmeocmVuO592o Message-ID: Subject: Re: Port: U-Boot for BeagleBone From: Adrian Chadd To: Tim Kientzle Content-Type: text/plain; charset=ISO-8859-1 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, 18 May 2013 03:48:16 -0000 This makes it really difficult to potentially support building FreeBSD images on non-FreeBSD platforms. It also means that people can do things like have out of date builds of things like bootloaders, mkuboot/mkuzimage, etc. That's why I'm kind of a bit worried about this trend. I'm likely going to go the opposite way with my stuff. Ie, if I do need bootloaders and such, I'll be packaging either the source trees, or ports themselves, as part of the "freebsd-wifi-image" build environment. I'll try to reuse the port build infrastructure as much as possible but I won't rely on many tools and external support software trees that aren't in /usr/src or the build environment itself. Thanks, adrian On 17 May 2013 16:01, Tim Kientzle wrote: > > On May 17, 2013, at 5:20 PM, Adrian Chadd wrote: > >> ... so how do I do a userland build of a bootloader? :-) > >> Does crochet have extra stuff in it to build ports with alternate >> roots and install-as-user options set? Or does it now require you have >> them installed before you can build images? > > This is still pretty experimental, so feel free to chime > in with better ideas. > > My thinking right now is essentially that: > > * Port/package creates /usr/local/share/u-boot/u-boot-beaglebone/ > * Crochet uses these files when it builds the image > > So yes, the port or package containing the boot bits > would be a prerequisite. For the interim, this is not > much worse than the current "you have to download > the source and run crochet as root." > > This is basically driven from the observation that Crochet's > current logic to build a boot loader contains essentially > the same information (place to download source, patches, etc) > that go into a FreeBSD port. So it avoids a chunk of duplication > to make the boot loader builds be ports. > > I haven't thought through the non-root build case yet: > > Obviously, once the port/package is installed, using it > as a non-root user is no problem. I suspect this is the > common case. > > Building/installing the port as a non-root user should > be feasible, but I haven't tinkered with that yet. > > Downloading/installing the package as a non-root user > may also be feasible. > > Any suggestions? > > Tim > > > >> Thanks, >> >> >> adrian >> >> >> On 17 May 2013 14:08, wrote: >>> At Fri, 17 May 2013 13:41:33 -0700, >>> hiren panchasara wrote: >>>> >>>> On Fri, May 17, 2013 at 1:22 PM, Tim Kientzle wrote: >>>>> I'm trying to move the actual building of boot loaders out of Crochet and into FreeBSD ports. >>>>> >>>>> Here's the first attempt at such a port (many thanks to Diane Bruce for patiently tutoring me through this): >>>>> >>>>> http://people.freebsd.org/~kientzle/u-boot-beaglebone.tgz >>>>> >>>>> I'd appreciate any feedback: >>>>> * Can you build this? >>>> >>>> Yes. >>>> >>>> Its fetching things and I can see uboot generated in >>>> work/u-boot-2013.04/ >>> >>> It claims to require a cross building compiler in /usr/obj so I'm >>> waiting for that to build on my laptop. >>> >>>>> * Suggestions for improving it? >>>>> >>>>> If this works, I plan to use it as a template for U-Boot for other >>>>> platforms (RaspberryPi, Pandaboard, etc.). Crochet would then >>>>> rely on these ports instead of building boot loaders itself. Even >>>>> better, these will eventually be built by the package system and >>>>> available through packages. >>>> >>>> sweet! >>>> >>> >>> Works for me. Thanks to both of you. >>> >>> Best, >>> George >>> _______________________________________________ >>> 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" >> _______________________________________________ >> 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" >