Hi Mike,

Just a quick update about the question I asked. I could indeed get
KGDB to work (at least in some simple USB configuration) over the
f_acm device. I just implemented two I/O functions (put and get char)
using the queues already available in the driver. And added a polling
function based on the interrupt handler. The tricky part was I wanted
to use ADB simultaneously, and thus the polling function has to
service some traffic besides KGDB itself, for adb and other interface.
This works perfectly for adb, but I didn't test it very hard for the
mass storage interface. I am quite happy that I could get adb and kgdb
to work simultaneously now, and the hack worked quite stably (no
watchdog timeout issue).

I posted the code here: http://github.com/dankex/kgdb-android, and the
webpage you posted was about the same effort, which happened to be
written by me too sometime ago. I have updated it to include some new
updates.

The latest code is based on the nexusone branch, which I think uses
the gadget framework (defining CONFIG_USB_ANDROID), instead of
previous usb framework (defining CONFIG_USB_FUNCTION). If anyone could
get it to work too, or could not, or has any suggestions/questions,
please let me know.

Thanks,
Danke

On Jul 18, 12:05 pm, Mike Lockwood <[email protected]> wrote:
> I don't know - I haven't tried.  But there is some information here
> that might be helpful:http://bootloader.wikidot.com/android:kgdb
>
> Mike
>
>
>
>
>
> On Sun, Jul 18, 2010 at 2:50 PM, Danke Xie <[email protected]> wrote:
> > Hi Mike,
>
> > Thanks for the suggestion. f_acm solved the problem I had. Now I got a
> > serial
> > port to work with adb at the same time. I am trying to use the serial
> > port for KGDB,
> > actually. I guess it's still ok to use ACM to do so?
>
> > Thanks
> > Danke
>
> > On Jul 17, 10:59 am, Mike Lockwood <[email protected]> wrote:
> >> On Sat, Jul 17, 2010 at 1:50 PM, Vikram <[email protected]> wrote:
>
> >> > On Jul 17, 7:50 am, hedwin <[email protected]> wrote:
> >> >> I doubt if you can hookup multipe gadgets to a single device where USB
> >> >> is in device mode. In host mode this is not an issue.
>
> >> > The whole USB Composite Gadget framework of Linux was written to cater
> >> > to this need.
> >> > So yes its very much a reality and works.
>
> >> Right - we are talking about a single device that supports multiple
> >> USB functions simultaneously (like mass storage and adb), not multiple
> >> physical devices connected to the phone.
>
> >> --
> >> Mike Lockwood
> >> Google android team
>
> > --
> > unsubscribe: [email protected]
> > website:http://groups.google.com/group/android-kernel
>
> --
> Mike Lockwood
> Google android team

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to