summaryrefslogtreecommitdiff
path: root/diag/mbr/README
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2012-11-29 11:58:47 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2012-11-29 11:58:47 +0000
commit0846de0e1795a30512f5575388d163ea548125de (patch)
treee1bc03fa83c61165f48ffe3f528ac5496332872a /diag/mbr/README
parentede8500d7c710e4ddf650f1a1ef3ccf2a89e5313 (diff)
parent7307d60063ee4303da4de45f9d984fdc8df92146 (diff)
downloadsyslinux-baserock/genivi/morph.tar.gz
Merge the latest changes from upstreambaserock/genivi/morph
Diffstat (limited to 'diag/mbr/README')
-rw-r--r--diag/mbr/README4
1 files changed, 3 insertions, 1 deletions
diff --git a/diag/mbr/README b/diag/mbr/README
index fb7a7dd8..96b67c6c 100644
--- a/diag/mbr/README
+++ b/diag/mbr/README
@@ -5,11 +5,13 @@ handoff.bin Show the data that the BIOS/MBR hands off to an MBR/VBR.
+++ USAGE +++
+NOTE: in the examples, mbr.bin, /dev/hda and /dev/hda1 are used as generic representations.
+
Writing out an MBR is straight forward (it is assumed below that /dev/hda is the target raw device and /dev/hda1 is the target partition):
dd conv=notrunc bs=440 count=1 if=mbr.bin of=/dev/hda
-Writing a VBR to match Syslinux requires more work as it must have a jump and be offset into the partition:
+Writing a VBR to match Syslinux requires more work as it must have a jump and be offset into the partition (and as a result the code must be compaible with this offset):
echo -en "\0353\0130\0220" |dd conv=notrunc bs=1 count=3 of=/dev/hda1
dd conv=notrunc bs=2 count=210 seek=45 if=mbr.bin of=/dev/hda1