Description of problem: Fedora’s ARM (armv7hl) kernel lacks USB HID gadget function: $ grep CONFIG_USB_CONFIGFS_F_HID config-arm-generic # CONFIG_USB_CONFIGFS_F_HID is not set Version-Release number of selected component (if applicable): Tested with FC24, but it’s also the case with kernel-4.10.0-0.rc7.git4.1.fc26 How reproducible: Steps to Reproduce: 1. Install a Linux kernel and modules RPM. 2. modprobe usb_f_hid.ko → fail Actual results: Module not found. Expected results: Module loaded and HID gadget accessible from configfs (mkdir /sys/kernel/config/usb_gadget/${MY_GADGET}/functions/hid.foo). Additional info: --- config-arm-generic.orig 2017-02-13 14:09:55.517507818 +0100 +++ config-arm-generic 2017-02-13 14:10:16.631068333 +0100 @@ -408,7 +408,7 @@ # CONFIG_USB_CONFIGFS_F_UAC1 is not set # CONFIG_USB_CONFIGFS_F_UAC2 is not set # CONFIG_USB_CONFIGFS_F_MIDI is not set -# CONFIG_USB_CONFIGFS_F_HID is not set +CONFIG_USB_CONFIGFS_F_HID is not set # CONFIG_USB_CONFIGFS_F_UVC is not set # CONFIG_USB_CONFIGFS_F_PRINTER is not set
Bad diff above, sorry. --- config-arm-generic.orig 2017-02-13 14:09:55.517507818 +0100 +++ config-arm-generic 2017-02-13 14:17:14.353159108 +0100 @@ -408,7 +408,7 @@ # CONFIG_USB_CONFIGFS_F_UAC1 is not set # CONFIG_USB_CONFIGFS_F_UAC2 is not set # CONFIG_USB_CONFIGFS_F_MIDI is not set -# CONFIG_USB_CONFIGFS_F_HID is not set +CONFIG_USB_CONFIGFS_F_HID=y # CONFIG_USB_CONFIGFS_F_UVC is not set # CONFIG_USB_CONFIGFS_F_PRINTER is not set
Follow-up to a conversation on #fedora-arm: - We use a compound gadget combining multiple functions via configfs on an array of Beaglebone Black (which has a USB client controller); - the HID functionality is necessary to automate BIOS configuration, flashing, and in general as a swiss army knife to work around unwanted interactivity in vendor supplied tools; - to add the HID function, usb_f_hid.ko is required; - the Fedora ARM kernel lacks the USB HID functionality in configfs; - consequently, with every system update we need to recompile the kernel to include the module.
*********** MASS BUG UPDATE ************** We apologize for the inconvenience. There are a large number of bugs to go through and several of them have gone stale. Due to this, we are doing a mass bug update across all of the Fedora 24 kernel bugs. Fedora 25 has now been rebased to 4.10.9-100.fc24. Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel. If you have moved on to Fedora 26, and are still experiencing this issue, please change the version to Fedora 26. If you experience different issues, please open a new bug report for those.
*********** MASS BUG UPDATE ************** This bug is being closed with INSUFFICIENT_DATA as there has not been a response in 2 weeks. If you are still experiencing this issue, please reopen and attach the relevant data from the latest kernel you are running and any data that might have been requested previously.
https://src.fedoraproject.org/rpms/kernel/blob/master/f/baseconfig/arm/CONFIG_USB_CONFIGFS_F_HID says this is still not addressed. Please reopen.
See also: https://src.fedoraproject.org/rpms/kernel/pull-request/1
@Robert That PR is much appreciated. My plan was to revisit the issue after the FC27 release. It’s still relevant, reopening as per your request.
Tried the stock FC27 kernel, usb_f_hid.ko is there as expected.