Skip to contentSkip to conversation

i.MX53 QSB

DISCUSSION David Lynch Jr. 5 participants 6 messages Jan 25, 2012 – Jan 26, 2012

lore
Share & tools
lore
#1 lore raw

Hi David,

Quoted 5 lines · David Lynch Jr.

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

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

Hi,

Quoted 9 lines
Quoted 3 lines

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#3 lore raw
Quoted 12 lines · Marc Reilly

Hi,

Quoted 9 lines
Quoted 3 lines

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.

Quoted 6 lines

(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

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#4 lore raw
In reply to Sascha Hauer

HI,

I found a script

Best Regards,
J.

Quoted 9 lines · Sascha Hauer

Hi David,

Quoted 5 lines · David Lynch Jr.

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

Quoted 18 lines

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

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#5 lore raw
In reply to Sascha Hauer

Thanks for all the responses.

Quoted 9 lines · Sascha Hauer

Hi David,

Quoted 5 lines · David Lynch Jr.

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

Quoted 8 lines

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox