Update barebox on mmc without touching partition table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux