Just got Linux's g_mass_storage driver to work, with the help of a dummy gadget driver that doesn't actually require physical hardware.
This should be helpful once it comes time to try out the gadget drivers on my Raspberry Pi Zero once it comes. (The Pi Zero's micro-USB port is an OTG port, so it can function as a host (allowing you to connect a device) or as a gadget (allowing it to function like a device instead).)
Sometimes, playing around with the Linux kernel can be fun.
(This testing was done in a virtual machine.)
Edit: Also was just able to get serial working, at least to some degree. (Of course, the usefulness is limited by the fact that both endpoints are on the same machine, and I could just use a pipe or socket instead, but this will be more useful once I get my Pi Zero and have the endpoints be on *different* devices.)
Post edited March 06, 2018 by dtgreene