From: Sascha Hauer <s.hauer@pengutronix.de>
To: Lucas Stach <l.stach@pengutronix.de>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: Booting barebox on i.MX6 from SDCARD?
Date: Thu, 26 Jun 2014 21:42:12 +0200 [thread overview]
Message-ID: <20140626194212.GK14257@pengutronix.de> (raw)
In-Reply-To: <1403777490.4254.11.camel@weser.hi.pengutronix.de>
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
next prev parent reply other threads:[~2014-06-26 19:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-26 10:04 Holger Schurig
2014-06-26 10:11 ` Lucas Stach
2014-06-26 19:42 ` Sascha Hauer [this message]
2014-06-27 9:07 ` Holger Schurig
2014-06-27 10:33 ` Sascha Hauer
2014-06-27 11:17 ` Holger Schurig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140626194212.GK14257@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=l.stach@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox