TJ
2009-Mar-30 19:08 UTC
[syslinux] [PATCH 0/3] mbr: Ctrl-key press forces load from first hard disk
The following series of patches add a work-around for a BIOS bug to the MBR code. The user can press a Ctrl key at boot-time to force the MBR to ignore the BIOS-reported drive number (passed in register DL) and use the first hard-disk device (0x80). This works around a common problem that otherwise results in the "Missing operating system" message. If the BIOS-defined boot device order lists an external device (e.g. a USB flash mass-storage device) before the IDE/SCSI hard disk the USB device is the 'first' hard disk and should have drive number 0x80. The problem is some BIOSs report the wrong boot device number in DL but use the correct device number when the read_sector functions (AH=0x02/0x42, int 0x13) are called. This was discovered using the new diagnostic MBR: mbr-diag. mbr and isohdpfx are relatively straight-forward patches. gptmbr needed its ASCII strings shortened to create the space required for the new code. The space-saving changes were briefly discussed with H Peter Alvin on IRC prior to these patches being finalised. TJ (3): mbr: Ctrl-key press forces load from first hard disk gptmbr: Ctrl-key press forces load from first hard disk isohdpfx: Ctrl-key press forces load from first hard disk mbr/gptmbr.S | 16 ++++++++++++++-- mbr/isohdpfx.S | 12 ++++++++++++ mbr/mbr.S | 12 ++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-)
Possibly Parallel Threads
- [PATCH 0/3] v2: mbr: Ctrl-key press forces load from first hard disk
- [PATCH 1/1] v3: Add Diagnostic MBR for trouble-shooting BIOS boot-order problems.
- [PATCH 1/1] Add Diagnostic MBR for trouble-shooting
- [PATCH 1/1] v2 Add Diagnostic MBR for trouble-shooting
- [PATCH 3/3] v2: isohdpfx: Ctrl-key press forces load from first hard disk