* i.MX53 QSB
@ 2012-01-25 20:58 David Lynch Jr.
2012-01-25 22:08 ` Sascha Hauer
0 siblings, 1 reply; 6+ messages in thread
From: David Lynch Jr. @ 2012-01-25 20:58 UTC (permalink / raw)
To: barebox
I can build a barebox.bin for the i.MX53 QSB.
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 ??
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: i.MX53 QSB
2012-01-25 20:58 i.MX53 QSB David Lynch Jr.
@ 2012-01-25 22:08 ` Sascha Hauer
2012-01-26 0:32 ` Marc Reilly
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Sascha Hauer @ 2012-01-25 22:08 UTC (permalink / raw)
To: David Lynch Jr.; +Cc: barebox
Hi David,
On Wed, Jan 25, 2012 at 03:58:53PM -0500, David Lynch Jr. wrote:
> I can build a barebox.bin for the i.MX53 QSB.
>
> 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.
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: i.MX53 QSB
2012-01-25 22:08 ` Sascha Hauer
@ 2012-01-26 0:32 ` Marc Reilly
2012-01-26 11:02 ` Michael Olbrich
2012-01-26 10:45 ` Jean-Christophe PLAGNIOL-VILLARD
2012-01-26 13:45 ` David Lynch Jr.
2 siblings, 1 reply; 6+ messages in thread
From: Marc Reilly @ 2012-01-26 0:32 UTC (permalink / raw)
To: barebox
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
similarly for the env and kernel...
sudo dd if=barebox_default_env of=/dev/sde bs=512 seek=512
sudo dd if=${KERNEL_LOC}/arch/arm/boot/uImage of=/dev/sde bs=512 seek=1536
sync && sync
Make sure that your boot pins are set to boot from SD!!
Cheers,
Marc
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: i.MX53 QSB
2012-01-26 0:32 ` Marc Reilly
@ 2012-01-26 11:02 ` Michael Olbrich
0 siblings, 0 replies; 6+ messages in thread
From: Michael Olbrich @ 2012-01-26 11:02 UTC (permalink / raw)
To: barebox
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: i.MX53 QSB
2012-01-25 22:08 ` Sascha Hauer
2012-01-26 0:32 ` Marc Reilly
@ 2012-01-26 10:45 ` Jean-Christophe PLAGNIOL-VILLARD
2012-01-26 13:45 ` David Lynch Jr.
2 siblings, 0 replies; 6+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-01-26 10:45 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox
[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]
HI,
I found a script
Best Regards,
J.
On 23:08 Wed 25 Jan , Sascha Hauer wrote:
> Hi David,
>
> On Wed, Jan 25, 2012 at 03:58:53PM -0500, David Lynch Jr. wrote:
> > I can build a barebox.bin for the i.MX53 QSB.
> >
> > 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.
>
> 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
[-- Attachment #2: generate_sd.sh --]
[-- Type: application/x-sh, Size: 2054 bytes --]
[-- Attachment #3: Type: text/plain, Size: 149 bytes --]
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: i.MX53 QSB
2012-01-25 22:08 ` Sascha Hauer
2012-01-26 0:32 ` Marc Reilly
2012-01-26 10:45 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-01-26 13:45 ` David Lynch Jr.
2 siblings, 0 replies; 6+ messages in thread
From: David Lynch Jr. @ 2012-01-26 13:45 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox
Thanks for all the responses.
On Wed, 2012-01-25 at 23:08 +0100, Sascha Hauer wrote:
> Hi David,
>
> On Wed, Jan 25, 2012 at 03:58:53PM -0500, David Lynch Jr. wrote:
> > I can build a barebox.bin for the i.MX53 QSB.
> >
> > 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.
>
> Sascha
>
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-01-26 13:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-25 20:58 i.MX53 QSB David Lynch Jr.
2012-01-25 22:08 ` Sascha Hauer
2012-01-26 0:32 ` Marc Reilly
2012-01-26 11:02 ` Michael Olbrich
2012-01-26 10:45 ` Jean-Christophe PLAGNIOL-VILLARD
2012-01-26 13:45 ` David Lynch Jr.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox