Which system do you use? Android, Ubuntu, OOWOW or others?
Ubuntu, Kernel 4.9.241
Which version of system do you use? Khadas official images, self built images, or others?
Official
Please describe your issue below:
So I want to emulate an HID-compliant mouse, but I can’t figure out how to enable gadget mode for the USB-c port. I added otg-device in the /boot/env.txt and tried to load the g_hid module (it says it isn’t found ). Tried gadgetfs too but it seems to be missing in ubuntu ( tried this: Building Gadget USB Module - Openmoko but didn’t work ). I am pretty new to this and can’t find anything helpful.
Hello, after much trial and error, I am still unable to get g_hid to work ( I think ). This is everything I enabled, did I miss something?
Kvims config:
Added those, tried more stuff like making the USB slave ( gadget ) only, tried making the files manually, adding g_hid in the /etc/modules, and even following a rasp pi tutorial and adapting it. Nothing worked. I guess I have to ask now if someone who knows much more about Linux and vim3 than me can compile a kernel with g_hid, please. ( or just give me even more info about this rabbit hole )
Enable gadget support, the Dummy HCD driver and the HID driver
Put the USB in slave only mode
( save with make kernel-saveconfig )
Edit the kvims_config ( file is at build/linux/arch/arm64/kvims_config - path was a little different for me, but you should find it around that path )
( make image )
Flash the image on the VIM3 ( obviously )
go to /boot/env.txt ( you need sudo ) and add otg-device dwc2 to the overlays ( dwc2 argument is not documented in the file but it works )