Page 1 of 1

Problem with floppy driver on bochs

Posted: Wed Apr 21, 2010 10:15 am
by gregnfj
I have a OS that loads from a floppy, when i run it on vmware it work correcly but on bochs the floppy driver fails.
I have also run it on real hardware and it work.
I use bochs 2.4.2 and vmware 1.0.3.
anyone have any idea what the problem could be?

Re: Problem with floppy driver on bochs

Posted: Wed Apr 21, 2010 10:52 am
by bewing
Does the bochs logfile give any error message?

Re: Problem with floppy driver on bochs

Posted: Wed Apr 21, 2010 12:51 pm
by gregnfj
The only thing relvant is 3 controller reset in software messeges but that could be normal from reinitilizing the floppy controler.

Re: Problem with floppy driver on bochs

Posted: Wed Apr 21, 2010 1:10 pm
by stlw
gregnfj wrote:The only thing relvant is 3 controller reset in software messeges but that could be normal from reinitilizing the floppy controler.
Assuming it works with real hardware - write to Bochs mailing list / open bug report for Bochs, include disk image with your floppy driver and explain how it should work and how do you see that it doesn't work.

Stanislav

Re: Problem with floppy driver on bochs

Posted: Wed Apr 21, 2010 3:18 pm
by gregnfj
yea i guess ill do that, just thought that maby someone has run into a similar problem before

Re: Problem with floppy driver on bochs

Posted: Thu Apr 22, 2010 10:07 am
by Selenic
stlw wrote:Assuming it works with real hardware - write to Bochs mailing list / open bug report for Bochs, include disk image with your floppy driver and explain how it should work and how do you see that it doesn't work.
Yeah, if you're doing that you'll want to remove as much code as possible from your OS, then post source and image. Basically, you're trying to maximize the amount and density of relevant information, while lowering both for irrelevant stuff. If you do that, it's much more likely that your problem will be looked into and fixed.

Re: Problem with floppy driver on bochs

Posted: Thu Apr 22, 2010 11:59 am
by bewing
gregnfj wrote:yea i guess ill do that, just thought that maby someone has run into a similar problem before
Oh, there are lots and lots of mistakes in the bochs and qemu floppy emulation. That's part of the problem -- you didn't narrow it down enough. The surprising thing is that it worked right in vmware.
Our wiki lists a few of the things that most emulators get wrong -- but I'm sure I could create a test program that shows bochs and qemu doing 40 different things completely wrong on floppy emulation.