I have troubles figuring out
Here they are.
Want to copy existing u-boot bits to image.
So I want to backup the first 16M or from sector 0 to sector 32768
How?
Does it really start at 63 sector or sector 0? What is in sector zero if not?
Should I be ending one sector earlier at 32767?
Conversely:
What if I want to blank just the first 16M or u-boot?
dd
syntax for u-boot in the bootsector.Here they are.
Want to copy existing u-boot bits to image.
gpart show da0
Code:
=> 63 122142657 da0 MBR (58G)
63 32705 - free - (16M)
How?
dd if=/dev/da0 of=uboot.img bs=512
Does it really start at 63 sector or sector 0? What is in sector zero if not?
Should I be ending one sector earlier at 32767?
Conversely:
What if I want to blank just the first 16M or u-boot?
dd if=/dev/zero of=/dev/da0 bs=512 seek 32767
???