To use the beagleboard xm as an HID peripheral I plan to do the following:
- Discover how to build things with angstrom.
- Get the kernel source 2.6.32.
- Compile omap_udc and g_hid
- Insert those modules into the kernel
- Compile the example from gadget_hid.txt
- Send keyboard commands with hid_gadget_test /dev/hidg0 keyboard
Is that a good way to do what I want?
http://www.edaboard.com/thread145675.html is a somewhat related issue from '09.
Looking for Example Embedded Linux HID Device Code is very similar.
I figured I would post this here because I looked and looked for an answer but to no avail so I had to get creative.
First Go here and get the Kernel http://eewiki.net/display/linuxonarm/BeagleBone
Second in The KERNEL/arch/arm/mach-omap2/board-am335xevm.c
Add:
In the:
Build the kernel following the Guide from earlier In the makemenu config section of the kernel build go to the device drivers->usb support-> USB Gadget Support-> USB Gadget Drivers -> Compile HID Gadget as Module ( you may have to hunt for it but it's around this section in a couple more sub menus)
Take the sample code section from the kernel documentation or this page http://www.mjmwired.net/kernel/Documentation/usb/gadget_hid.txt
Compile with GCC
insmod the g_hid.ko driver and then run the compiled sample code