From owner-freebsd-arm@freebsd.org Wed Jun 29 12:43:01 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2C3B4B738C2 for ; Wed, 29 Jun 2016 12:43:01 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.126.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gromit.dlib.vt.edu", Issuer "Chumby Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 09F8E2919; Wed, 29 Jun 2016 12:43:01 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from mather.chumby.lan (c-71-63-91-41.hsd1.va.comcast.net [71.63.91.41]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gromit.dlib.vt.edu (Postfix) with ESMTPSA id 124D0746; Wed, 29 Jun 2016 08:42:53 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Booting FreeBSD on BeagleBone Black from microSD by default From: Paul Mather In-Reply-To: <35268C07-C9A3-430C-BB06-E2B99227DE5C@cs.huji.ac.il> Date: Wed, 29 Jun 2016 08:42:53 -0400 Cc: Tim Kientzle , freebsd-arm , Ian Lepore Content-Transfer-Encoding: quoted-printable Message-Id: <40958D61-2B4A-45DA-AD82-3A2841ADA091@gromit.dlib.vt.edu> References: <20160413095534.B48EA406057@ip-64-139-1-69.sjc.megapath.net> <1460560419.52955.23.camel@freebsd.org> <87D8B295-950F-4B9D-AF58-0455FC212087@kientzle.com> <35268C07-C9A3-430C-BB06-E2B99227DE5C@cs.huji.ac.il> To: Daniel Braniss X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 12:43:01 -0000 On Jun 29, 2016, at 2:21 AM, Daniel Braniss wrote: >> On 29 Jun 2016, at 07:14, Tim Kientzle wrote: >>=20 >>>=20 >>> On Jun 28, 2016, at 12:45 PM, Ed Maste wrote: >>>=20 >>> On 13 April 2016 at 11:13, Ian Lepore wrote: >>>> On Wed, 2016-04-13 at 02:55 -0700, Hal Murray wrote: >>>>>> gpart unset -a active -i 1 mmcsd1 >>>>>=20 >>>>> Many thanks. That's just what I was looking for. >>>>>=20 >>>>> It would make a good addition to the wiki. >>>>=20 >>>> Oh, that's a good idea (so I did it). >>>=20 >>> On a related note, do you know if it's possible for the stock uboot = on >>> the eMMC to chain-load a new uboot from the SD card somehow (in = order >>> to avoid needing to make any change to the eMMC image)? >>=20 >> If I remember correctly, the uboot provided on the stock eMMC image = was configured to see if the SD card had a Linux kernel and load the = kernel from that if it was there. If the SD did not have a Linux = kernel, it would fall back to eMMC. >>=20 >> Of course, if you=E2=80=99re willing to hold the boot switch, you can = boot from SD without changing the eMMC. >>=20 >=20 >=20 > last time I did this, and as far as I remember, you had to hold the = boot switch only once, > after that every reboot was from the sd card. This is my experience, too. Only cold boots require holding down the = boot switch. Warm boots (e.g., "shutdown -r") don't, and boot from the = SD card. Cheers, Paul.