Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Jul 2015 13:18:30 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        Glen Barber <gjb@FreeBSD.org>, freebsd-arm <freebsd-arm@FreeBSD.org>, Hellmuth Michaelis <hm@hellmuth-michaelis.de>
Subject:   Re: Once Booted from MMC, eMMC not found
Message-ID:  <1435951110.1648.158.camel@freebsd.org>
In-Reply-To: <2608C773-A5D6-4828-8984-EB1A4205197F@kientzle.com>
References:  <1435812471361-6022231.post@n5.nabble.com> <20150702050306.GD45214@FreeBSD.org> <20150702050634.GE45214@FreeBSD.org> <462071B7-1D51-45CC-B69C-E59EA36DA729@me.com> <6C705C95-D95D-4207-B23A-01CD0E583426@hellmuth-michaelis.de> <20150702143542.GD53770@FreeBSD.org> <9012912E-229D-4F70-9CCD-A156E80D6CED@kientzle.com> <20150703044622.GE6532@FreeBSD.org> <2608C773-A5D6-4828-8984-EB1A4205197F@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2015-07-03 at 12:00 -0700, Tim Kientzle wrote:
> > On Jul 2, 2015, at 9:46 PM, Glen Barber <gjb@FreeBSD.org> wrote:
> > 
> > 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@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.
> 
> The eMMC chip is connected to the second SD/MMC interface on the SoC.  To the kernel, it should look just like a second SD/MMC card on the second interface.
> 
> BBB can boot from eMMC to create a nice self-contained system.  At one time, Crochet¢s BBB images could be easily copied to eMMC to boot from there without an SD card, but this doesn¢t seem to work anymore due to changes in FreeBSD somewhere.
> 
> I stopped using the eMMC for booting myself simply because 2GB wasn¢t enough for the things I was trying to do.  There are now BBB with 4G eMMC chips, so that may be worth looking into again.
> 
> Tim

Some changes in the mmc driver related to ancient msdos geometry stuff
caused failures for a while (a long while).  Those changes have been
undone (as of r283754 about a month ago), so I would expect that the
copy script would work again now.

In the case of the OP's problem, it was related to using 10.1-RELEASE,
and it's known that that release was broken in several ways on armv6.
10-stable (and hopefully the upcoming 10.2-RELEASE) should be fine.

-- Ian





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1435951110.1648.158.camel>