raw-gadget icon indicating copy to clipboard operation
raw-gadget copied to clipboard

Facedancer backend

Open xairy opened this issue 4 years ago • 3 comments

It should be possible to use Raw Gadget as a backend for Facedancer. At least for UDCs with configurable (direction and transfer type) gadget endpoints.

xairy avatar May 30 '20 18:05 xairy

This would be quite interesting, it would be great to have accessible tools for teaching USB, like the PI Zero or even the some Intel Atom and Quark boards with UDC capabilities.

trevor403 avatar Jul 07 '20 04:07 trevor403

kirill9617 implemented a prototype Facedancer backend based on Raw Gadget.

Some notes:

  1. Facedancer processes all requests in a single service_irqs() handler, which is incompatible with Raw Gadget's blocking fetch/read/write ioctls. A potential solution is to add timeouts for the ioctls.

  2. Running some of Facedancer examples fails, the failures looks similar to https://github.com/xairy/raw-gadget/issues/29.

xairy avatar Dec 09 '22 20:12 xairy

Finished up the prototype and made most Facedancer examples work with Dummy and dwc2 UDCs, see the details here.

xairy avatar May 07 '23 23:05 xairy