Skip to content
USB Raw Gadget
C Other
  1. C 99.0%
  2. Other 1.0%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Raw Gadget

Note: most likely you need GadgetFS, not Raw Gadget. See the differences here.

USB Raw Gadget is a kernel module that allows to emulate USB devices from userspace. This repository contains instructions and examples for using Raw Gadget.

The module is currently under review for upstream inclusion, so the interface it provides for the userspace might change.

See dummy_hcd and raw_gadget for information on how to build and insmod corresponding kernel modules. Then you can try examples.

Building kernel modules requires kernel headers. On desktop Ubuntu you can get them by installing linux-headers-`uname -r`. On Raspberry Pi Zero follow these instructions.

You can’t perform that action at this time.