Once Booted from MMC, eMMC not found

Glen Barber gjb at FreeBSD.org
Fri Jul 3 04:46:25 UTC 2015


Hi Tim,

On Thu, Jul 02, 2015 at 09:40:22PM -0700, Tim Kientzle wrote:
> > On Jul 2, 2015, at 7:35 AM, Glen Barber <gjb at FreeBSD.org> wrote:
> > 
> > I'm curious - is this even necessary to do anymore?
> > 
> > My latest tests (11-CURRENT and 10-STABLE) of BeagleBone Black images
> > "just boot."
> > 
> > Maybe I don't understand what this script is supposed to fix.  Can
> > someone clarify that for me?
> 
> The script just copies a running system booted from SD onto the eMMC so that a BBB can boot without an SD card.
> 
> The script just does the following:
>   * Erases the eMMC
>   * Reformats it
>   * Copies boot files from SD to eMMC
>   * Copies / from SD to eMMC (excluding a few things like /usr/src, /usr/obj that are unlikely to fit)
>   * Tweaks a few configuration parameters on the copied system
> 

Ah, okay, this is the part I was missing.  I misunderstood what the eMMC
did overall, and wasn't sure how this interacted with the system in
whole.

Thank you for the explanation.

Glen

> There’s really not much to it, as you can see for yourself:
> 
> https://github.com/freebsd/crochet/blob/master/board/BeagleBone/overlay/root/copy-to-emmc.sh <https://github.com/freebsd/crochet/blob/master/board/BeagleBone/overlay/root/copy-to-emmc.sh>
> 
> At one time, this worked pretty reliably, but a number of things seem to have broken since I last tried it.
> 
> Cheers,
> 
> Tim
> 
> 
> 
> > 
> > Thanks.
> > 
> > Glen
> > 
> > On Thu, Jul 02, 2015 at 04:32:10PM +0200, Hellmuth Michaelis wrote:
> >> it seems booting from eMMC is currently not possible, for a discussion of possible causes have a look at the thread https://lists.freebsd.org/pipermail/freebsd-arm/2015-March/010598.html
> >> 
> >> hellmuth
> >> 
> >> 
> >>> Am 02.07.2015 um 13:35 schrieb Andrew Gervase <andy.gervase at me.com>:
> >>> 
> >>> Thank  you for your reply, Glen:  To me, the script is optional.  All it does is partition and newfs a slice on mmc1, and then copies everything via tar from mmc0 to mmc1.  
> >>> 
> >>> My problem is, mmc1 doesn’t exist once the kernel loads.  I was wondering if there is a module that needs to be loaded or compiled into the kernel to make sure the eMMC (mmc1) is recognized.  
> >>> 
> >>> Andy ideas?
> >>> 
> >>> —Andy
> >>> 
> >>>> On Jul 2, 2015, at 01:06, Glen Barber <gjb at FreeBSD.org> wrote:
> >>>> 
> >>>> On Thu, Jul 02, 2015 at 05:03:06AM +0000, Glen Barber wrote:
> >>>>> On Wed, Jul 01, 2015 at 09:47:51PM -0700, agervase wrote:
> >>>>>> I was finally able to get my Beaglebone Black to boot from FreeBSD
> >>>>>> 10.1-RELEASE, however the copy-to-emmc.sh script fails because mmc1 is not
> >>>>>> found.  I'd very much like my BBB to boot automatically, preferably from the
> >>>>>> eMMC, however I'll take what I can!
> >>>>>> 
> >>>>>> Please forgive me in advance if this question has already been addressed, as
> >>>>>> my searches have yielded nothing helpful thus far.
> >>>>>> 
> >>>>>> My greatest appreciation in advance,
> >>>>> 
> >>>>> Please wait until next week when several changes/fixes are committed to
> >>>>> the stable/10 branch that can help with this.
> >>>>> 
> >>>>> Unless you do not have a particular reason to run 10-STABLE, you can try
> >>>>> the 11-CURRENT snapshots.  See the mailing list archives for
> >>>>> freebsd-snapshots@ for details.
> >>>>> 
> >>>> 
> >>>> Bah, actually I think what I suggested is orthogonal to your issue,
> >>>> since I just realized you mentioned a script I am unaware of.
> >>>> 
> >>>> Sorry for any confusion.
> >>>> 
> >>>> Glen
> >>>> 
> >>> 
> >>> _______________________________________________
> >>> freebsd-arm at freebsd.org mailing list
> >>> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> >>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
> >> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20150703/e40460be/attachment.bin>


More information about the freebsd-arm mailing list