Page 1 of 1

Getting started on USB driver

Posted: Tue Jan 13, 2009 1:11 pm
by Revelation
Because my OS runs on a USB drive, I want to be able to read from it. So I started looking for info about USB driver programming. Practically the only thing I could find was the wiki page, which referenced to some design documents. Scrolling through the large documents searching for clues on how to start communicating with the device, I find myself looking for a needle in a haystack. I don't know where to start.

Aren't there any better documents (I am talking about the OHCI doc)?

Re: Getting started on USB driver

Posted: Tue Jan 13, 2009 1:22 pm
by Love4Boobies
If you ever want to develop your OS, you need to learn how to search the web :(
USB 3.0 spec
USB 2.0 spec
OHCI
UHCI
EHCI

The ULPI link seems to be down but I'm sure you'll find it if you just Google.

Re: Getting started on USB driver

Posted: Tue Jan 13, 2009 1:34 pm
by hade12345
Check out usb4dos at http://freenet-homepage.de/dieterp/
Should be helpful

Re: Getting started on USB driver

Posted: Tue Jan 13, 2009 1:37 pm
by Dex
Also try using the forum search http://forum.osdev.org/viewtopic.php?f= ... ex#p139910
The code is to run on DexOS, but you could just as eay run it from your own.
Also this should help http://www.usbmadesimple.co.uk/index.html

Re: Getting started on USB driver

Posted: Thu Jan 15, 2009 4:09 am
by Revelation
Thanks. I understand more of what I have to do. Now I'm trying to implement a mass storage device class. There are some nice documents here.

Re: Getting started on USB driver

Posted: Thu Jan 15, 2009 9:40 am
by Revelation
I'm still having some trouble with sending packages, because I don't know what value I should use for SYNC. I'm trying to read the device descriptor.


edit: I think I got that wrong. To read that data I should make an entry in the frame list that contains a TD with the package in it.