Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

RockpiS/dev/usbip

< RockpiS‎ | dev
Revision as of 02:06, 28 March 2022 by Hipboi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
    ROCK Pi S >  Development >  USB IP

The USB/IP Project aims to develop a general USB device sharing system over IP network. To share USB devices between computers with their full functionality, USB/IP encapsulates "USB I/O messages" into TCP/IP payloads and transmits them between computers.

The following guide works on the vendor 4.4 kernel, for mainline kernel, the steps are similar.

Install gcc 7

   apt remove gcc-8
   apt install gcc-7
   ln -sf /usr/bin/gcc-7  /usr/bin/gcc

Install required libraries

   apt install libtool
   apt install libudev-dev make
   apt install hwdata

Build

USBIP source code is from the Linux kernel, which can be found on github:

   ./autogen.sh
   ./configure --with-tcp-wrappers=no
   make install
   which usbip

Run

Plug the USB device to ROCK Pi S USB 2.0 A port:

   modprobe usbip_host
   usbip list -l
   usbip bind -b 3-1