Hello,

Please bear with me as I am very new to this. I have several questions
regarding the GadgetFS driver that provides a user-mode API for
developing user-mode drivers.

I want to use GadgetFS on an embedded system with an Au1200 chip running
a precompiled kernel - 2.6.11. Here's what I did before running the
example code (usb.c , usbstring.c from the linux-usb.org/gadget
website). I loaded the gadgetfs.ko which is included in the precompiled
kernel with `modprobe gadgetfs`, then `mount -t gadgetfs path
/dev/gadgetfs`. At this point, there is a file `amd5536udc` in the
/dev/gadgetfs folder.

(amd5536udc.h)
http://210.217.20.216/websvn/filedetails.php?repname=kernel&path=%2Fdrivers%2Fusb%2Fgadget%2Famd5536udc.h&rev=0&sc=0
(amd5536udc.c)
http://210.217.20.216/websvn/filedetails.php?repname=kernel&path=%2Fdrivers%2Fusb%2Fgadget%2Famd5536udc.c&rev=0&sc=0

I realize that there's no autoconfiguration in the usb.c example code
for amd5536udc, so I changed it a little for it to use the 'AMD au1x00
processor, full speed only' configuration. However, this is not working
out, as the device stops responding when the sample code is executed
(this happens only when the usb cables are plugged in.). I don't know
why this happens. So this brings me to my first question : how do you
figure out which endpoints to use?

2nd Question : How complicated is it to get the host computer to
communicate with the device via USB? Is there no simple solution, like
opening a communication pipe for the host computer to send and receive
commands to the USB device? (I guess the answer is no).

3rd Question : What reference book would you recommend for developing a
simple USB Gadget Driver? (assuming this is the only way a usb device
can be configured to talk to the host computer). O'reilly's Linux Device
Drivers says "USB gadget drivers are outside the realm of this book at
this point in time".

Thankyou,
Yours
Lisa Y.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to