Well, it loads and leaves the following traces in the logfiles:
[ 4535.674596] gadgetfs: USB Gadget filesystem, version 24 Aug 2004
but I did not get it to work. I've tried to use the following example [1], but it does not compile. Even if it would compile, I do not understand the program as "my_hid" structure that one is supposed to copy into this program is never used anywhere in the associated snippet. And still it relies on /dev/hidX to be present, which on my machine is not there.
I've also tried the code found on [2] but this does not work because /dev/gadget/ep0 etc. is not present. (The program did not even branch into the "else if (stat (DEVNAME = "musb_hdrc", &statb) == 0) {" branch. I had to manually force it there).
Trying to create the nodes with "mknod ep1in c 240 1" resulted "mknod: `ep1in`: Operation not permitted".
Could somebody please provide me with a (concise) example of how to use my beaglebone black as a hid (mouse or keyboard) device? I would be really grateful.
Thank you
This is an excerpt from the boot log about loading the musb-hdrc driver:
Jan 01 01:36:03 beaglebone kernel: usbcore: registered new interface driver cdc_acm
Jan 01 01:36:03 beaglebone kernel: cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Jan 01 01:36:03 beaglebone kernel: Initializing USB Mass Storage driver...
Jan 01 01:36:03 beaglebone kernel: usbcore: registered new interface driver usb-storage
Jan 01 01:36:03 beaglebone kernel: USB Mass Storage support registered.
Jan 01 01:36:03 beaglebone kernel: musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
Jan 01 01:36:03 beaglebone kernel: musb-hdrc musb-hdrc.0.auto: pdev->id = 0
Jan 01 01:36:03 beaglebone kernel: musb-hdrc musb-hdrc.0.auto: drivers/usb/musb/musb_dsps.c:468 dsps_musb_init: OK
Jan 01 01:36:03 beaglebone kernel: musb-hdrc musb-hdrc.0.auto: *** mode=3
Jan 01 01:36:03 beaglebone kernel: musb-hdrc musb-hdrc.0.auto: *** power=250
Jan 01 01:36:03 beaglebone kernel: musb-hdrc musb-hdrc.1.auto: pdev->id = 1
Jan 01 01:36:03 beaglebone kernel: musb-hdrc musb-hdrc.1.auto: drivers/usb/musb/musb_dsps.c:468 dsps_musb_init: OK
Jan 01 01:36:03 beaglebone kernel: musb-hdrc musb-hdrc.1.auto: *** mode=1
Jan 01 01:36:03 beaglebone kernel: musb-hdrc musb-hdrc.1.auto: *** power=250
Jan 01 01:36:03 beaglebone kernel: musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
Jan 01 01:36:03 beaglebone kernel: musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
Jan 01 01:36:03 beaglebone kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Jan 01 01:36:03 beaglebone kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Jan 01 01:36:03 beaglebone kernel: usb usb1: Product: MUSB HDRC host driver
Jan 01 01:36:03 beaglebone kernel: usb usb1: Manufacturer: Linux 3.8.13 musb-hcd