Panda: adb over usb broken on panda-ics-gcc47-tilt-tracking-blob/#build=101"

Bug #1017438 reported by Abhishek Paliwal
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Fix Released
High
vishal
linaro-landing-team-ti
Fix Released
Undecided
Unassigned

Bug Description

Description:
--------------
adb over USB broken on :
https://android-build.linaro.org/builds/~linaro-android/panda-ics-gcc47-tilt-tracking-blob/#build=101
(Kernel version: 3.4)

Steps:
-------
1. Bootup Android from sd card for above build
2. Connect USB cable after device boots up
3. type <path_to_android_sdk/platform-tools>adb devices -on host machine.
Issue: No device listed.

I do not see USB detection messages on serial console when USB cable is connected to device.

Revision history for this message
Botao (botao-sun) wrote :

Observed on Linaro Android image with Panda 4430:

https://android-build.linaro.org/builds/~linaro-android/panda-ics-gcc47-tilt-tracking-blob/#build=105

No any related log shows when plug in & plug out USB cable.

tags: added: usb-device
Revision history for this message
Botao (botao-sun) wrote :
Revision history for this message
warmcat (andy-warmcat) wrote :

(adding Vishal)

Notice that in omap4plus_defconfig, we now build musb support as a module.

This is done because the one kernel also supports PandaBoard 5, which does not have mUSB.

By default then, if you don't insert the mUSB related module(s), you won't get anything coming on the OTG socket / ADB.

Revision history for this message
vishal (vishalbhoj) wrote :

Andy I have enabled usb_G_ANDROID in the kernel and rebuilt it. After booting I have loaded musb_hdrc driver and then tried to enable android adb functionality by following commands :

echo "adb" > /sys/class/android_usb/android0/functions
echo 1 > /sys/class/android_usb/android0/enable

but it doesn't seem to work. attached is the kernel config . Am I missing something here ?

Revision history for this message
warmcat (andy-warmcat) wrote :

Jassi's going to try to reproduce... about USB_G_ANDROID though isn't that taken care of by the Android config fragment? If it isn't it should be I guess.

Zach Pfeffer (pfefferz)
Changed in linaro-android:
assignee: nobody → vishal (vishalbhoj)
milestone: none → 12.07
Revision history for this message
Jassi Brar (jassisinghbrar) wrote :

Andy : OMAP5 uses DWC3, while OMAP4 MUSB. I see no problem with both stacks built into the kernel. Only the one which has the relevant platform device populated (based upon which platform is it), would spring to life. The other shouldn't make any difference. BTW, I couldn't find Panda-omap5 even initializing USB gadget side.

Vishal : The following changes to your omap4plus_defconfig above, should get it working.

167c167
< CONFIG_USB_DWC3=m
---
> CONFIG_USB_DWC3=y
170,171c170,171
< CONFIG_USB_MUSB_HDRC=m
< CONFIG_USB_MUSB_OMAP2PLUS=m
---
> CONFIG_USB_MUSB_HDRC=y
> CONFIG_USB_MUSB_OMAP2PLUS=y
176,178c176
< CONFIG_USB_GADGET_MUSB_HDRC=m
< CONFIG_USB_ZERO=m
< CONFIG_USB_MASS_STORAGE=m
---
> CONFIG_USB_GADGET_MUSB_HDRC=y

Revision history for this message
warmcat (andy-warmcat) wrote :

Thanks Jassi... I was trying to have them modular so we don't have the footprint of the one that is not needed (dwc3 on OMAP4, musb on OMAP5) taking up RAM. But, it's more of an optimization compared to stuff not working so this sounds like a good way.

Revision history for this message
Botao (botao-sun) wrote :
Revision history for this message
vishal (vishalbhoj) wrote :

Jassi,

It is still not working. Here is the uppdated config.Let me know if I am missing something

Revision history for this message
Jassi Brar (jassisinghbrar) wrote :

Vishal, Botao,
   I still think it's you doing config wrong somehow.
 I just checked out @1010fcd of build-116 and compiled with the attached .config. Could you please do the same and report the result ?
Thanks.

Revision history for this message
vishal (vishalbhoj) wrote :

Jassi,

There is a problem with the configs. With the config https://bugs.launchpad.net/linaro-android/+bug/1017438/+attachment/3224646/+files/omap4plus_defconfig, config set is wrongly as "CONFIG_USB_MUSB_OMAP2PLUS=m" .I have to manually need to set to "CONFIG_USB_MUSB_OMAP2PLUS=y" .

The problem is choice "Platform Glue Layer" in drivers/usb/musb/Kconfig which is getting selected as a module.

Let me know if I am doing it wrong.

Revision history for this message
Amit Khare (amit-khare) wrote :
Revision history for this message
warmcat (andy-warmcat) wrote :

Vishal if I go look at the link for the attachment, I see in there

CONFIG_USB_MUSB_OMAP2PLUS=y
CONFIG_USB_GADGET_MUSB_HDRC=y

are there more steps you are doing to generate the bad config that makes the problem? Can you outline these extra steps if there are any so we can try to understand why we get different results?

Revision history for this message
vishal (vishalbhoj) wrote :

Andy,

I am only using this config to build against the kernel.Here is what I did:
1. Copied the config to arch/arm/configs.
2. make ARCH=arm omap4plus_defconfig
3. make ARCH=arm menuconfig
4. Checked the configuration for "USB_MUSB_OMAP2PLUS" shown below.

 Symbol: USB_MUSB_OMAP2PLUS [=m] │
  │ Type : tristate │
  │ Prompt: OMAP2430 and onwards │
  │ Defined at drivers/usb/musb/Kconfig:49 │
  │ Depends on: <choice> && ARCH_OMAP2PLUS [=y] │
  │ Location: │
  │ -> Device Drivers │
  │ -> USB support (USB_SUPPORT [=y]) │
  │ -> Inventra Highspeed Dual Role Controller (TI, ADI, ...) (USB_MUSB_HDRC [=y]) │
  │ -> Platform Glue Layer (<choice> [=m]) │

The choice state for "Platform Glue Layer" is not reflecting the right configuration.

Zach Pfeffer (pfefferz)
Changed in linaro-android:
milestone: 12.07 → 12.08
Revision history for this message
Jassi Brar (jassisinghbrar) wrote :

Vishal, Could you please tell the release for which the config worked as you expect ?

Revision history for this message
vishal (vishalbhoj) wrote :
Revision history for this message
Jassi Brar (jassisinghbrar) wrote :

Vishal, I am asking for some release that worked fine for you :)

Revision history for this message
vishal (vishalbhoj) wrote :
Revision history for this message
Jassi Brar (jassisinghbrar) wrote :

Hi Vishal, The attached change to omap4plus_defconfig should get it working.

Revision history for this message
Amit Khare (amit-khare) wrote :
Zach Pfeffer (pfefferz)
Changed in linaro-android:
milestone: 12.08 → none
Revision history for this message
Amit Khare (amit-khare) wrote :
Revision history for this message
Amit Khare (amit-khare) wrote :
Revision history for this message
vishal (vishalbhoj) wrote :
vishal (vishalbhoj)
Changed in linaro-android:
milestone: none → 12.08
status: New → Fix Committed
warmcat (andy-warmcat)
Changed in linaro-landing-team-ti:
status: New → Fix Released
Fathi Boudra (fboudra)
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.