qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Natalia Portillo" <claunia@claunia.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] BIOS behaves different as real BIOS
Date: Sat, 17 Jul 2004 07:01:27 +0100	[thread overview]
Message-ID: <E1BliIR-0003a4-Ey@lists.gnu.org> (raw)

Hi!

I tried to boot an old operating system from qemu and I get a message from
BIOS saying that tbe floppy is not bootable (literally: "FATAL: Not a
bootable disk").

I think that this is because the BIOS searches for the 0x55AA signature on
last two bytes of first sector of disk.
As far as I remember, this signature was introduced very lately and as far
as I tested on my real systems, this signature is not really searched at
boot time, and every DOS before 3.0 doesn't have it (it is used also by
later DOSes and Windows to identify a FAT filesystem), at least on floppies
(I think that on hard disks it is also ignored, but never tested -0x55AA is
also used to identify Intel partition scheme, aka MBR-).

Regards,
Natalia Portillo

P.S.: Just have read the BIOS source code from the original IBM PC
documentation, and BIOS doesn't look for that signature, just do INT 13h to
copy the first sector from floppy 0 to 0x7c00 and then jump to it, just as
following (is NOT a copy from the documentation):

Mov ah, 02h
Mov al, 01h
Xor ch, ch
Mov cl, 01h
Xor dx, dx
Mov ex, 0000h
Mov bx, 7c00h
Jmp 7c00h

P.S.2: Maybe this mail should be better sent to bochs mailing list but I'm
not subscrided, so, if so, please resend it.

             reply	other threads:[~2004-07-17  6:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-17  6:01 Natalia Portillo [this message]
2004-07-17  6:40 ` [Qemu-devel] Re: BIOS behaves different as real BIOS Ben Pfaff
2004-07-17  6:45   ` Natalia Portillo
2004-07-17  6:51     ` Ben Pfaff
2004-07-17  7:04       ` Natalia Portillo
2004-07-17 15:47         ` Ben Pfaff
2004-07-17  7:12 ` [Qemu-devel] " Antony T Curtis
2004-07-17  8:20   ` Natalia Portillo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1BliIR-0003a4-Ey@lists.gnu.org \
    --to=claunia@claunia.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).