Page 1 of 1

i got your floppy driver right here.....

Posted: Tue Nov 19, 2002 2:36 am
by ncsu121978
[attachment deleted by admin]

Re:i got your floppy driver right here.....

Posted: Wed Nov 20, 2002 6:21 am
by ncsu121978
just wanted to know if anyone has found it useful ?
or if anyone else has gotten it to work or has had trouble with it ?

Re:i got your floppy driver right here.....

Posted: Wed Nov 20, 2002 7:02 am
by Pype.Clicker
it seems fine, but i didn't found the time to test it in my OS already ...
anyway, it seems there's a missing stuff with include files (io.h, common_types.h, etc )

Re:i got your floppy driver right here.....

Posted: Wed Nov 20, 2002 10:21 am
by Tom
I might test it when I get my IDT working and my C++ kernel out the door ( changed plans... C++ first with a better printf and THEN a IDT. )

Re:i got your floppy driver right here.....

Posted: Wed Nov 20, 2002 3:07 pm
by ncsu121978
you should have a working idt tom since you kept emailing me asking me for my code and i finally sent it to you

Re:i got your floppy driver right here.....

Posted: Wed Nov 20, 2002 6:37 pm
by Tom
That's the one I'm about to test tonight! ;)

Re:i got your floppy driver right here.....

Posted: Sat Nov 23, 2002 2:59 pm
by Zi
[attachment deleted by admin]

Re:i got your floppy driver right here.....

Posted: Sun Nov 24, 2002 4:30 pm
by Zi
So what's the problem ncsu121978 ?????

Re:i got your floppy driver right here.....

Posted: Sun Nov 24, 2002 8:51 pm
by ncsu121978
well you can tell me what it is doing (or not doing as the case may be).....b/c i am honestly not going to look through all those source files you put in that zip.

make sure you have interrupts enabled....
make sure you run floppy_init() somewhere before you try to use it.
make sure you install the floppy interrupt which is IRQ6 and from within the isr call the floppy_interrupt_handler().....because the init function doesnt install a handler for you.....either install the handler to be this function, or call this function from your own handler

Re:i got your floppy driver right here.....

Posted: Mon Nov 25, 2002 3:25 am
by Zi
I've putted the right functions in the interrupt handler. The floppy drive stops after 2 seconds (so that's ok). I'm trying to read a sector by :

y=(char*) kmalloc(512*sizeof(char));
floppy_read_block(0,1,y);

And there, there is nothing at y...
More;, I've found that the int floppy_getbyte() always returns -1 !!!

Re:i got your floppy driver right here.....

Posted: Mon Nov 25, 2002 12:55 pm
by ncsu121978
make sure you set all the timeout values according to your timer interrupt frequency
right now mine runs at 100 Hz so alot of the values i set depend on that
also the getbyte always returning -1 means that the function timed-out before there was a byte to read....again this might have something to do with your timer running at a different frequency then mine

Re:i got your floppy driver right here.....

Posted: Thu Nov 28, 2002 3:30 pm
by Zi
It doesn't work again... I've putted the same frequency as you, and putted all like in your OS, but floppy_getbyte() returns -1 again... Or do you have some documentation to make floppy drivers ?