zizban wrote:
What do you suggest should be the first small step then?
I have made a very very small step.
I have made a wiki entry under IRIX for Projects, under projects I made a topic "USB mass storage" driver.
More projects can go under the Projects section if there is something anyone is interested in.
http://www.nekochan.net/wiki/ ... age_driver
Since I have built about 80% of the wiki from copying bits of posts from the forums and elsewhere, how much confidence do you think I have in an effort like this... ??
Especially when the wiki is not updated for like months at a time if I am not the one to do it..
This is how I had planned to do things.. I might be wrong... I am often 100% wrong, your views may differ...
1. Research and obtain hardware. There are actually several different types of USB mass storage devices as described in "USB Mass storage" (i), (ii) && (iii) ... Decisions need to be made about the type devices supported and the approach to be taken.
2.Test that the device actually works with the hardware. I did this with Gentoo Linux/MIPS with a VT6212 chipset card. Yes, I can muck about with this card under Linux/MIPS and it works.
3. Write userland code to explore the device, using the user land PCI interface. I never got far with this but this is the interest aspect.. not commercial project aspect comes in.
4. roll a simple loadable kernel module. That is no real effort copying from example PCI skeleton but anyway.
5. write userland programs to interact and test the driver.
6. Add step by step by step driver functionality for registration, open, close, ioctls, etc..
7. try to get the driver to display vendor strings, or recognise events.. user land PCI programs can actually respond to interrupts on IRIX.
8. try to get the driver to copy anything at all from IO space to the u_ area.
9. write test cases and debugging.
Why not use existing SGI USB devices..? You will be fighting with the device drivers that only support ohci anyway.
That is just the first driver..
Once you have userland access to say a keyboard or other HID then...
Then do similar to the above for a USB class drier.
Then a file system driver.
Oh, and it does not have to be me doing any of this either... its just interest for me.. I have NFS and gigabit networking on most of my SGIs. 'Tis the drinking and business card swapping season, downunder.
R.
i. Jan Axelson, "USB Mass storage" ISBN 978-1-931448-04-8
ii Jan Axelson, "USB Complete" same publisher and should turn up on Amazon.
iii Mindshare books on USB and PCI.