I started out booting from a floppy disk using
Code: Select all
qemu-system-i386 -fda image.bin
Code: Select all
qemu-system-i386 -hda image.bin
The problem is when starting qemu using these args (taken from https://stackoverflow.com/questions/483 ... ve-in-qemu)
Code: Select all
qemu-system-i386 \
-drive id=disk,file=image.bin,if=none \
-device ahci,id=ahci \
-device ide-drive,drive=disk,bus=ahci.0
Code: Select all
SeaBIOS (version rel-1.12.-0-ga5cab58e9a3f-prebuilt.qemu.org)
iPXE (http://ipxe.org) 00:03.0 C980 PCI2.10 PnP PMM+07F914C0+07EF14C0 C980
Booting from Hard Disk...
Boot failed: could not read the boot disk
Booting from Floppy...
Boot failed: could not read the boot disk
Booting from ROM...
...
Code: Select all
-boot menu=on
I tried using qemu 4.1.50 on both linux and windows and 2.8.1 on linux, exact same result in all versions.
A workaround I found (for working on the driver) was using
Code: Select all
qemu-system-i386 \
-hda image.bin
-drive id=disk,file=other.bin,if=none \
-device ahci,id=ahci \
-device ide-drive,drive=disk,bus=ahci.0
Am I doing something wrong here?
(I also posted this question to stack overflow if you happen to encounter it)