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

Difference between revisions of "RockpiS/dev/usbip"

< RockpiS‎ | dev
(Created page with "{{rockpiS_header}} {{Languages|rockpiS/dev/usbip}} ROCK Pi S > Development > USB IP")
 
 
Line 4: Line 4:
  
 
     [[rockpiS | ROCK Pi S]] > [[rockpiS/dev | Development]] > [[rockpiS/dev/usbip | USB IP]]
 
     [[rockpiS | ROCK Pi S]] > [[rockpiS/dev | Development]] > [[rockpiS/dev/usbip | USB IP]]
 +
 +
__TOC__
 +
 +
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 [https://github.com/radxa/kernel/tree/stable-4.4-rockpis/tools/usb/usbip 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

Latest revision as of 02:06, 28 March 2022

    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