Booting barebox on i.MX6 from SDCARD?

Sascha Hauer s.hauer at
Thu Jun 26 12:42:12 PDT 2014

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 " 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

  dd if=images/barebox-freescale-imx51-babbage.img of=/dev/sdd bs=512 skip=1 seek=1


Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 |  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

More information about the barebox mailing list