Hi there, 

currently I am using Olimex A20-LIME2 board with the OLinuXino-A20 Linux 
and kernel version 3.4.103-00033-g9a1cd03-dirty . I wanted to emulate my 
board as a Keyboard when it connect to a HOST PC and to do so I followed 
theses  instruction here to pass platform_device structure to the gadget 
driver :

https://www.kernel.org/doc/Documentation/usb/gadget_hid.txt


when I modprobe g_hid module my board works fine with Linux host PC but 
with Windows host PC my board kernel crashed . even  Windows couldn't find 
the right driver for my HID gadget .
any suggestion would be appreciated . Thanks

dmesg output > 


[ 207.682916] [sw_udc]: [sw_usb_udc]: binding gadget driver 'g_hid'
[ 207.687750] [sw_udc]: alloc request: ep(0xc07f5d58, ep0, 64), 
req(0xeea241c0)
[ 207.702464] [sw_udc]: alloc request: ep(0xc07f5da4, ep1-bulk, 64), 
req(0xee4f1f80)
[ 207.714056] g_hid gadget: HID Gadget, version: 2010/03/16
[ 207.722503] g_hid gadget: g_hid ready
[ 207.727062] [sw_udc]: usbd_start_work
[ 207.784889] [sw_udc]: IRQ: suspend
[ 207.787022] [sw_udc]: ERR: usb speed is unkown
[ 207.901021] [sw_udc]: IRQ: reset
[ 207.902980] [sw_udc]: irq: reset happen, throw away all urb
[ 207.991123] [sw_udc]:
[ 207.994713] +++++++++++++++++++++++++++++++++++++
[ 207.995604] [sw_udc]: usb enter full speed.
[ 207.998587] [sw_udc]:
[ 208.002161] +++++++++++++++++++++++++++++++++++++
[ 208.008129] retire_capture_urb: 43 callbacks suppressed
[ 208.014357] [sw_udc]: IRQ: reset
[ 208.016303] [sw_udc]: irq: reset happen, throw away all urb
[ 208.094947] [sw_udc]: Set address 24

////////////////////////// after start using the user space test 
application 
/////////////////////////////////////////////////////////////////////////////////

[ 422.287745] WRN:L2385(drivers/usb/sunxi_usb/udc/sw_udc.c):ERR: 
sw_udc_queue: inval 2
[ 422.295851] g_hid gadget: usb_ep_queue error on int endpoint 4294967274

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to