Modern USB Gadget with Custom USB Functions & its Integration with systemd - Andrzej Pietrasiewicz
Channel: The Linux Foundation
Date: 02/10/2019

Modern USB Gadget with Custom USB Functions & its Integration with systemd - Andrzej Pietrasiewicz, Collabora

Creating USB gadgets from Linux-powered devices has never been easier. Custom USB functions, such as MTP or PTP, are not a problem, either. And finally it is possible to integrate all this with systemd!The traditional approach to gadgets creation used to be writing kernel modules. Andrzej will cover composing the gadgets at runtime with configfs and available opensource tools, no more module writing. He will present recent additions to systemd which allow smooth integration of gadget creation, e.g. at device boot time - a frequent use case, all the necessary systemd units will be presented and explained, including possible templatization options. Rolling one's own USB functions (such as MTP) implemented in userspace using FunctionFS, composing them into a USB gadget and their integration with systemd will be covered and relevant systemd units explained. To demonstrate all the topics Andrzej will create an MTP gadget using opensource components and present it in action.