mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Update barebox on mmc without touching partition table
@ 2011-04-08  9:18 Thomas Mayer
  2011-04-08 13:21 ` Sascha Hauer
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Mayer @ 2011-04-08  9:18 UTC (permalink / raw)
  To: barebox

Hi,

to copy barebox to a mmc I use the command "dd if=barebox.bin 
of=/dev/sdb bs=512 seek=2 skip=2 && sync". So I don't touch the first 
0x400 bytes with contains the partition table and everything is fine.

But I want to write a little script to update barebox itself via tftp. 
So I create a partition "/dev/self0" (0x00000 to 0x40000) and update 
barebox with "tftp barebox.bin /dev/self0". The problem is that barebox 
write the first 0x400 bytes too and overwrite the partition table .

Is there any way to "seek" and "skip" with barebox?


Regards,
Thomas





_______________________________________________
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:[~2011-04-13 11:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-08  9:18 Update barebox on mmc without touching partition table Thomas Mayer
2011-04-08 13:21 ` Sascha Hauer
2011-04-13  9:28   ` Thomas Mayer
2011-04-13  9:51     ` Marc Kleine-Budde
2011-04-13 10:55       ` Thomas Mayer
2011-04-13 11:41         ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox