Getting started on USB driver

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Revelation
Member
Member
Posts: 47
Joined: Sat Jun 21, 2008 8:15 am

Getting started on USB driver

Post 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)?
Now is the winter of my disk content.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Getting started on USB driver

Post 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.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
hade12345
Posts: 3
Joined: Tue Dec 02, 2008 9:11 am

Re: Getting started on USB driver

Post by hade12345 »

Check out usb4dos at http://freenet-homepage.de/dieterp/
Should be helpful
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Re: Getting started on USB driver

Post 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
User avatar
Revelation
Member
Member
Posts: 47
Joined: Sat Jun 21, 2008 8:15 am

Re: Getting started on USB driver

Post 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.
Now is the winter of my disk content.
User avatar
Revelation
Member
Member
Posts: 47
Joined: Sat Jun 21, 2008 8:15 am

Re: Getting started on USB driver

Post 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.
Now is the winter of my disk content.
Post Reply