From owner-freebsd-arm@FreeBSD.ORG Mon Apr 29 01:13:47 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 9F9F9C08 for ; Mon, 29 Apr 2013 01:13:47 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 638461DF1 for ; Mon, 29 Apr 2013 01:13:46 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r3T1Djgu068549; Mon, 29 Apr 2013 01:13:45 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id dwmtk2s4sssht4mhw5sz99gw4w; Mon, 29 Apr 2013 01:13:45 +0000 (UTC) (envelope-from tim@kientzle.com) Subject: Re: BeagleBone Black Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: Date: Sun, 28 Apr 2013 18:13:45 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <511086A4-37A1-40B5-867E-64996A49EBB8@kientzle.com> References: <26A08C89-95EA-463D-98C5-A471F8D15C90@freebsd.org> <54A0884D-31D0-4FC6-BBB5-58E3D11050E6@freebsd.org> <77E91A57-7880-4908-8999-6115333F5002@kientzle.com> <517CEDBF.3090102@g7iii.net> To: Tim Kientzle X-Mailer: Apple Mail (2.1283) 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: Mon, 29 Apr 2013 01:13:47 -0000 On Apr 28, 2013, at 10:03 AM, Tim Kientzle wrote: > On Apr 28, 2013, at 2:37 AM, Iain Young wrote: >> On 28/04/13 08:13, Tim Kientzle wrote: >>=20 >>> The 4-pin adapter I got from Adafruit for use with Raspberry Pi = seems >>> to work just fine, though the CircuitCo documentation has the = instructions >>> wrong. It should be: >>> Black =3D> Pin 1 >>> Green =3D> Pin 4 >>> White =3D> Pin 5 >>=20 >> Hurm, I wonder what the other 3 pins are used for. They seem to be >> undocumented in the SRM >=20 > I believe they're unconnected. They're only there for compatibility > with the common FTDI TTL-232R-3v3 USB-to-serial > adapter that has a 6-pin connector. Adafruit has added a photograph of using their 4-wire adapter with the BB Black: http://www.adafruit.com/products/954 >=20 >>> Harumph. Looks like it always boots initially from the eMMC and >>> U-Boot then looks at the boot switch to decide whether to continue >>> from eMMC or uSD. >>=20 >> This would appear to be the default behaviour, but can be over-ridden >> if I read the SRM correctly. For a one off force to uSD boot, hold = down >> the "boot" button". See Page 57 of the SRM >=20 > Tried that, but from watching the serial console, it's still > loading U-Boot from the eMMC. It's U-Boot that actually looks > at that pin (there are some messages on the serial console > about U-Boot inspecting a GPIO pin). I was wrong. The point that was confusing me: The "boot switch" is *only* read when you apply power. Resetting the board doesn't read the boot switch; you have to actually remove power and then connect power while holding the switch. U-Boot does fiddle GPIO pins, but only to set some LEDs to indicate boot progress. >>> This sucks: the U-Boot on the eMMC doesn't have ELF support >>> nor API support so can't load and boot ubldr. Again, I was wrong. It actually is possible to build a micro-SD image and just boot it. So far, I have managed to build an image that would boot on either old or new BeagleBone. The build isn't quite repeatable --- I need to clean up some patches and fix a few loose ends. I was hoping to finish that tonight ... Tim