Floppy in Bochs

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
User avatar
Nessphoro
Member
Member
Posts: 308
Joined: Sat Apr 30, 2011 12:50 am

Floppy in Bochs

Post by Nessphoro »

Good day sirs,

As one of OS Dev members pointed out I should use Bochs for my debugging, but as soon as I switched to it from QEMU, the system stopped booting and halts on floppy initialization.

Any ideas?
User avatar
thepowersgang
Member
Member
Posts: 734
Joined: Tue Dec 25, 2007 6:03 am
Libera.chat IRC: thePowersGang
Location: Perth, Western Australia
Contact:

Re: Floppy in Bochs

Post by thepowersgang »

Yes, debug your code. Bochs never has bugs (well, they're rare enough that you must exhaust all other avenues and produce a minimum test case to be sure), so your code is at fault.

Printf spam, single stepping, cli;hlt, it's up to you.
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
DLBuunk
Member
Member
Posts: 39
Joined: Sun May 18, 2008 9:36 am
Location: The Netherlands

Re: Floppy in Bochs

Post by DLBuunk »

Two things come to mind:

One: bochs is not designed (according to the wiki) to handle polling-mode FDC transfers, so if you don't use DMA this may be the problem.
Two: the floppy subsystem requires a timer and bochs BIOS leaves the PIT uninitialized.
Post Reply