mirror of
https://github.com/trussed-dev/pc-usbip-runner.git
synced 2026-03-11 16:36:43 -07:00
interchange-030
USB/IP Simulation
This runner allows using USB/IP as a means to simulate device connection to the OS, and should allow faster development of the embedded applications.
Remarks:
- Extensible with CTAP apps: currently FIDO and Admin are active;
- Does not work with Firefox at the moment;
- Allows to inject own FIDO certificates, and device properties;
- Requires multiple
usbip attachcalls to make it work [1].
[1] https://github.com/Sawchord/usbip-device#known-bugs
Setup
USB/IP tools are required to work, as well as kernel supporting it.
On Fedora these could be installed with:
make setup-fedora
Run
Simulation starts USB/IP server, which can be connected to with the USB/IP tools.
- Make sure
vhci-hcdmodule is loaded - Run simulation app
- Attach to the simulated device (2 times if needed)
This series of steps is scripted in the Makefile, thus it is sufficient to call:
make
Stop execution with:
make stop
Warning: in some cases simulation can sometimes cause kernel faults, which makes the system it is running unstable.
Description
Languages
Rust
89%
Makefile
10%
Dockerfile
1%