Hi,David
I need to implement usb client(such as a mass-storage) on PXA255 based on linux-2.4.18-rmk7-pxa3.But I have no idea about how to start it.Can you help me?
There are some existing drivers to look at for examples of driver structure and how to talk through the "gadget" API to the controller. Gadget Zero is simplest, drivers/usb/gadget/zero.c is the path. There's a network link, drivers/usb/gadget/ether.c with CDC Ethernet support. The API documentation should help too.
Someone told me that the code(usb_ctl.c,usb_ep0.c...) in arch/arm/mach-pxa/ is a old stuff and you are maintaining a new gadget.But for some unknown reason I cat't access the http://www.linux-usb.org/gadget/ to get the new USB Gadget framework.Would you like to send me the related code or give me an another link?
For 2.4 the relevant link (as given on that page) is to a BK tree, from which you can extract just the "gadget" parts as a patch.
bk://kernel.bkbits.net/db/linux/gadget-2.4
Why can't you get that web page? Here are some mirrors of it:
http://wwwbode.cs.tum.edu/Par/arch/usb/linux-usb/gadget/ http://it.linux-usb.org/gadget/
And surely Google caches some version of it too.
After I get the code,where I should start from?Could you please provide any guidance?Any useful HOWTOs?
Look at existing drivers and docs (including that web page). Get the 2.6 kernel sources and "make pdfdocs" to get a "gadget.pdf" file, which provides API reference and a useful overview.
- Dave
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
