From owner-freebsd-arm@freebsd.org Fri Jul 3 19:18:33 2015 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 DC7F4994380 for ; Fri, 3 Jul 2015 19:18:33 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery4.ore.mailhop.org (pmta2.delivery4.ore.mailhop.org [54.200.247.200]) by mx1.freebsd.org (Postfix) with SMTP id A146A2453 for ; Fri, 3 Jul 2015 19:18:33 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound1.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Fri, 3 Jul 2015 19:18:34 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t63JIULr026486; Fri, 3 Jul 2015 13:18:30 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1435951110.1648.158.camel@freebsd.org> Subject: Re: Once Booted from MMC, eMMC not found From: Ian Lepore To: Tim Kientzle Cc: Glen Barber , freebsd-arm , Hellmuth Michaelis Date: Fri, 03 Jul 2015 13:18:30 -0600 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> Content-Type: text/plain; charset="iso-8859-7" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jul 2015 19:18:34 -0000 On Fri, 2015-07-03 at 12:00 -0700, Tim Kientzle wrote: > > On Jul 2, 2015, at 9:46 PM, Glen Barber 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 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