View Single Post
Old 10-25-2013, 06:33 PM   #3
KevinShort
Addict
KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.
 
KevinShort's Avatar
 
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Here's the output of dmesg after plugging in my keyboard:
Code:
usb wakeup is here
the otgsc is 0x82c0f20, usbsts is 0x80, portsc is 0x1c000804, wakeup_irq is 0x80000000
otg udc vbus rising wakeup
try_wake_up_udc: udc out low power mode
[msp_int-1573] MSP430 interrupt triggered !!!
usb plugged 1-0
power_supply mc13892_charger: charger status: online
Good catch on the empty string. If i run insmod g_hid.ko with a parameter the parameter shows up where the empty string was. Some quick research brought up the modinfo command. Using that on g_hid.ko gives this output:
Code:
filename:       g_hid.ko
license:        GPL
author:         Fabien Chouteau, Peter Korsgaard
description:    HID Gadget
depends:        arcotg_udc
vermagic:       2.6.35.3-850-gbc67621+ preempt mod_unload modversions ARMv7 
parm:           iSerialNumber:SerialNumber string
parm:           iProduct:USB Product string
parm:           iManufacturer:USB Manufacturer string
parm:           bcdDevice:USB Device version (BCD)
parm:           idProduct:USB Product ID
parm:           idVendor:USB Vendor ID
So I can set any of those parameters when I load g_hid. Trying to set an invalid option will get you the error "unknown symbol in module or invalid parameter". In the file /sys/devices/platform/fsl-ehci.1/usb1/idProduct is the value 0002. I tried using that with "insmod g_hid.ko idProduct=0002" and g_hid accepted it, but still gave the error "no such device".
KevinShort is offline   Reply With Quote