From owner-freebsd-arm@FreeBSD.ORG Fri May 17 23:01:52 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 A33D97D9 for ; Fri, 17 May 2013 23:01:52 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) by mx1.freebsd.org (Postfix) with ESMTP id 720522A5 for ; Fri, 17 May 2013 23:01:52 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id e11so10532597iej.2 for ; Fri, 17 May 2013 16:01:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to:x-mailer :x-gm-message-state; bh=np8qol6Y4fWLZIMeJAFVBQ/jcNE3nQnk3JWgqIxtSPI=; b=fhARaxfS/kfcW5PiqGVH24g427Tk3YUDmKyuh4f+1wWODKqdFhwRPRstJZRhOQ5Bu/ qyaDaHOOdDbSpWIKfepdes/e3h7r96vWVzvqn//1xx7yafC13gxGeyJtgzoSL1L12Ihm SS8sWz6VKX/dgH+QWjPLOHWI4rumrBFIiK1wNuyWsC4poPC0CAxGJbJRtxDll/rLWHYw vQjOPC5+zIUwSKSbSG0hro8SA7FS7JKMgQWvXgW19Ddj45HIqlctebki/uurFk9YVXhs f+4t4VNeVSKpipxx6fQZLwwZT8eJzEIEUjddwmKe3oaZEyL+5ki7TPRXH/Pv1puOh43i CMkA== X-Received: by 10.43.147.137 with SMTP id kc9mr27945309icc.9.1368831712094; Fri, 17 May 2013 16:01:52 -0700 (PDT) Received: from [172.24.137.243] ([137.122.64.8]) by mx.google.com with ESMTPSA id qr3sm978417igb.1.2013.05.17.16.01.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 May 2013 16:01:51 -0700 (PDT) Sender: Tim Kientzle Subject: Re: Port: U-Boot for BeagleBone Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/signed; boundary="Apple-Mail=_5067653B-79DB-4003-A5BA-4E9E4B44DE79"; protocol="application/pgp-signature"; micalg=pgp-sha1 From: Tim Kientzle In-Reply-To: Date: Fri, 17 May 2013 19:01:48 -0400 Message-Id: <8DC27DAB-FC30-4152-A408-4D666AD15875@freebsd.org> References: <3B16A2E5-C92B-4248-BE98-DD5C1194CB05@freebsd.org> <86vc6hpb5r.wl%gnn@neville-neil.com> To: Adrian Chadd X-Mailer: Apple Mail (2.1283) X-Gm-Message-State: ALoCoQnelFcIsBxDi8HGd1Gm2BKGhc1x57CiGB7niWXf72KWtaPGtzZLH4RmqOKEp456WuMrho9u 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: Fri, 17 May 2013 23:01:52 -0000 --Apple-Mail=_5067653B-79DB-4003-A5BA-4E9E4B44DE79 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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, >=20 >=20 > adrian >=20 >=20 > On 17 May 2013 14:08, wrote: >> At Fri, 17 May 2013 13:41:33 -0700, >> hiren panchasara wrote: >>>=20 >>> 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. >>>>=20 >>>> Here's the first attempt at such a port (many thanks to Diane Bruce = for patiently tutoring me through this): >>>>=20 >>>> http://people.freebsd.org/~kientzle/u-boot-beaglebone.tgz >>>>=20 >>>> I'd appreciate any feedback: >>>> * Can you build this? >>>=20 >>> Yes. >>>=20 >>> Its fetching things and I can see uboot generated in >>> work/u-boot-2013.04/ >>=20 >> It claims to require a cross building compiler in /usr/obj so I'm >> waiting for that to build on my laptop. >>=20 >>>> * Suggestions for improving it? >>>>=20 >>>> 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. >>>=20 >>> sweet! >>>=20 >>=20 >> Works for me. Thanks to both of you. >>=20 >> 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" --Apple-Mail=_5067653B-79DB-4003-A5BA-4E9E4B44DE79 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.18 (Darwin) iQEcBAEBAgAGBQJRlrbdAAoJEGMNyGo0rfFBn1kIAOqUFfNHmjceX+HF0dawWY9B gqV9J9J5YqFCSQpNoyZ2YTitH3eJz/lwkXCIT/QqmiACYQYF3zgz85C47PjNxwO6 eUdX6RGapDD30EMBzfTy6oSwX8wUteeYC582PShiu0u+JAjZNMOT5H9J9B0+55mD tUmRMzMIigiDWVKwP4+2TDfjKrrCyWhUdoy7ztGL0fBJOpQF8BADYKnASX9IRCUB bK6olkoRqNFn32Mji106FkjueuGXPR+dkkmdGlGi85bDqVug8UFg3L/fjjLTA3Hd V27EozdXDOpJ7tTSnhbnEyct9Srou/W/Vyg/m/uSNCRRMbJS+EMxO2ELzlNcoK4= =HrS5 -----END PGP SIGNATURE----- --Apple-Mail=_5067653B-79DB-4003-A5BA-4E9E4B44DE79--