OSDev.org
https://forum.osdev.org/

Floppy driver problems :(
https://forum.osdev.org/viewtopic.php?f=1&t=13989
Page 1 of 1

Author:  quok [ Wed May 16, 2007 10:04 pm ]
Post subject:  Floppy driver problems :(

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!

Attachments:
File comment: Floppy Header File
floppy.h [9.27 KiB]
Downloaded 62 times
File comment: Floppy C Source file
floppy.c [22.05 KiB]
Downloaded 70 times

Author:  mathematician [ Fri May 18, 2007 7:40 am ]
Post subject: 

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?

Author:  pcmattman [ Fri May 18, 2007 4:24 pm ]
Post subject: 

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.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/