flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > floppy dma problem |
Author |
|
Gomer73 18 Nov 2004, 22:03
Allignment is sometimes the issue.
If you are not on an even word boundary you will get that issue. |
|||
18 Nov 2004, 22:03 |
|
Octavio 18 Nov 2004, 22:40
Gomer73 wrote: Allignment is sometimes the issue. write bufer is at address 98000h . Now i´m using simple dma transfer not autoinitialized and it works. perhaps the floppy does not support autoinitialized dma on write operations. |
|||
18 Nov 2004, 22:40 |
|
Octavio 09 Dec 2004, 20:24
Now i have a floppy driver that works well on two computers but not on the 3rd ,i have tested the disk unit on another computer and it's ok so the problem is related to the mainboard controller.
Only sectors that have been previously readed by the bios are readed also by my driver from other sectors i only get zeros. when debuging i observed that after send 0 to port 3f2h (initialization) the status port 3f4h returns 0d0h meaning that i have to read some byte from data port but this is not explained on the manuals that i have. some idea? |
|||
09 Dec 2004, 20:24 |
|
thomasantony 20 Jan 2005, 12:17
Hi,
I read in a DMA tutorial at www.osdever.net that all the lengths sent to DMA is read +1. Thatis if you send 0 1 byte is read, if you send length, length+1 bytes are read. So you need to send actual length-1 to read. So you try sending 1023. BTW I am working on a basic DMA and FDC driver for my Os. It is not in working condition and I have built enough to test it. My Os is at: (This one has no DMA, FDC etc.) http://www.tomasm.tk Thomas Antony |
|||
20 Jan 2005, 12:17 |
|
Octavio 21 Jan 2005, 18:40
thomasantony wrote: Hi, Yes i know i also read tutorials, but tutorials always are missing some important details, so to develop a drive we have to do a lot of tests on different machines and try with different variations of the driver. Now the sources are available on my web page, pehaps you can find the bug |
|||
21 Jan 2005, 18:40 |
|
bogdanontanu 21 Jan 2005, 20:08
BTW the Floppy is supposed to use 512bytes sectors.
I know it can use different sector sizes but virtually all PC machines use a 512bytes sector size. Unfortunately Octavio i find myself unable to read OctASM source code... it is too complicated for me |
|||
21 Jan 2005, 20:08 |
|
thomasantony 23 Jan 2005, 05:29
Hi octavio,
I just completed my FDC driver yesterday. Get it in teh OSdev section of my site, http://www.tomasm.tk . Download v1.1 of RooOs. See the floppy.asm file and the dma.asm. The DMA sets up the buffer for floppy IO only BTW, I didn't understand the language at your site. It is espanol right? I only know 3 human languages which we have to learn at school frm the beginning. English, Hindi(our national language) and Malayalam(our regional language) The lanst two can be found in the Unicode list Thomas Antony |
|||
23 Jan 2005, 05:29 |
|
Octavio 25 Jan 2005, 17:58
thomasantony wrote: Hi octavio, I tested the 'read' command it turns on the fd, but nothing else. |
|||
25 Jan 2005, 17:58 |
|
thomasantony 30 Jan 2005, 04:47
Hi octavio,
That floppy driver had some problems. Icompletely rebuilt the driver. The new driver is available at; http://www.myfilebucket.com/u/tomasm/floppy.asm http://www.myfilebucket.com/u/tomasm/dma.asm http://www.myfilebucket.com/u/tomasm/fat12.asm The last one is a simple FAT12 driver whci can read a file from the disk. The filename supplied to the loadfile function should be in the format it is stored in the directory. eg logo.txt will be LOGO TXT . Thomas Antony Thomas Antony |
|||
30 Jan 2005, 04:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.