USB gadget issues

259 views
Skip to first unread message

Henrik Nordström

unread,
May 12, 2013, 11:34:37 PM5/12/13
to linux...@googlegroups.com
Have been trying to get USB gadget working lately and have a bit of
mixed results

g_serial seems to work fine

g_ether as well.

but have not had any success in using the mass storage gadgets
(g_file_storage or g_mass_storage). I can load the module fine and the
host notices there is a USB storage device of the right size, but that's
all. It never registers as a storage device on the host and on the
gadget I see some USB IRQ resets.

[ 283.010000] [sw_udc]: IRQ: reset
[ 283.010000] [sw_udc]: irq: reset happen, throw away all urb
[ 283.010000] nuke: ep num is 0
[ 283.010000] nuke: ep num is 2
[ 283.100000] [sw_udc]: IRQ: reset
[ 283.100000] [sw_udc]: irq: reset happen, throw away all urb
[ 283.100000] nuke: ep num is 2
[ 283.180000] [sw_udc]: Set address 108
[ 283.200000] g_mass_storage gadget: high speed config #1: Linux
File-Backed Storage

then the host declares the device offline.


[1468928.838123] usb 2-2: reset high-speed USB device number 108 using
ehci-pci
[1468939.068084] usb 2-2: reset high-speed USB device number 108 using
ehci-pci
[1468944.298101] usb 2-2: reset high-speed USB device number 108 using
ehci-pci
[1468954.528109] usb 2-2: reset high-speed USB device number 108 using
ehci-pci
[1468954.656706] sd 89:0:0:0: Device offlined - not ready after error
recovery


Anyone else had success with the storage gadgets?

I have tried with 3.0.72, 3.4.29, 3.4.43 with and without pending usb
merge, all same result.

The host is running Fedora Linux 3.8.8.

Regards
Henrik

Henrik Nordström

unread,
May 14, 2013, 8:03:54 AM5/14/13
to linux...@googlegroups.com
Thanks. I'll see what I can hunt down there.

tis 2013-05-14 klockan 04:44 -0700 skrev Tomasz Jóźwiak:
> I have similar problem on kernel 3.0.72 but someone (link below)
> managed to use store gadgets on 3.0.62
> https://groups.google.com/d/msg/cubieboard/V-Win91NnSI/rUM0Lo6LQz0J
> --
> You received this message because you are subscribed to the Google
> Groups "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to linux-sunxi...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


Reply all
Reply to author
Forward
0 new messages