Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 768 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 768 Bytes

usbg.rs

USB Gadget Configfs Library

Building the HID + ECM example

Rust has built-in support to compile examples. You can build the HID + ECM example like so:

cargo build --example hidecm

Demo

asciicast

Vagrant

A Vagrant box is available that pre-installs packages needed to compile a loopback dummy_hcd kernel module. Be aware that the provisioning step is a two-step process and requires a vagrant reload and execution of the script mentioned at the end of the first provision to build and install the kernel module.

Before running the shell scripts accompanying the examples, run sudo modprobe dummy_hcd to load the loopback.