From owner-freebsd-arm@freebsd.org Mon Apr 11 13:33:32 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 45CD6B0B132 for ; Mon, 11 Apr 2016 13:33:32 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (kientzle.com [142.254.26.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DD96C1953 for ; Mon, 11 Apr 2016 13:33:31 +0000 (UTC) (envelope-from tim@kientzle.com) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id u3BDXILG086459; Mon, 11 Apr 2016 13:33:18 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.102] (192.168.1.101 [192.168.1.101]) by kientzle.com with SMTP id 3z55if6g9trs7durjbdyhsegba; Mon, 11 Apr 2016 13:33:18 +0000 (UTC) (envelope-from tim@kientzle.com) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Booting FreeBSD on BeagleBone Black from microSD by default From: Tim Kientzle In-Reply-To: <20160411040655.632D3406076@ip-64-139-1-69.sjc.megapath.net> Date: Mon, 11 Apr 2016 06:33:18 -0700 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <3BC5A04D-79DD-4820-A44F-B0A921D2FAA9@kientzle.com> References: <20160411040655.632D3406076@ip-64-139-1-69.sjc.megapath.net> To: Hal Murray X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2016 13:33:32 -0000 > On Apr 10, 2016, at 9:06 PM, Hal Murray = wrote: >=20 >=20 > Does anybody have the recipe for setting things up so that power on = boots=20 > from the microSD card without holding down the button? If the ROM cannot boot from eMMC, it will try to boot from microSD. The easiest way to make the eMMC not bootable is to zero out the boot sectors using dd: dd if=3D/dev/zero of=3D count=3D100 Of course, this makes the eMMC entirely unusable. I think you can then reformat the eMMC (make sure it does not have a FAT partition and does not have boot blocks) so it can be used without the ROM trying to boot from it. This way, the ROM will load U-Boot from microSD. >=20 > I'm pretty sure it will be simple after I know how to do it. Google = found info on the idea, but I couldn't find the file that needs editing. = It's off in uBoot land. Even if the ROM loads U-Boot from eMMC, the default Linux U-Boot setup on the eMMC can be configured to then load the Linux kernel from microSD. If you install the FreeBSD version of U-Boot to eMMC, you might be able = to do the same thing. Personally, I find the recipe above much simpler. Cheers, Tim