I think the hub_suspend is ok - I get that too. The following is the full dmesg since modprobe.

[   60.354309] musb-hdrc musb-hdrc: MUSB HDRC host driver
[   60.370056] musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 2
[   60.386047] musb-hdrc musb-hdrc: supports USB remote wakeup
[   60.386169] usb usb2: default language 0x0409
[   60.386230] usb usb2: udev 1, busnum 2, minor = 128
[   60.386260] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[   60.398529] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   60.413909] usb usb2: Product: MUSB HDRC host driver
[   60.426940] usb usb2: Manufacturer: Linux 3.5.7-yocto-standard musb-hcd
[   60.437561] usb usb2: SerialNumber: musb-hdrc
[   60.453704] usb usb2: usb_probe_device
[   60.453735] usb usb2: configuration #1 chosen from 1 choice
[   60.453857] usb usb2: adding 2-0:1.0 (config #1, interface 0)
[   60.454132] hub 2-0:1.0: usb_probe_interface
[   60.454162] hub 2-0:1.0: usb_probe_interface - got id
[   60.454193] hub 2-0:1.0: USB hub found
[   60.458190] hub 2-0:1.0: 1 port detected
[   60.480194] hub 2-0:1.0: standalone hub
[   60.480224] hub 2-0:1.0: individual port power switching
[   60.480255] hub 2-0:1.0: no over-current protection
[   60.480255] hub 2-0:1.0: Single TT
[   60.480285] hub 2-0:1.0: TT requires at most 8 FS bit times (666 ns)
[   60.480285] hub 2-0:1.0: power on to power good time: 10ms
[   60.480346] hub 2-0:1.0: 100mA bus power budget for each child
[   60.480377] hub 2-0:1.0: local power source is good
[   60.480407] hub 2-0:1.0: enabling power on all ports
[   60.569274] twl4030_usb twl4030_usb: HW_CONDITIONS 0x90/144; link 1
[   60.578887] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000
[   60.883941] twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 0
[   60.884857] twl4030_usb twl4030_usb: twl4030_phy_suspend
[   63.008697] hub 2-0:1.0: hub_suspend
[   63.008758] usb usb2: bus auto-suspend, wakeup 1
[   67.849029] twl4030_usb twl4030_usb: HW_CONDITIONS 0x90/144; link 1
[   67.852050] twl4030_usb twl4030_usb: twl4030_phy_resume
[   68.277435]  gadget: high-speed config #1: Linux File-Backed Storage
[   68.277435]  gadget: high-speed config #1: Linux File-Backed Storage
The last line above appears when I plug into my host machine.

Can you check the mode of USB OTG?

on before and after modprobe:

root@overo:/sys/devices/platform/musb-omap2430/musb-hdrc$  cat mode
b_idle

on connection to host:

root@overo:/sys/devices/platform/musb-omap2430/musb-hdrc$  cat mode
b_peripheral


On Thu, Mar 27, 2014 at 1:20 PM, daveti [via Gumstix] <[hidden email]> wrote:
Thanks for your images. I am using it now. However, it does not work for me either~ As before, g_mass_storage could be loaded but hub is suspended....

[  317.898620]  gadget: Mass Storage Function, version: 2009/09/11
[  317.910369]  gadget: Number of LUNs=1
[  317.914276]  lun0: LUN: removable file: /home/root/daveti.img
[  317.925018]  gadget: Mass Storage Gadget, version: 2009/09/11
[  317.931121]  gadget: userspace failed to provide iSerialNumber
[  317.945343]  gadget: g_mass_storage ready
[  317.960998] twl4030_usb twl4030_usb: twl4030_phy_resume
[  317.961059] musb-hdrc musb-hdrc: MUSB HDRC host driver
[  317.976593] musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 2
[  317.993011] musb-hdrc musb-hdrc: supports USB remote wakeup
[  317.993164] usb usb2: default language 0x0409
[  317.993225] usb usb2: udev 1, busnum 2, minor = 128
[  317.993255] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[  318.005523] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  318.021545] usb usb2: Product: MUSB HDRC host driver
[  318.034118] usb usb2: Manufacturer: Linux 3.5.7-yocto-standard musb-hcd
[  318.041137] usb usb2: SerialNumber: musb-hdrc
[  318.060882] usb usb2: usb_probe_device
[  318.060943] usb usb2: configuration #1 chosen from 1 choice
[  318.061035] usb usb2: adding 2-0:1.0 (config #1, interface 0)
[  318.061309] hub 2-0:1.0: usb_probe_interface
[  318.061340] hub 2-0:1.0: usb_probe_interface - got id
[  318.061370] hub 2-0:1.0: USB hub found
[  318.077789] hub 2-0:1.0: 1 port detected
[  318.087677] hub 2-0:1.0: standalone hub
[  318.087738] hub 2-0:1.0: individual port power switching
[  318.087738] hub 2-0:1.0: no over-current protection
[  318.087768] hub 2-0:1.0: Single TT
[  318.087768] hub 2-0:1.0: TT requires at most 8 FS bit times (666 ns)
[  318.087799] hub 2-0:1.0: power on to power good time: 10ms
[  318.087860] hub 2-0:1.0: 100mA bus power budget for each child
[  318.087890] hub 2-0:1.0: local power source is good
[  318.087890] hub 2-0:1.0: enabling power on all ports
[  318.182830] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000
[  320.182769] hub 2-0:1.0: hub_suspend
[  320.182830] usb usb2: bus auto-suspend, wakeup 1
[  320.184082] twl4030_usb twl4030_usb: twl4030_phy_suspend
root@overo:~$  



If you reply to this email, your message will be added to the discussion below:
http://gumstix.8.x6.nabble.com/defconfig-for-overo-as-usb-gadget-mass-storage-tp4968995p4969000.html
To start a new topic under Gumstix, email [hidden email]
To unsubscribe from Gumstix, click here.
NAML



View this message in context: Re: defconfig for overo as usb gadget mass storage?
Sent from the Gumstix mailing list archive at Nabble.com.