From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X0FZ5-0005H9-AS for barebox@lists.infradead.org; Thu, 26 Jun 2014 19:42:35 +0000 Date: Thu, 26 Jun 2014 21:42:12 +0200 From: Sascha Hauer Message-ID: <20140626194212.GK14257@pengutronix.de> References: <1403777490.4254.11.camel@weser.hi.pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1403777490.4254.11.camel@weser.hi.pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Booting barebox on i.MX6 from SDCARD? To: Lucas Stach Cc: "barebox@lists.infradead.org" On Thu, Jun 26, 2014 at 12:11:30PM +0200, Lucas Stach wrote: > Am Donnerstag, den 26.06.2014, 12:04 +0200 schrieb Holger Schurig: > > Hi all, > > > > In the Freescale i.MX6Q Reference manual they say in "8. System Boot" > > near the end of "8.5.3.1 Expansion Device eFUSE configuration" that > > the processor can load from SDCARD, but only up to 32 MB. > > > > Did any one of you succeeded in booting barebox from SDCARD, maybe > > with a trampoline code? Or can the PBL do that? AFAIK U-Boot can boot > > from sdcard, at least Boundary Devices have some web pages about this > > (for Nitrogen/SabreLite) on their web page. Anyone already found out > > how U-Boot does it? I could think about whatever U-Boot uses to load > > the "real" Barebox instead :-) > > Um, we started barebox from SD-card on a lot of boards where the boot > mode strapping allows this. > > Just dd the resulting *.img to an SD-card (you may skip the first 512 > byte to leave your MBR in place). If you got the boot mode selection > right it should just work. If we had the new documentation online I could answer with a link \o/ It has this in it: The images generated by the build process can be directly written to an SD card:: # with Multi Image support: cat images/barebox-freescale-imx51-babbage.img > /dev/sdd # otherwise: cat barebox-flash-image > /dev/sdd This will overwrite the partition table on the card. It can be preserved with:: dd if=images/barebox-freescale-imx51-babbage.img of=/dev/sdd bs=512 skip=1 seek=1 Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox