From owner-freebsd-arm@FreeBSD.ORG Fri Aug 2 13:42:35 2013 Return-Path: Delivered-To: arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 04FD9E19; Fri, 2 Aug 2013 13:42:35 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CEB9D2792; Fri, 2 Aug 2013 13:42:34 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1V5Fch-000NgP-1k; Fri, 02 Aug 2013 13:42:27 +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 r72DgNAi022694; Fri, 2 Aug 2013 07:42:23 -0600 (MDT) (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/jvSwmzSijw9VmTg+w14Uc Subject: Re: RFC: sysutils/u-boot-beaglebone-eabi From: Ian Lepore To: Tim Kientzle In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Fri, 02 Aug 2013 07:42:23 -0600 Message-ID: <1375450943.45247.240.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: "freebsd-arm@freebsd.org" 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, 02 Aug 2013 13:42:35 -0000 On Wed, 2013-07-31 at 20:45 -0700, Tim Kientzle wrote: > I (finally) got this port committed and would appreciate feedback. > > Especially if you're building BeagleBone (White or Black) > images *without* Crochet, please take a look and let me know > what needs to be changed so this is useful for you. > > Goals: > > 1) Build U-Boot as a port with correct dependencies. > > $ cd /usr/ports/sysutils/u-boot-beaglebone-eabi > $ make > $ make install > > This uses the arm-eabi-gcc cross-compiler so it can build on > any FreeBSD architecture and properly spit out an ARM executable. > > 2) Make it unnecessary for most people to actually build U-Boot. > > The port installs the binary bits into > /usr/local/share/u-boot/beaglebone-eabi. From there, system > builders such as Crochet can just copy the bits onto target images. > This also means that the FreeBSD package-building clusters > can build this so that people can get a usable pre-built > U-Boot by installing a binary package. > > 3) Provide a full-featured U-Boot for BeagleBone that can be used > for a variety of purposes. > > This port is currently based on the patches I developed while > working on Crochet, and I hope to soon switch Crochet to use > this instead of building U-Boot itself. But it should be useful to > anyone trying to run FreeBSD on BeagleBone, regardless of how > you're building or booting the system. If it's not useful to you, > please let me know why so I can try to make it more general. > (Rui has already suggested some changes to better support > netbooting.) > > 4) Provide a template for other U-Boot ports. > > Once this is stable, I intend to use the same approach to add > ports for U-Boot on RPi, U-Boot on PandaBoard, etc. > > Tim > > P.S. By the way, to make this work, I had to add real ARM cross-compiler > ports. We now have devel/arm-eabi-binutils and devel/arm-eabi-gcc > I took this out for a test drive yesterday, and it works great, thanks. I was able to adapt it pretty quickly to build myself a custom u-boot for the wandboard. About the only thing I had to change was to put the api_net stuff back in. -- Ian