jc at eclis.ch
2012-May-26 20:27 UTC
[syslinux] [PATCH] Update diag/mbr instruction to match the current filename.
From: Jean-Christian de Rivaz <jc at eclis.ch> I suspect that some instructions about how to use the diag/mbr was not updated when the source file was renamed to handoff.S. Here is a simple proposition to fix that. Jean-Christian de Rivaz --- diag/mbr/README | 4 ++-- diag/mbr/handoff.S | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/diag/mbr/README b/diag/mbr/README index fb7a7dd..080d65b 100644 --- a/diag/mbr/README +++ b/diag/mbr/README @@ -7,9 +7,9 @@ handoff.bin Show the data that the BIOS/MBR hands off to an MBR/VBR. 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 + dd conv=notrunc bs=440 count=1 if=handoff.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: 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 + dd conv=notrunc bs=2 count=210 seek=45 if=handoff.bin of=/dev/hda1 diff --git a/diag/mbr/handoff.S b/diag/mbr/handoff.S index 7af3fde..ab8582b 100644 --- a/diag/mbr/handoff.S +++ b/diag/mbr/handoff.S @@ -43,11 +43,11 @@ * 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 + * dd conv=notrunc bs=440 count=1 if=handoff.bin of=/dev/dev * * VBR/PBR (should work 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 + * dd conv=notrunc bs=2 count=210 seek=45 if=handoff.bin of=/dev/dev */ // #define DEBUG_MARKER1 /* Insert markers in binary */ -- 1.7.2.5
Gene Cumm
2012-May-26 21:30 UTC
[syslinux] [PATCH] Update diag/mbr instruction to match the current filename.
On May 26, 2012 5:03 PM, <jc at eclis.ch> wrote:> > From: Jean-Christian de Rivaz <jc at eclis.ch> > > I suspect that some instructions about how to use the diag/mbr was not > updated when the source file was renamed to handoff.S. Here is a simple > proposition to fix that. > > Jean-Christian de Rivaz > --- > diag/mbr/README | 4 ++-- > diag/mbr/handoff.S | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/diag/mbr/README b/diag/mbr/README > index fb7a7dd..080d65b 100644 > --- a/diag/mbr/README > +++ b/diag/mbr/READMENack. This section of README is _not_ specific to handoff.bin. I use as a generic name of an MBR.> diff --git a/diag/mbr/handoff.S b/diag/mbr/handoff.S > index 7af3fde..ab8582b 100644 > --- a/diag/mbr/handoff.S > +++ b/diag/mbr/handoff.S > @@ -43,11 +43,11 @@ > * Install instructions (assuming your target is /dev/dev; file or blockdevice):> * > * MBR: > - * dd conv=notrunc bs=440 count=1 if=mbr_ho.bin of=/dev/dev > + * dd conv=notrunc bs=440 count=1 if=handoff.bin of=/dev/dev > * > * VBR/PBR (should work 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 > + * dd conv=notrunc bs=2 count=210 seek=45 if=handoff.bin of=/dev/dev > */ > > // #define DEBUG_MARKER1 /* Insert markers in binary */ > -- > 1.7.2.5Ack. I did rename it during development. Thanks! Jean-Christian, I'll prepare this patch with you as author and signoff on it unless you'd rather make it fetchable. --Gene
jc at eclis.ch
2012-May-26 22:26 UTC
[syslinux] [PATCH][V2] Update diag/mbr instruction to match the current filename.
From: Jean-Christian de Rivaz <jc at eclis.ch> I suspect that some instructions about how to use the diag/mbr was not updated when the source file was renamed to handoff.S. Here is a simple proposition to fix that only into the handoff.S file. Jean-Christian de Rivaz --- diag/mbr/handoff.S | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/diag/mbr/handoff.S b/diag/mbr/handoff.S index 7af3fde..ab8582b 100644 --- a/diag/mbr/handoff.S +++ b/diag/mbr/handoff.S @@ -43,11 +43,11 @@ * 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 + * dd conv=notrunc bs=440 count=1 if=handoff.bin of=/dev/dev * * VBR/PBR (should work 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 + * dd conv=notrunc bs=2 count=210 seek=45 if=handoff.bin of=/dev/dev */ // #define DEBUG_MARKER1 /* Insert markers in binary */ -- 1.7.2.5
Apparently Analagous Threads
- [PATCH] new *br: Show handoff data
- raidz failure, trying to recover
- HP Zbook17 Dock and UEFI conflict with GK107GLM aka Quadro K1100M
- Xen +suse 10.1 +ASUS A6iTc w/AMD Turion Dual Core processor
- HP Zbook17 Dock and UEFI conflict with GK107GLM aka Quadro K1100M