Because of increasing interesting in USB over IP topic I decided to refresh my old post. I will focus on doing the same thing with more recent version of Raspabian. If you need more information please read my previous post.

Setup SD card

First get recent version of Raspbian, then unzip and dd it to SD card:

If you are impatient and want to know what happen in background you can use this method of tracking dd progress:

Before removing card we have to be sure that all data were wrote to card:

If this operation takes time you can watch progress work writeback and dirty kilobytes using:

When sync will finish you can remove SD card and sanity check booting on RPi.

Kernel for RPi

After booting you should be able to ssh to your RPi and check if USBIP was compiled in your kernel.

Great! It looks like both server and client support was compiled as modules in recent Raspbian.

Run server side of usbip

Unfortunately usbip user space tools are not available from scratch and have to be installed:

Then you can run server:

Without connecting anything we get only internal Ethernet device when listing:

Let’s put some memory stick and check again:

Good usbip see our storage device. Let’s try to bind it:

Client side

Let’s check if device was correctly exposed by server on RPi. Of course we need usbip package installed.

Information is even more accurate then on RPi. Of course 192.168.0.105 have to be replaced with you IP address.

Quickly check if client support correct modules:

Everything looks ok. Let’s load hos module:

Now we can attach remote storage:

Let’s left some signs:

Detach and see if we will see this file on server side:

First let’s unbind:

Then mount partition on which we placed out test file:

Summary

This is quick refresh for those struggling with running usbip. There many topics to cover in this area I think about writing posts related to below topics:

  • usbip on Raspberry Pi 2
  • passing frames for RS232 to USB converter using usbip
  • A20-OLinuXino-MICRO/Cubietruck and usbip

If you any other preference or topics that would like to see on this blog please let me know in comments. If you think this post can be useful for others please share.

Thanks for reading.