OSDev.org

The Place to Start for Operating System Developers
It is currently Thu May 02, 2024 5:25 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Floppy driver problems :(
PostPosted: Wed May 16, 2007 10:04 pm 
Offline
Member
Member

Joined: Wed Oct 18, 2006 10:43 pm
Posts: 490
Location: Kansas City, KS, USA
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 61 times
File comment: Floppy C Source file
floppy.c [22.05 KiB]
Downloaded 69 times
Top
 Profile  
 
 Post subject:
PostPosted: Fri May 18, 2007 7:40 am 
Offline
Member
Member
User avatar

Joined: Fri Dec 15, 2006 5:26 pm
Posts: 437
Location: Church Stretton Uk
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?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 18, 2007 4:24 pm 
Offline
Member
Member

Joined: Sun Jan 14, 2007 9:15 pm
Posts: 2566
Location: Sydney, Australia (I come from a land down under!)
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.

_________________
Pedigree | GitHub | Twitter | LinkedIn


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group