Description
This issues will track my attempt to integrate gadget_hid into the 3.10 kernel from yocto that has the intel patches applied which are included the Intel Edison BSP release.
From https://communities.intel.com/message/272533
Thus far the linux-usb mailing list has been quite responsive.
https://www.mail-archive.com/[email protected]/msg54279.html
"In the very same file [gadget_hid.txt] there is an example platform driver; well, at least
the most important hid-specific parts of it. You must add the usual
module boilerplate code and in module's init do platform_device_register(),
while in module's exit do platform_device_unregister()." Andrzej Pietrasiewicz
This file contains precisely what we need to add to the intel-mid archictecture:
linux-yocto-3.10/Documentation/usb/gadget_hid.txt
But the Intel provided patch completely creates the platform/intel-mid
linux-yocto-3.10/arch/x86/platform/intel-mid
This is where I am a bit lost and looking to Intel (or an intel-mid mailing list) to give
some suggestions as to where within platform/intel-mid this might be added.
I have a branch with a patch adding support for usb hid gadget based on csimmonds/g_hid-demo
But it currently results in errors, and no HID yet 8(
# modprobe g_hid
[11677.348746] Device 'hidg.0' does not have a release() function, it is broken and must be fixed.
modprobe: ERROR: could not insert 'g_hid': No such device
Another alternative is to build edison-image BSP with Linux 3.19.x (which is issue #2) which supports gadget configfs, but I'd like to try and stay in the supported mainstream as much as possible for now.
Background on getting to the intel-mid platform source:
Edison - Software Downloads includes http://downloadmirror.intel.com/24389/eng/edison-image-rel1-maint-rel1-ww42-14.zip
Which I imported into github: https://github.com/instantinfrastructure/edison-src
to allow pointing to individual files.
The ww42-14 release includes a large patch to the linux-yocto kernel sources:
edison-src/device-software/meta-edison/recipes-kernel/linux/files/upstream_to_edison.patch
I have applied that to the linux-yocto-3.10 sources
linux-yocto-3.10