aboutsummaryrefslogtreecommitdiffstats
path: root/mbr
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2010-11-26 15:17:13 -0500
committerGene Cumm <gene.cumm@gmail.com>2011-03-09 21:07:03 -0500
commite43b55ef33fca5cdff87aacd152232c12c20171d (patch)
treef42f8fa73ca7b2fcc68cf9dee30994d2bc06c41e /mbr
parent2bd1add73478a285a55b357703edeb7ea1e7c66e (diff)
downloadsyslinux-e43b55ef33fca5cdff87aacd152232c12c20171d.tar.gz
syslinux-e43b55ef33fca5cdff87aacd152232c12c20171d.tar.xz
syslinux-e43b55ef33fca5cdff87aacd152232c12c20171d.zip
mbr_ho.bin: install instructions
Diffstat (limited to 'mbr')
-rw-r--r--mbr/mbr_ho.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/mbr/mbr_ho.S b/mbr/mbr_ho.S
index 48220c21..18a5376b 100644
--- a/mbr/mbr_ho.S
+++ b/mbr/mbr_ho.S
@@ -39,6 +39,17 @@
* This should (hopefully) be only 8086 code
*/
+/*
+ * Install instructions (assuming your target is /dev/dev; file or block device):
+ *
+ * MBR:
+ * dd conv=notrunc bs=440 count=1 if=mbr_ho.bin of=/dev/dev
+ *
+ * VBR/PBR (works for FAT12/16/32, ext[234]fs, btrfs):
+ * echo -en "\0353\0130\0220" |dd conv=notrunc bs=1 count=3 of=/dev/dev
+ * dd conv=notrunc bs=2 count=210 seek=45 if=mbr_ho.bin of=/dev/dev
+ */
+
// #define DEBUG_MARKER1 /* Insert markers in binary */
// #define DEBUG_START /* Print entry addresses at start */
// #define DEBUG_LOADE /* movw versus pop */