Hardisk driver writing
Hardisk driver writing
I wanna make OS like DOS for database purpose but Protected Mode in X86
i must start in hardisk driver programming .
my Questions:
1.How to programming IDE and SCSI disk
2.How to read and write disk sector/block disk on SCSI and IDE disk
3.How relationship file system with Blockdisk (sectors) in FAT32 and UNIX file system
thx 4 yr att
i must start in hardisk driver programming .
my Questions:
1.How to programming IDE and SCSI disk
2.How to read and write disk sector/block disk on SCSI and IDE disk
3.How relationship file system with Blockdisk (sectors) in FAT32 and UNIX file system
thx 4 yr att
Re: Hardisk driver writing
Writing an OS from the beginning takes several years of solid work. Since you already seem to have an intended use for it, I would strongly suggest that you look at DexOS ( http://www.dex4u.com/ ). It is now open source, and meets the specs that you stated.
If you really must do your own, you can find information on writing the very simplest type of IDE driver on the wiki: ATA PIO Mode. In general, writing harddisk drivers is fairly hard -- especially "the good kind", DMA drivers. We haven't gathered enough information together to make a good wiki article yet on anything other than ATA PIO Mode.
If you really must do your own, you can find information on writing the very simplest type of IDE driver on the wiki: ATA PIO Mode. In general, writing harddisk drivers is fairly hard -- especially "the good kind", DMA drivers. We haven't gathered enough information together to make a good wiki article yet on anything other than ATA PIO Mode.
Re: Hardisk driver writing
THx buddy but that i want to know just:
how to read and write block disk on IDE and SCSI disk in c?
how to read and write block disk on IDE and SCSI disk in c?
-
- Member
- Posts: 153
- Joined: Sun Jan 07, 2007 9:40 am
- Contact:
Re: Hardisk driver writing
use BIOS int 0x13abertdas wrote:THx buddy but that i want to know just:
how to read and write block disk on IDE and SCSI disk in c?
Re: Hardisk driver writing
What I was saying is that SCSI is extremely difficult -- you probably need to start by either implementing ASPI, or creating a driver for a specific SCSI card, if you can find the manufacturer's specs.abertdas wrote:THx buddy but that i want to know just:
how to read and write block disk on IDE and SCSI disk in c?
Reading and writing an IDE drive is not possible in pure C. You need at least some inline assembly code. And you really do need to be good enough at assembly to be able to translate simple assembly code -- like the examples in the wiki article -- into C, for yourself, I'm afraid.
As far as the FAT32 format goes, if you use the "search" feature on this forum, you will find lots of links to it. Or look on wikipedia or google. UNIX typically uses the ext2 filesystem. Same for that.
Re: Hardisk driver writing
thx for repliez
everybody have codes in c or assembly for reading or writing block disk , i will learn it
thx guyz
everybody have codes in c or assembly for reading or writing block disk , i will learn it
thx guyz
Re: Hardisk driver writing
Here's a valuable link for the ATA/ATAPI commands:
http://www.t13.org/Documents/UploadedDo ... -ATA-2.pdf
http://www.t13.org/Documents/UploadedDo ... -ATA-2.pdf
Re: Hardisk driver writing
Also see bubach site http://bos.asmhackers.net/docs/ata/
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Re: Hardisk driver writing
I wonder how many times I'll have to link to this article?
Search the forum next time, this has been discussed before.
http://en.wikipedia.org/wiki/AT_Attachm ... d_features
Search the forum next time, this has been discussed before.
http://en.wikipedia.org/wiki/AT_Attachm ... d_features
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: Hardisk driver writing
Do you have at least floppy drivers implemented?