Thanks Danke's awesone work! The functions he wrote satisfied my debugging pretty well.
now I am sending the complete patch I am using. The thing is, you have to modify board-mahimahi.c as well. Because, you have to disable CONFIG_USB_ANDROID_MASS_STORAGE to avoid usb interface enumeration errors. other components just working fine. I am keeping cdc_acm gadget and adb gadget in my devices kernel. Hope Danke or someone can help fix this Be noticed that disable CONFIG_USB_ANDROID_MASS_STORAGE does not mean you lose your sdcard. But you just can not mount it directly from the host system. You still can "adb push XXX /sdcard/" for your file transfer tasks. Another bug is , when you unplug the cable from the device, you will get the following errors from the dmesg : [52874.177911] ehci_hcd 0000:00:1d.7: devpath 7.2 ep2in 3strikes [52874.178161] ehci_hcd 0000:00:1d.7: detected XactErr len 0/1024 retry 1 [52874.178286] ehci_hcd 0000:00:1d.7: detected XactErr len 0/1024 retry 2 [52874.178301] hub 5-7:1.0: state 7 ports 4 chg 0000 evt 0004 [52874.178414] ehci_hcd 0000:00:1d.7: detected XactErr len 0/1024 retry 3 [52874.178539] ehci_hcd 0000:00:1d.7: detected XactErr len 0/1024 retry 4 [52874.178547] hub 5-7:1.0: port 2, status 0100, change 0001, 12 Mb/s [52874.178664] ehci_hcd 0000:00:1d.7: detected XactErr len 0/1024 retry 5 [52874.178672] usb 5-7.2: USB disconnect, address 113 [52874.178674] usb 5-7.2: unregistering device [52874.178676] usb 5-7.2: usb_disable_device nuking all URBs On Thu, Jul 15, 2010 at 11:29 AM, Danke Xie <[email protected]> wrote: > I was trying to connect to the serial port on the Android device from > the host PC. What I was doing was loading the "usbserial" driver: > > modprobe usbserial product=<product id> vendor=<vendor id> > > It seems it does recognize all serial functions in the USB and created > several ttyUSB ports/devices. However, it seems (at least on my > device) that the interface used by ADB is also picked up by > "usbserial", and because of that, I couldn't use ADB to connect to the > device until I unload usbserial. > > Do you know if this is an issue? Is there a way to get both usbserial > and ADB to work? > > Thanks! > > -- > unsubscribe: > [email protected]<android-kernel%[email protected]> > website: http://groups.google.com/group/android-kernel -- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel
0001-kgdb-over-USB.patch
Description: Binary data
