mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: barebox@lists.infradead.org
Subject: Re: i.MX53 QSB
Date: Thu, 26 Jan 2012 12:02:09 +0100	[thread overview]
Message-ID: <20120126110209.GD25121@pengutronix.de> (raw)
In-Reply-To: <201201261132.32331.marc@cpdesign.com.au>

On Thu, Jan 26, 2012 at 11:32:32AM +1100, Marc Reilly wrote:
> Hi,
> 
> > > If I am booting from the SD card how do I get it onto the card
> > > 
> > > dd if=barebox.bin of=/dev/sdc bs=512 seek=2 ??
> > 
> > cat barebox.bin > /dev/sdc
> > 
> > Of course this means that you will overwrite the partition table of the
> > SD card. I'm still loooking for a good way to make this behaviour more
> > convenient.
> 
> (For iMX35 at least): The barebox image doesn't contain anything in the first 
> 1K apart from an unconditional branch to the reset vector (at 2K offset). This 
> branch is not necessary for internal booting, because the app entry point is 
> specified in the flash header information.
> 
> sudo dd if=barebox.bin of=/dev/sde bs=512 seek=2 skip=2

If you need the first bytes, this should work:
dd if=barebox.bin of=/dev/sde bs=446 count=1
dd if=barebox.bin of=/dev/sde bs=512 seek=1 skip=1

Michael

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

  reply	other threads:[~2012-01-26 11:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-25 20:58 David Lynch Jr.
2012-01-25 22:08 ` Sascha Hauer
2012-01-26  0:32   ` Marc Reilly
2012-01-26 11:02     ` Michael Olbrich [this message]
2012-01-26 10:45   ` Jean-Christophe PLAGNIOL-VILLARD
2012-01-26 13:45   ` David Lynch Jr.

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=20120126110209.GD25121@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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