Do any emulators support SATA?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Sublimacija
Posts: 3
Joined: Mon Mar 11, 2013 4:45 pm

Do any emulators support SATA?

Post by Sublimacija »

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.
Last edited by Sublimacija on Wed Mar 27, 2013 8:19 am, edited 1 time in total.
User avatar
IanSeyler
Member
Member
Posts: 326
Joined: Mon Jul 28, 2008 9:46 am
Location: Ontario, Canada
Contact:

Re: Does any emulators support SATA?

Post by IanSeyler »

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
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: Does any emulators support SATA?

Post by Kevin »

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
Developer of tyndur - community OS of Lowlevel (German)
Post Reply