Page 1 of 1

Floppy driver problems :(

Posted: Wed May 16, 2007 10:04 pm
by quok
I've been working on my floppy driver for a couple of weeks now. Reads work fine in VMware, but not Bochs or on real hardware. VMware dumps core on writes. I've only tried writes on vmware so far.

After trying to debug this for a week solid, my mind is going nuts from staring at this code and the floppy datasheets. I'm going to start on my ATA driver in an attempt to clear my head, but in the meantime I was wondering if maybe someone could spot what I'm doing wrong. I've attached the floppy header file and the C source as well.

Thanks!

Posted: Fri May 18, 2007 7:40 am
by mathematician
I can't see anything obviously wrong, but then the floppy is easily the most temperamental piece of hardware on the surface of the planet. Have you tried increasing the stepping rate time beyond the "standard" values? Failing that, is the problem with the DMA transfer?

Posted: Fri May 18, 2007 4:24 pm
by pcmattman
mathematician wrote:I can't see anything obviously wrong, but then the floppy is easily the most temperamental piece of hardware on the surface of the planet.
Hence the reason my OS doesn't support floppies yet (does support hard drives through LBA28 though - ATA is much easier).

With the floppy driver, there are multiple things to look for, such as disk changes (which it notifies you about), errors in reads (common) etc...

Also remember that in Bochs you have the log - you can easily find out what went wrong that way.