From owner-freebsd-arm@FreeBSD.ORG Thu Aug 1 03:45:30 2013 Return-Path: Delivered-To: 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 ESMTP id 318E4124 for ; Thu, 1 Aug 2013 03:45:30 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E65D2257C for ; Thu, 1 Aug 2013 03:45:29 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r713jMsY021330 for arm@freebsd.org; Thu, 1 Aug 2013 03:45:22 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id tsvx3nmsmrpuytpvpymk5kk752; for arm@freebsd.org; Thu, 01 Aug 2013 03:45:22 +0000 (UTC) (envelope-from kientzle@freebsd.org) From: Tim Kientzle Content-Type: multipart/signed; boundary="Apple-Mail=_8A099A6C-45B2-41B1-BB58-C8329D337275"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: RFC: sysutils/u-boot-beaglebone-eabi Date: Wed, 31 Jul 2013 20:45:19 -0700 Message-Id: To: "freebsd-arm@freebsd.org" Mime-Version: 1.0 (Apple Message framework v1283) X-Mailer: Apple Mail (2.1283) 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: Thu, 01 Aug 2013 03:45:30 -0000 --Apple-Mail=_8A099A6C-45B2-41B1-BB58-C8329D337275 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii 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 --Apple-Mail=_8A099A6C-45B2-41B1-BB58-C8329D337275 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) iQEcBAEBAgAGBQJR+dnRAAoJEGMNyGo0rfFBmmMH/0KTreKcuJsbE2cmpwzpbR7/ 4Eo43+cJhRHipKJF09ZcuxvsD6CddQNvSlv+hRq5jz/kqfkrah4iKBwMney2iLWX fcLqKHkkwADhzOpZT9FBPqbEt/0OWt3FyeCnjhEwqxiVCCZsB1l7UFYQJWtcTdXF ziKAEFlK+g1Z0pPaibXpqFoJ+d0uP6ekt1G55I2BU/MXI3e5VbqtOGUPCYJENsCq DSz81DoCjdOfGP1K28fyd3SSNSrJSoJzONGlhXkFupRK0hDEMZ9hFQg6hzf7hUHF pGLELv+TXSUaRj6/AXqhKgxkbvNGEKlVwD4kaSlaCLqnZeRowpIFfJG+XNs48bs= =8ICy -----END PGP SIGNATURE----- --Apple-Mail=_8A099A6C-45B2-41B1-BB58-C8329D337275--