Home arrow Forums
OSDEV Forums  


littlewing
User

Junior Osdever
Posts: 7
graphgraph
Karma: 0  
accessing the DVD drive - 2005/06/08 21:40 does anyone know a good tutorial for implementing DVD access to my OS? i don't need stuff like accessing the chapters and stuff to play it, i just need to know how i can read from it, like raw access to read it by sectors.

thanks
~littlewing
  | | The administrator has disabled public write access.
OSDEV
Community
Advertisement
   
root
User

Platinum Osdever
Posts: 121
graphgraph
Karma: 1  
Re: accessing the DVD drive - 2005/06/09 02:31 Hey

Looks to me that since your BIOS supports the DVD drive, it will be mapped and will be accessible through int 0x13 just like any other drive, however I'm not very sure about it.

You can learn more about DVDs by checking out UDF (Universal Disk Format). The specs are here: http://www.osta.org/specs/ and you can also take a look at the FreeBSD UDF driver which is over here: http://people.freebsd.org/~scottl/udf/

Good luck
  | | The administrator has disabled public write access.
Dex4u
User

Junior Osdever
Posts: 11
graphgraph
Karma: 0  
Re: accessing the DVD drive - 2005/06/09 07:03 Have implemented a ATAPI driver in your OS yet ?
  | | The administrator has disabled public write access.
littlewing
User

Junior Osdever
Posts: 7
graphgraph
Karma: 0  
Re: accessing the DVD drive - 2005/06/12 17:41 no i have not implement ATAPI in my OS.

i want to implement DVD reading and writing first since my OS is based primarily on that.

also, if i'm not mistaken don't you have to be in real mode to use int 0x13, my OS is in protected mode.

thanks
~littlewing
  | | The administrator has disabled public write access.
gaf
User

Platinum Osdever
Posts: 153
graph
Karma: 10  
Re: accessing the DVD drive - 2005/06/13 09:49 Hello,
If you're in pmode there's unfortunatelly no other way to access the disk drive but using the ATAPI interface, since the BIOS interrupts are (as you already said) not available. Informations on how to do this can be found on the "official" ata-atapi site aswell the T13 site which is the actual standard committee. If you search the T13 site for "Project drafts" you'll find some documents describing how to access a ata-atapi device. I however had the impression that the atapi standard is quite complex and it might thus not be such a good idea to implement it as a first driver in your OS.
Maybe you could port the open-source driver offered on the ATAPI site insted or implement a v86 monitor which would allow you to access the BIOS from pmode.

regards,
gaf
  | | The administrator has disabled public write access.
Dex4u
User

Junior Osdever
Posts: 11
graphgraph
Karma: 0  
Re: accessing the DVD drive - 2005/06/13 10:55 Hi, gaf is right in pmode you will need to use the ATAPI interface, i have implemented it in my OS, its not easy if you have not program some other drivers first.

If you still want to try, a good start is my demo CdPod available here: http://board.flatassembler.net/topic.php?t=2164&start=50
in that demo is a basic ATAPI driver , this will give you a start.

NOTE: I was called ASHLEY4. then, (but people thought i was a girl, so i changed it)
<span class='smallblacktext'>[ Edited Mon Jun 13 2005, 03:56PM ]</span>
  | | The administrator has disabled public write access.
littlewing
User

Junior Osdever
Posts: 7
graphgraph
Karma: 0  
Re: accessing the DVD drive - 2005/06/14 00:21 cdPod looks good but it is written in assembler, i'm looking for something in C

i have some example code, but it would be best if there was somewhere that explained what the code is doing, almost step by step, because the examples aren't very well commented.

i learn best when i have a tutorial or instructions, at least in the beginning.

thanks
~littlewing
  | | The administrator has disabled public write access.

A WebArticles site. Sponsored by Evoleto. Motorola V525 / Business Directory / Delaware Incorporation / Home Made Bazaar