Modern USB gadget on Linux and how to integrate it with systemd (Part 1) (2019)
collabora.com
collabora.com
It was mentioned in the context of Raw Gadget [2], which is a Linux kernel driver that gives more low-level control over Gadget FS. I've been reading about this problem space a little lately, and Gadget FS seems pretty versatile and just needs a kernel recompile to enable it on RPi, I believe.
I found out about Raw Gadget on Raspberry Pi[3] just now, in reading about raw-gadget [4]:
> Most of the Gadset subsystem interfaces (with the exception of GadgetFS and the FunctionFS-based composite function) only allow emulating USB devices of specific classes. Compared to them, Raw Gadget allows emulating USB devices of arbitary classes.
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
[3] https://github.com/xairy/raw-gadget/blob/master/docs/setup_r...