USB Raw Gadget (an interface that allows to emulate USB devices through the USB Gadget subsystem) has been merged into mainline: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10 …
gadgetfs requires that the individual functions are implemented in the kernel though, right? so if you want to be an MTP gadget, you need to actually have parts of the MTP implementation in the kernel?
-
-
No, with GadgetFS everything's in userspace. There are a few limitations that make it less suitable for fuzzing (some of them are here [1]), but for emulating functional devices it should work well [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/usb/raw-gadget.rst …
-
oooh, neat, I had no idea! thanks for the information :)
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.