Re: using gadgetfs on DM365/355

2008-11-27 Thread Diego Dompe

Hi,

One question regarding this Gadget FS, do I have to mount that as a  
device on linux host so that I can use this driver? if yes, can  
anybody tell me why?


I'm not sure if I'm following your question. The gadgetfs provides a  
file system on the embedded Linux that you need to mount to make your  
user-space driver work it that's what you mean.


On the USB host side you need a class driver for whatever class you  
are implementing.


I originally thought Gadget FS is just a API driver which exposes  
USB endpoint interrupts to user mode, so that User can design USB  
control parsing engine in application threads,

Is there a need to do the mounting?


GadgetFS mounts a file system that provides a file that you open in  
user space to control the ep0, and once the device is configured it  
creates files for every endpoint that you created.


Try running the usb.c example code and you will see how it works.

Diego Dompe
RidgeRun Engineering

___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


using gadgetfs on DM365/355

2008-11-27 Thread nan chen
Dear All,

I am trying to build my UVC Gadget API Driver by using Gadget FS, since we
do want to handle USB controls in User space, so we will also modify the
USB.c for our application.

One question regarding this Gadget FS, do I have to mount that as a device
on linux host so that I can use this driver? if yes, can anybody tell me
why?

I originally thought Gadget FS is just a API driver which exposes USB
endpoint interrupts to user mode, so that User can design USB control
parsing engine in application threads,
Is there a need to do the mounting?

I tried Gadget Zero and serial, I have not mounted anything.

Thanks a lot
Gary
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source