ADB doesn't work on 11.06 Panda or LEB-Panda

Bug #803057 reported by Paul Sokolovsky
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linaro Android
Fix Released
High
John Stultz

Bug Description

~patrik-ryd/dev1106genericp isn't recognized by host when connected using USB OTG cable, so cannot be connected to with ADB by following instructions at https://wiki.linaro.org/Platform/Android/ImageInstallation#After_Installation (which I wrote a day before while testing ~linaro-android/leb-panda #98).

Revision history for this message
Paul Sokolovsky (pfalcon) wrote : Re: leb-panda 11.06 doesn't have ADB over USB working

Now tried, same issue with http://releases.linaro.org/platform/linaro-n/android/11.06/leb-panda/ .

It uses:
<project name="people/andygreen/kernel-tilt" path="kernel" remote="linaro" revision="6a913eab50902271b42b0a9421ee2f9e1c6f93cb"/>

Whereas knowing working ~linaro-android/leb-panda #98 used:
<project path="kernel" name="people/asac/android/kernel/pandroid" revision="linaro-member--p-android-omap-2.6.35--prepatch1" remote="linaro"/>

summary: - ~patrik-ryd/dev1106genericp #1 doesn't have USB gadget mode enabled
+ leb-panda 11.06 doesn't have ADB over USB working
Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

Same applies to http://releases.linaro.org/platform/linaro-n/android/11.06/panda/ which uses:

<project name="people/jstultz/android" path="kernel" remote="linaro" revision="5b2e099ff46d9970ceec6cec47e3b575f28dc099"/>

summary: - leb-panda 11.06 doesn't have ADB over USB working
+ panda/leb-panda don't have ADB over USB working
Zach Pfeffer (pfefferz)
Changed in linaro-android:
status: New → Confirmed
summary: - panda/leb-panda don't have ADB over USB working
+ ADB doesn't work on Panda or LEB-Panda
Changed in linaro-android:
importance: Undecided → High
assignee: nobody → Zach Pfeffer (pfefferz)
summary: - ADB doesn't work on Panda or LEB-Panda
+ ADB doesn't work on 11.06 Panda or LEB-Panda
Revision history for this message
John Stultz (jstultz) wrote :

Thanks for the bug report! While I've gotten adb to work over ethernet, I've not managed to sort out what all is needed for ADB over USB. Will be looking into it though.

Maybe if adb over ethernet would be a reasonable workaround, we should probably make sure the eth0 device is setup at boot, so the serial console access isn't needed. But that is for another bug. Lets keep this focused on ADB over USB.

Revision history for this message
John Stultz (jstultz) wrote :

Ok. I just committed two fixes to the linaro-android.39 tree that enables ADB over USB.

http://git.linaro.org/gitweb?p=people/jstultz/android.git;a=commitdiff;h=30fbd49f138246f136168fd5ce1a68609e47d32e
and
http://git.linaro.org/gitweb?p=people/jstultz/android.git;a=commitdiff;h=c7e19dd923a7d87b1bd819435b200c53ba768b45

These have been tested on both BeagleBoard and PandaBoard (although PandaBoard still needs a fix to the boot hang from bug #802693 to get going).

Changed in linaro-android:
status: Confirmed → Fix Committed
Zach Pfeffer (pfefferz)
Changed in linaro-android:
assignee: Zach Pfeffer (pfefferz) → John Stultz (jstultz)
Revision history for this message
Zach Pfeffer (pfefferz) wrote :

Its not working for me.

I took the tip panda build:

https://android-build.linaro.org/builds/~linaro-android/panda/#build=162

And a 39 kernel with:

$git log
commit 3b0e9cae16dc98ab60b47f684df3cb0543509c72
Author: Zach Pfeffer <email address hidden>
Date: Thu Jun 30 17:52:46 2011 -0500

    hdmi: edid: hack to allow the edid to be parsed

    Signed-off-by: Zach Pfeffer <email address hidden>

commit 869dcd37a5be8509c9fc4c3d7131ee0270c8cb13
Author: Zach Pfeffer <email address hidden>
Date: Thu Jun 30 14:59:39 2011 -0500

    Revert "arm: omap4: support pmu"

    This reverts commit 4fefbe94a77c3d3b5e75d386628c36298c72c57f.

    Author: John Stultz <email address hidden>
    Committer: Zach Pfeffer <email address hidden>

commit c7e19dd923a7d87b1bd819435b200c53ba768b45
Author: John Stultz <email address hidden>
Date: Thu Jun 30 17:09:32 2011 -0700

    defconfig: android_omap*_defconfig updates for adb over usb

    Updates android omap3/4 defconfigs to support adb over usb

    Signed-off-by: John Stultz <email address hidden>

│ Symbol: USB_ANDROID_ADB [=y] │
  │ Type : boolean │
  │ Prompt: Android gadget adb function │
  │ Defined at drivers/usb/gadget/Kconfig:935 │
  │ Depends on: <choice> && USB_ANDROID [=y] │
  │ Location: │
  │ -> Device Drivers │
  │ -> USB support (USB_SUPPORT [=y]) │
  │ -> USB Gadget Support (USB_GADGET [=y]) │
  │ -> USB Gadget Drivers (<choice> [=y]) │
  │ -> Android Gadget (USB_ANDROID [=y])

$lsusb
Bus 002 Device 009: ID 05e3:0716 Genesys Logic, Inc. USB 2.0 Multislot Card Reader/Writer
Bus 002 Device 008: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 002 Device 007: ID 03f0:7511 Hewlett-Packard
Bus 002 Device 006: ID 5986:0241 Acer, Inc BisonCam, NB Pro
Bus 002 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 004: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 002 Device 003: ID 045e:000b Microsoft Corp. Natural Keyboard Elite
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$cat /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"

Revision history for this message
John Stultz (jstultz) wrote :

Zach: Just to be sure is CONFIG_USB_ANDROID_GENERIC_ADB=y set in your .config ? (I'm assuming you used the android_omap4_defconfig)

Also what dmesg output do you get on your host system connecting to the pandaboard?

Revision history for this message
Zach Pfeffer (pfefferz) wrote :

Okay, after a clean rebuild adb works, yeah!

same setup.

I've got this on my host computer:

$dmesg
[1576877.366472] usb 2-1.4.1: new high speed USB device using ehci_hcd and address 12
[1576973.329303] usb 2-1.4.1: USB disconnect, address 12
[1576977.400500] usb 2-1.4.1: new high speed USB device using ehci_hcd and address 13

and the attached logs from the device.

Revision history for this message
Zach Pfeffer (pfefferz) wrote :
Revision history for this message
Zach Pfeffer (pfefferz) wrote :
Revision history for this message
Zach Pfeffer (pfefferz) wrote :

The one weird thing was a hang the first time I ran it.

BTW I'm using:

Android Debug Bridge version 1.0.26

Revision history for this message
Zach Pfeffer (pfefferz) wrote :
Revision history for this message
John Stultz (jstultz) wrote :

Regarding the hang mentioned in comment #10: yea, I've seen a few cases where it seems the usb otg port goes to sleep (about the same time the mouse does), but it doesn't wake up after a keyboard press like the mouse.

Probably need a new bug for that issue.

John Stultz (jstultz)
Changed in linaro-android:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.