Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Apr 2016 06:33:18 -0700
From:      Tim Kientzle <tim@kientzle.com>
To:        Hal Murray <hmurray@megapathdsl.net>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: Booting FreeBSD on BeagleBone Black from microSD by default
Message-ID:  <3BC5A04D-79DD-4820-A44F-B0A921D2FAA9@kientzle.com>
In-Reply-To: <20160411040655.632D3406076@ip-64-139-1-69.sjc.megapath.net>
References:  <20160411040655.632D3406076@ip-64-139-1-69.sjc.megapath.net>

next in thread | previous in thread | raw e-mail | index | archive | help

> On Apr 10, 2016, at 9:06 PM, Hal Murray <hmurray@megapathdsl.net> =
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<eMMC device> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BC5A04D-79DD-4820-A44F-B0A921D2FAA9>