The error message you had before 'error inserting 'g_hid.ko': -1 No such device.' is due to incomplete hid gadget driver. You can followDocumentation/usb/gadget_hid.txt to add your
接上文,配置编译gadget HID模块
make modules后在driver/usb/gadget目录下生成g_hid.ko
执行加载命令:
root@XXX:/mnt# insmod g_hid.ko
insmod: can't insert 'g_hid.ko': No such device
提示错误。
在TI 技术论坛上看到相关技术回复: