Missing musb-hdrc module required by Pandaboard OTG port

Bug #927860 reported by Bharath Ramesh
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux-ti-omap4 (Ubuntu)
Fix Released
Medium
Paolo Pisati

Bug Description

The kernel is missing musb-hdrc kernel module to use the Pandaboard-ES OTG port.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-omap4 3.2.0.1405.5
ProcVersionSignature: Ubuntu 3.2.0-1405.7-omap4 3.2.1
Uname: Linux 3.2.0-1405-omap4 armv7l
ApportVersion: 1.91-0ubuntu1
Architecture: armhf
Date: Mon Feb 6 15:18:00 2012
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-meta-ti-omap4
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Bharath Ramesh (krosswindz) wrote :
Tobin Davis (gruemaster)
Changed in linux-meta-ti-omap4 (Ubuntu):
status: New → Confirmed
tags: added: armel bot-stop-nagging
Changed in linux-meta-ti-omap4 (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Paolo Pisati (p-pisati)
affects: linux-meta-ti-omap4 (Ubuntu) → linux-ti-omap4 (Ubuntu)
Revision history for this message
Tobin Davis (gruemaster) wrote :

From Precise omap4 kernel config:
ubuntu@panda1:~$ fgrep MUSB /boot/config-3.2.0-1405-omap4
# CONFIG_USB_MUSB_HDRC is not set

From Oneiric (config-3.0.0-1207-omap4):
CONFIG_USB_MUSB_HDRC=y

Revision history for this message
Bharath Ramesh (krosswindz) wrote :

Rebuilding the kernel with module built-in similar to Oneiric works. The OTG port is detected without issues.

Revision history for this message
Paolo Pisati (p-pisati) wrote :
Revision history for this message
Tobin Davis (gruemaster) wrote :

This kernel doesn't work either. May need to be built-in or it may need some other missing bits to enable.

modprobe musb-hdrc
FATAL: Error inserting musb_hdrc (/lib/modules/3.2.0-1406-omap4/kernel/drivers/usb/musb/musb_hdrc.ko): No such device

Revision history for this message
Bharath Ramesh (krosswindz) wrote :

Would be possible to compile an armhf kernel. I am currently running armhf and so unable to test it.

I am not sure if this is helpful, I have a kernel that I compiled from source. I build all the modules I need loaded into the kernel, my personal preference.

$ cat /boot/config-3.2.1-omap4 | grep -i musb
CONFIG_USB_MUSB_HDRC=y
# CONFIG_USB_MUSB_TUSB6010 is not set
CONFIG_USB_MUSB_OMAP2PLUS=y
# CONFIG_USB_MUSB_AM35X is not set
# CONFIG_MUSB_PIO_ONLY is not set
CONFIG_USB_GADGET_MUSB_HDRC=y

This from your build

$ cat config-3.2.0-1406-omap4 | grep -i musb
CONFIG_USB_MUSB_HDRC=m
CONFIG_USB_MUSB_TUSB6010=m
CONFIG_USB_MUSB_OMAP2PLUS=m
# CONFIG_USB_MUSB_AM35X is not set
CONFIG_MUSB_PIO_ONLY=y
# CONFIG_USB_GADGET_MUSB_HDRC is not set

I think CONFIG_USB_GADGET_MUSB_HDRC is required for it to work.

Revision history for this message
Paolo Pisati (p-pisati) wrote :

here it is, an armel and armhf flavour with USB_GADGET_MUSB_HDRC:

http://people.canonical.com/~ppisati/lp927860/

Revision history for this message
Bharath Ramesh (krosswindz) wrote :

I installed the kernel and the device is being detected:

$ uname -r
3.2.0-1406-omap4
$ dmesg | grep musb
[ 0.688903] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.689117] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.689147] musb-hdrc: MHDRC RTL version 2.0
[ 0.689178] musb-hdrc: setup fifo_mode 4
[ 0.689178] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.689575] musb-hdrc musb-hdrc: USB OTG mode controller at fc0ab000 using DMA, IRQ 124

The kernel that I had built earlier

$ uname -r
3.2.1-omap4
$ dmesg | grep -i musb
[ 0.853942] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.854278] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.854309] musb-hdrc: MHDRC RTL version 2.0
[ 0.854309] musb-hdrc: setup fifo_mode 4
[ 0.854339] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.855010] musb-hdrc musb-hdrc: USB OTG mode controller at fc0ab000 using DMA, IRQ 124

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (5.7 KiB)

This bug was fixed in the package linux-ti-omap4 - 3.2.0-1407.9

---------------
linux-ti-omap4 (3.2.0-1407.9) precise; urgency=low

  [ Paolo Pisati ]

  * [Config] Enable USB_MUSB_HDRC
    - LP: #927860
  * [Config] Enable led heartbeat
    - LP: #905445
  * rebased on 3.2.0-17.27

  [ Tim Gardner ]

  * [Config] updateconfigs, dropped CONFIG_HAVE_SECCOMP_FILTER,
    CONFIG_SECCOMP_FILTER

  [ Upstream Kernel Changes ]

  * smsc95xx: panda: don't blindly overwrite MAC address
    - LP: #937051

  [ Ubuntu: 3.2.0-17.27 ]

  * SAUCE: drm/i915: fix operator precedence when enabling RC6p

  [ Ubuntu: 3.2.0-17.26 ]

  * [Config] clean up the human consumable package descriptions
  * [Config] fix generic flavour description
  * [Config] clean up linux-tools package descriptions
    - LP: #593107
  * deviations -- note the source of the Hyper-V updates
  * SAUCE: ata_piix: defer to the Hyper-V drivers by default
    - LP: #929545
  * SAUCE: drm/i915: do not enable RC6p on Sandy Bridge
  * SAUCE: (drop after 3.3) security: create task_free security callback
  * SAUCE: (drop after 3.3) security: Yama LSM
  * SAUCE: (drop after 3.3) Yama: add PR_SET_PTRACER_ANY
  * SAUCE: Yama: add link restrictions
  * SAUCE: security: unconditionally chain to Yama LSM
  * Drop ndiswrapper
  * SAUCE: drm/i915: Enable RC6 by default on sandybridge.
  * SAUCE: ipheth: Add iPhone 4S
    - LP: #900802
  * dropped hv_mouse
  * [Config] CONFIG_X86_NUMACHIP=y
  * Staging: hv: vmbus: Support building the vmbus driver as part of the
    kernel
  * hv: Add Kconfig menu entry
  * Drivers: hv: Fix a memory leak
  * Drivers: hv: Make the vmbus driver unloadable
  * Drivers: hv: Get rid of an unnecessary check in hv.c
  * Staging: hv: mousevsc: Make boolean states boolean
  * Staging: hv: mousevsc: Inline the code for mousevsc_on_device_add()
  * Staging: hv: mousevsc: Inline the code for reportdesc_callback()
  * Staging: hv: mousevsc: Cleanup mousevsc_on_channel_callback()
  * Staging: hv: mousevsc: Add a new line to a debug string
  * Staging: hv: mousevsc: Get rid of unnecessary include files
  * Staging: hv: mousevsc: Address some style issues
  * Staging: hv: mousevsc: Add a check to prevent memory corruption
  * Staging: hv: mousevsc: Use the KBUILD_MODNAME macro
  * Staging: hv: storvsc: Use mempools to allocate struct
    storvsc_cmd_request
  * Staging: hv: storvsc: Cleanup error handling in the probe function
  * Staging: hv: storvsc: Fixup the error when processing SET_WINDOW
    command
  * Staging: hv: storvsc: Fix error handling storvsc_host_reset()
  * Staging: hv: storvsc: Use the accessor function shost_priv()
  * Staging: hv: storvsc: Use the unlocked version queuecommand
  * Staging: hv: storvsc: use the macro KBUILD_MODNAME
  * Staging: hv: storvsc: Get rid of an unnecessary forward declaration
  * Staging: hv: storvsc: Upgrade the vmstor protocol version
  * Staging: hv: storvsc: Support hot add of scsi disks
  * Staging: hv: storvsc: Support hot-removing of scsi devices
  * staging: hv: Use kmemdup rather than duplicating its implementation
  * staging: hv: move hv_netvsc out of staging area
  * Staging: hv: mousevsc: Properly add the hid device
  * Staging...

Read more...

Changed in linux-ti-omap4 (Ubuntu):
status: Confirmed → 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.