NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
UsbConfigHostHID
About this page[edit]
This page describes the Linux kernel config options for usb host Human Interface Device (HID) on different kernel versions. Please refer the config option which matches with kernel version of release you are using.
Configuration[edit]
Linux v3.2[edit]
Start the Linux Kernel Configuration tool:
$ make CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm menuconfig
Select Device Drivers from the main menu.
... ... Power management options ---> [ ] Networking support ---> Device Drivers ---> File systems ---> Kernel hacking ---> ... ...
Select HID device as shown here
... ... <*> Sound card support ---> [*] HID Devices ---> [*] USB support ---> ...
Select "USB HID" as shown here
... ... [ ] /dev/hidraw raw HID device support *** USB Input Devices *** <*> USB Human Interface Device (full HID) support *** SCSI support type (disk, tape, CD-ROM) *** [ ] PID device support ... ...
Now Exit from current window and select Input device support as shown here
... ... [ ] ISDN support ---> < > Telephony support ---> Input device support ---> Character devices ---> ... ...
Select Event interface as shown here
... ... < > Joystick interface <*> Event interface < > Event debugging ... ...
This is all required for adding USB host HID support in kernel.
Testing [edit]
The event sub system creates /dev/input/event* devices when HID device is connected. When mouse or keyboard is connected the device nodes with /dev/input/event[0/1/2..] will be created. The HID events can be captured with File:Evtest.zip application.
Command to be used with 'evtest' ./evtest /dev/input/event*