I intend to run my OS on my computer which has no IDE controller, while qemu and bochs seem not to have anything but an IDE controller.
I'd rather not develop and test a SATA driver on my real computer as I'm not crazy about rebooting every 5 min when debugging or the possibility of corrupting my file systems. Thus I ask if there is some way I could test it in an emulated environment.
Do any emulators support SATA?
-
- Posts: 3
- Joined: Mon Mar 11, 2013 4:45 pm
Do any emulators support SATA?
Last edited by Sublimacija on Wed Mar 27, 2013 8:19 am, edited 1 time in total.
Re: Does any emulators support SATA?
VirtualBox supports SATA emulation (I think it may be the only emulator that does). I used it when developing the AHCI driver that BareMetal OS uses.
BareMetal OS - http://www.returninfinity.com/
Mono-tasking 64-bit OS for x86-64 based computers, written entirely in Assembly
Mono-tasking 64-bit OS for x86-64 based computers, written entirely in Assembly
Re: Does any emulators support SATA?
qemu supports it as well, it's just that the syntax is a bit non-obvious.
Code: Select all
qemu-system-x86_64 \
-drive file=...,if=none,id=mydisk \
-device ich9-ahci,id=ahci \
-device ide-drive,drive=mydisk,bus=ahci.0