Last active
March 24, 2017 16:52
-
-
Save LukasRypl/841c48e29cd23f08a22eba8f9447ef10 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Final goal: http://breaking-the-system.blogspot.cz/2014/08/emulating-usb-devices-in-python-with-no.html | |
Newer version: https://github.com/lcgamboa/USBIP-Virtual-USB-Device | |
------ | |
server: | |
# lsb_release -a | |
LSB Version: core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch | |
Distributor ID: openSUSE Leap | |
Description: openSUSE Leap 42.2 | |
Release: 42.2 | |
Codename: 42.2 | |
# uname -a | |
Linux rypl-ntb 4.4.49-16-default #1 SMP Sun Feb 19 17:40:35 UTC 2017 (70e9954) x86_64 x86_64 x86_64 GNU/Linux | |
# zypper in usbip | |
# rpm -ql usbip | |
/usr/lib64/libusbip.so.0 | |
/usr/lib64/libusbip.so.0.0.1 | |
/usr/sbin/usbip | |
/usr/sbin/usbipd | |
/usr/share/man/man8 | |
/usr/share/man/man8/usbip.8.gz | |
/usr/share/man/man8/usbip_bind_driver.8.gz | |
/usr/share/man/man8/usbipd.8.gz | |
# modprobe usbip-core | |
# modprobe usbip-host | |
# modprobe vhci-hcd | |
# usbip version | |
usbip (usbip-utils 1.1.1) | |
# usbip list -l | |
Local USB devices | |
================= | |
- busid 1-1 (8087:0024) | |
1-1:1.0 -> hub | |
- busid 1-1.4 (8086:0189) | |
1-1.4:1.0 -> btusb | |
1-1.4:1.1 -> btusb | |
- busid 1-1.5 (05ca:1820) | |
1-1.5:1.0 -> uvcvideo | |
1-1.5:1.1 -> uvcvideo | |
- busid 2-1 (0409:005a) | |
2-1:1.0 -> hub | |
- busid 2-1.1 (04f3:0103) | |
2-1.1:1.0 -> usbhid | |
2-1.1:1.1 -> usbhid | |
- busid 2-1.2 (0b38:0010) | |
2-1.2:1.0 -> usbhid | |
2-1.2:1.1 -> usbhid | |
- busid 4-1 (8087:0024) | |
4-1:1.0 -> hub | |
- busid 4-1.2 (046d:c52f) | |
4-1.2:1.0 -> usbhid | |
4-1.2:1.1 -> usbhid | |
- busid 4-1.3 (138a:0011) | |
4-1.3:1.0 -> unknown | |
# lsusb | |
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | |
Bus 004 Device 004: ID 138a:0011 Validity Sensors, Inc. VFS5011 Fingerprint Reader | |
Bus 004 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver | |
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub | |
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | |
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub | |
Bus 002 Device 011: ID 0b38:0010 Gear Head 107-Key Keyboard | |
Bus 002 Device 010: ID 04f3:0103 Elan Microelectronics Corp. ActiveJet K-2024 Multimedia Keyboard | |
Bus 002 Device 009: ID 0409:005a NEC Corp. HighSpeed Hub | |
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | |
Bus 001 Device 004: ID 05ca:1820 Ricoh Co., Ltd Integrated Webcam | |
Bus 001 Device 003: ID 8086:0189 Intel Corp. | |
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub | |
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | |
# usbipd -dD | |
usbipd: info: starting usbipd (usbip-utils 1.1.1) | |
usbipd: info: listening on 0.0.0.0:3240 | |
# usbip --log --debug bind -b 2-1.2 | |
usbip: debug: usbip.c:134:[run_command] running command: `bind' | |
usbip: debug: usbip_bind.c:162:[unbind_other] 2-1.2:1.0 -> usbhid | |
usbip: debug: usbip_bind.c:162:[unbind_other] 2-1.2:1.1 -> usbhid | |
usbip: debug: utils.c:65:[modify_match_busid] write "add 2-1.2" to /sys/bus/usb/drivers/usbip-host/match_busid | |
usbip: debug: usbip_bind.c:101:[bind_usbip] bind driver at 2-1.2:1.0 failed | |
usbip: debug: usbip_bind.c:101:[bind_usbip] bind driver at 2-1.2:1.1 failed | |
usbip: error: could not bind device to usbip-host | |
usbip: debug: utils.c:65:[modify_match_busid] write "del 2-1.2" to /sys/bus/usb/drivers/usbip-host/match_busid | |
# | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment