Bharath
unread,Jan 31, 2012, 2:22:36 AM1/31/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pandaboard
I am trying to to use the OTG port as USB peripheral device providing
the functionality of a usb storage device. When I use the
g_mass_storage module I notice that the OTG port comes up as a host
device instead of a peripheral device. How do I switch the mode to
peripheral mode. The dmesg output is pasted below
[ 795.044067] g_mass_storage gadget: Mass Storage Function, version:
2009/09/11
[ 795.044097] g_mass_storage gadget: Number of LUNs=1
[ 795.044097] lun0: LUN: removable file: /dev/loop0
[ 795.044097] g_mass_storage gadget: Mass Storage Gadget, version:
2009/09/11
[ 795.044158] g_mass_storage gadget: userspace failed to provide
iSerialNumber
[ 795.044158] g_mass_storage gadget: g_mass_storage ready
[ 795.044189] musb-hdrc musb-hdrc: MUSB HDRC host driver
[ 795.044189] musb-hdrc musb-hdrc: new USB bus registered, assigned
bus number 3
[ 795.044311] usb usb3: default language 0x0409
[ 795.044311] usb usb3: udev 1, busnum 3, minor = 256
[ 795.044372] usb usb3: New USB device found, idVendor=1d6b,
idProduct=0002
[ 795.044372] usb usb3: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 795.044372] usb usb3: Product: MUSB HDRC host driver
[ 795.044372] usb usb3: Manufacturer: Linux 3.0.0-1206-omap4 musb-hcd
[ 795.044433] usb usb3: SerialNumber: musb-hdrc
[ 795.055328] usb usb3: usb_probe_device
[ 795.055358] usb usb3: configuration #1 chosen from 1 choice
[ 795.055389] usb usb3: adding 3-0:1.0 (config #1, interface 0)
[ 795.057220] hub 3-0:1.0: usb_probe_interface
[ 795.057220] hub 3-0:1.0: usb_probe_interface - got id
[ 795.057250] hub 3-0:1.0: USB hub found
[ 795.057281] hub 3-0:1.0: 1 port detected
[ 795.057281] hub 3-0:1.0: standalone hub
[ 795.057312] hub 3-0:1.0: individual port power switching
[ 795.057312] hub 3-0:1.0: no over-current protection
[ 795.057312] hub 3-0:1.0: Single TT
[ 795.057342] hub 3-0:1.0: TT requires at most 8 FS bit times (666
ns)
[ 795.057342] hub 3-0:1.0: power on to power good time: 10ms
[ 795.057373] hub 3-0:1.0: 100mA bus power budget for each child
[ 795.057403] hub 3-0:1.0: local power source is good
[ 795.057403] hub 3-0:1.0: enabling power on all ports
[ 795.155853] hub 3-0:1.0: state 7 ports 1 chg 0000 evt 0000
--
Bharath