On Wednesday 23 August 2006 11:19 am, Randy Pan wrote:
> Hi there,
> 
> I am trying to implement a MTP/PTP class driver in user space based on 
> Gadget fs. The kernel version is 2.6.14.2. I have my own UDC driver 
> which has already been tested by hooking up with gadget file storage 
> class driver.

There are some pending fixes -- mostly minor -- to gadgetfs, as well
as some which have already been merged, so you might want to sync
against more current code.  That version's mostly fine, but I figure
it's better to merge those fixes sooner rather than later!


> Both the UDC driver and gadgetfs are built as loadable modules. After 
> successfully loading these two modules, I was able to mount gadget fs by 
> doing "mount -t gadgetfs gadgetfs /dev/gadget". However only my UDC 
> driver name ($CHIP?) showed up under /dev/gadget. I didn't see any 
> endpoints under /dev/gadget. Or I have to create those endpoint files 
> myself?

It's behaving correctly.  You can't open those endpoint files until
you've first activated the device and thereby promised to respond to
requests on ep0.  See the sample driver code, downloadable from the
relevant section of http://www.linux-usb.org/gadget ...


> BTW, is there any gadget MTP/PTP class driver available now?

Not that I know of, but I'm quite sure one would find users.  It's
almost a FAQ in certain circles.  :)

- Dave


-------------------------------------------------------------------------
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