Hi Greg, Here is a source code at http://it.linux-usb.org/gadget/usb.c . Which I want to run on Android platform.
To be able to run this program, I need to mount on gadgetfs see what I am getting in /dev/gadget, modify this code accordingly and run it. On emulator, I want to reach at least till the point it blocks at read () in ep0_thread() waiting for getgetfs event. If I can reach till that point and load this new kernel on Android Dev Phone 1, I would be able to see USB initialization via gadgetfs. First step towards doing all this is to be able to mount on gadgetfs. Please let me know if some how I can run emulator for the kernel which supports mounting on gadgetfs. Thanks Ashutosh On Mar 4, 7:52 pm, Greg KH <gre...@gmail.com> wrote: > A: No. > Q: Should I include quotations after my reply? > > On Wed, Mar 4, 2009 at 6:38 AM, <as...@techmahindra.com> wrote: > > > I am trying to run a program which tests gadgetfs events when Android > > device is connected to host machine. > > What do you want/need to test? > > > In file kernel/drivers/usb/gadget/inode.c, I can see GADGET events. I > > think if I am able to mount on gadgetfs I will be able to run my code. > > Again, look at the Android usb gadget code, I do not think it hooks up > to gadgetfs. > > > I have also tried to select gadgetfs filesystem as module and compiled > > the kernel but emulator with -kernel option does not start. > > As stated before on this list, usb interaction does not work on the > emulator, so this might not get you very far :) > > thanks, > > greg k-h --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel -~----------~----~----~----~------~----~------~--~---