<div dir="ltr">Sorry for not including all you asked for Kyösti, I've not had much time to spend on this. So you are saying if lsusb -v reports a 'Debug descriptor' I should be able to use that port as the EHCI debug port on the target?<div>
<br></div><div>When you say 'dmesg from the other end', you mean the target end(the Chromebox)? How do I get this? The Coreboot build the Chromebox ships with has USB debugging right?. Do I need to compile a new kernel to see it?<br>
<div><br></div><div>Tim.</div><div><br></div><div><br></div><div>Here is the sudo lsusb -v (From my laptop not the Chromebox):<div><br></div><div><div>Bus 003 Device 006: ID 0525:c0de Netchip Technology, Inc. </div><div>Device Descriptor:</div>
<div> bLength 18</div>
<div> bDescriptorType 1</div><div> bcdUSB 2.00</div><div> bDeviceClass 255 Vendor Specific Class</div><div> bDeviceSubClass 0 </div><div> bDeviceProtocol 0 </div><div> bMaxPacketSize0 64</div>
<div> idVendor 0x0525 Netchip Technology, Inc.</div><div> idProduct 0xc0de </div><div> bcdDevice 0.00</div><div> iManufacturer 0 </div><div> iProduct 0 </div><div>
iSerial 0 </div><div> bNumConfigurations 0</div><div>Debug descriptor:</div><div> bLength 4</div><div> bDescriptorType 10</div><div> bDebugInEndpoint 0x81</div><div> bDebugOutEndpoint 0x01</div>
<div>Device Status: 0x0000</div><div> (Bus Powered)</div></div><div><br></div><div><br></div><div>On the phone I see this in /proc/kmsg while connecting the phone to different USB ports on the Chromebox:</div><div><br>
</div><div><div><4><a href="tel:%5B%20%C2%A0680.485443" value="+34680485443" target="_blank">[ 680.485443</a>] USB connected!</div><div><6><a href="tel:%5B%20%C2%A0680.485473" value="+34680485473" target="_blank">[ 680.485473</a>] musb_pullup2 - Enabling USB Pullups </div>
<div><4><a href="tel:%5B%20%C2%A0680.485473" value="+34680485473" target="_blank">[ 680.485473</a>] Enable usb</div><div><6><a href="tel:%5B%20%C2%A0687.774627" value="+34687774627" target="_blank">[ 687.774627</a>] MUSB BUS RESET as b_peripheral</div>
<div><6><a href="tel:%5B%20%C2%A0687.774688" value="+34687774688" target="_blank">[ 687.774688</a>] musb RESET!</div><div><7><a href="tel:%5B%20%C2%A0687.774749" value="+34687774749" target="_blank">[ 687.774749</a>] dbgp gadget: setup: desc device</div>
<div><7><a href="tel:%5B%20%C2%A0687.774810" value="+34687774810" target="_blank">[ 687.774810</a>] dbgp gadget: setup complete: 0, 18/18</div><div><6><a href="tel:%5B%20%C2%A0687.847717" value="+34687847717" target="_blank">[ 687.847717</a>] MUSB BUS RESET as b_peripheral</div>
<div><6><a href="tel:%5B%20%C2%A0687.847747" value="+34687847747" target="_blank">[ 687.847747</a>] musb RESET!</div><div><7><a href="tel:%5B%20%C2%A0687.847747" value="+34687847747" target="_blank">[ 687.847747</a>] dbgp gadget: disconnected</div>
<div><7><a href="tel:%5B%20%C2%A0687.859619" value="+34687859619" target="_blank">[ 687.859619</a>] dbgp gadget: setup: desc device</div><div><7><a href="tel:%5B%20%C2%A0687.859619" value="+34687859619" target="_blank">[ 687.859619</a>] dbgp gadget: setup complete: 0, 18/18</div>
<div><7>[ 687.859863] dbgp gadget: setup: failure req 6 v 200</div><div><7>[ 687.860321] dbgp gadget: setup: failure req 6 v 200</div><div><7>[ 687.860656] dbgp gadget: setup: failure req 6 v 200</div>
<div><6>[ 710.459197] MUSB BUS RESET as b_peripheral</div><div><6>[ 710.459228] musb RESET!</div><div><7>[ 710.459289] dbgp gadget: disconnected</div><div><7>[ 710.459320] dbgp gadget: setup: desc device</div>
<div><7>[ 710.459381] dbgp gadget: setup complete: 0, 18/18</div><div><6>[ 710.530242] MUSB BUS RESET as b_peripheral</div><div><6>[ 710.530273] musb RESET!</div><div><7>[ 710.530273] dbgp gadget: disconnected</div>
<div><7>[ 710.540527] dbgp gadget: setup: desc device</div><div><7>[ 710.540557] dbgp gadget: setup complete: 0, 18/18</div><div><7>[ 710.540649] dbgp gadget: setup: failure req 6 v 200</div><div><7>[ 711.141265] dbgp gadget: setup: failure req 9 v 0</div>
<div><6>[ 716.865600] cpcap_usb_det: SenseBits = 0x4114</div><div><6>[ 716.865631] cpcap_usb_det: SenseBit = CPCAP_BIT_CHRGCURR1_S</div><div><6>[ 716.865661] cpcap_usb_det: SenseBit = CPCAP_BIT_DP_S_LS)</div>
<div><6>[ 716.865661] cpcap_usb_det: SenseBit = CPCAP_BIT_ID_FLOAT_S</div><div><6>[ 716.865692] cpcap_usb_det: SenseBit = CPCAP_BIT_SESSVLD_S</div><div><6>[ 716.967895] cpcap_usb_det: SenseBits = 0x4010</div>
<div><6>[ 716.967926] cpcap_usb_det: SenseBit = CPCAP_BIT_CHRGCURR1_S</div><div><6>[ 716.967926] cpcap_usb_det: SenseBit = CPCAP_BIT_ID_FLOAT_S</div><div><6>[ 717.069213] cpcap_usb_det: SenseBits = 0x4010</div>
<div><6>[ 717.069213] cpcap_usb_det: SenseBit = CPCAP_BIT_CHRGCURR1_S</div><div><6>[ 717.069244] cpcap_usb_det: SenseBit = CPCAP_BIT_ID_FLOAT_S</div><div><6>[ 717.171142] cpcap_usb_det: SenseBits = 0x4010</div>
<div><6>[ 717.171173] cpcap_usb_det: SenseBit = CPCAP_BIT_CHRGCURR1_S</div><div><6>[ 717.171173] cpcap_usb_det: SenseBit = CPCAP_BIT_ID_FLOAT_S</div><div><6>[ 717.272369] cpcap_usb_det: SenseBits = 0x4010</div>
<div><6>[ 717.272369] cpcap_usb_det: SenseBit = CPCAP_BIT_CHRGCURR1_S</div><div><6>[ 717.272369] cpcap_usb_det: SenseBit = CPCAP_BIT_ID_FLOAT_S</div><div><6>[ 717.373901] cpcap_usb_det: SenseBits = 0x4010</div>
<div><6>[ 717.373931] cpcap_usb_det: SenseBit = CPCAP_BIT_CHRGCURR1_S</div><div><6>[ 717.373931] cpcap_usb_det: SenseBit = CPCAP_BIT_ID_FLOAT_S</div><div><6>[ 717.491210] cpcap_usb_det: SAMPLE_2 cable may not be fully inserted</div>
<div><6>[ 717.592773] cpcap_usb_det: SenseBits = 0x4010</div><div><6>[ 717.592803] cpcap_usb_det: SenseBit = CPCAP_BIT_CHRGCURR1_S</div><div><6>[ 717.592834] cpcap_usb_det: SenseBit = CPCAP_BIT_ID_FLOAT_S</div>
<div><6>[ 717.592864] cpcap_usb_det notify_accy: accy=NONE</div><div><6>[ 717.592895] cpcap spi2.0: notify_accy: accy=4</div><div><4>[ 717.605804] USB disconnected!</div><div><4>[ 717.605834] Disable usb</div>
<div><6>[ 717.605834] musb_pullup2 - Disabling USB Pullups </div><div><7>[ 717.605865] dbgp gadget: disconnected</div><div><6>[ 720.975646] cpcap_usb_det: cable connected.</div><div><6>[ 720.976379] cpcap_usb_det: SenseBits = 0x401c</div>
<div><6>[ 720.976409] cpcap_usb_det: SenseBit = CPCAP_BIT_CHRGCURR1_S</div><div><6>[ 720.976440] cpcap_usb_det: SenseBit = CPCAP_BIT_ID_FLOAT_S</div><div><6>[ 720.976470] cpcap_usb_det: SenseBit = CPCAP_BIT_SESSVLD_S</div>
<div><6>[ 720.976470] cpcap_usb_det: SenseBit = CPCAP_BIT_VBUSVLD_S</div><div><6>[ 720.976501] cpcap_usb_det: Sense Pattern = SENSE_USB</div><div><6>[ 720.976531] cpcap_usb_det: USB or USB_FLASH</div>
<div><6>[ 720.976562] cpcap_usb_det notify_accy: accy=USB</div><div><6>[ 720.976562] cpcap spi2.0: notify_accy: accy=0</div><div><4>[ 720.976593] USB connected!</div><div><6>[ 720.976623] musb_pullup2 - Enabling USB Pullups </div>
<div><4>[ 720.976654] Enable usb</div></div><div><br></div></div></div><div><br></div><div>I can sent you the complete log outside the list if you need it.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Jan 24, 2014 at 1:07 AM, Kyösti Mälkki <span dir="ltr"><<a href="mailto:kyosti.malkki@gmail.com" target="_blank">kyosti.malkki@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 01/24/2014 01:39 AM, Timothy Potter wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Kyosti, Thanks the pointers. I tried adding the changes for dbgp from<br>
the bug20-2.6.35-linaro to the 2.6.32 kernel I'm running on the phone. You<br>
can see the results here:<br>
<br>
<a href="https://github.com/DengueTim/jordan-kernel/commits/AeroKernel" target="_blank">https://github.com/DengueTim/<u></u>jordan-kernel/commits/<u></u>AeroKernel</a><br>
<br>
</blockquote>
<br></div>
You still need the two patches from<br>
<a href="http://www.coreboot.org/EHCI_Gadget_Debug" target="_blank">http://www.coreboot.org/EHCI_<u></u>Gadget_Debug</a><br>
<br>
Looks like you reverted them for this attempt.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On startup, in /proc/kmsg I see:<br>
<br>
<7>[ 2.010284] dbgp gadget: setup: desc device<br>
<7>[ 2.010314] dbgp gadget: setup complete: 0, 8/8<br>
<7>[ 2.010467] dbgp gadget: setup: desc device<br>
<7>[ 2.010467] dbgp gadget: setup complete: 0, 18/18<br>
<7>[ 2.010589] dbgp gadget: setup: failure req 6 v 200<br>
<7>[ 2.010681] dbgp gadget: setup: failure req 6 v 200<br>
<7>[ 2.010772] dbgp gadget: setup: failure req 6 v 200<br>
<7>[ 2.016204] dbgp gadget: setup: failure req 6 v 3ee<br>
<br>
</blockquote>
<br></div>
Ignore those, g_dbgp driver implements only a few USB requests required for this special debug gadget purpose.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've attached the full log in case there's more clues as to why it's<br>
failing. Any more suggestions of what I should be looking at?<br>
</blockquote>
<br></div>
I requested "lsusb" and "sudo lsusb -v" and dmesg from the other end of the communication too. If you see a "Debug descriptor" listed there, you can connect and reboot the chromebook with usbdebug enabled and collect new dmesg from that android side.<br>
<br>
Also run "cat /dev/ttyGS0" on that android before you restart your chromebook.<span class="HOEnZb"><font color="#888888"><br>
<br>
Kyösti<br>
</font></span></blockquote></div><br></div>