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:
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:
1
2
3
4
5
[13:18:36] pietrushnic:~ $ grep USBIP /boot/config-`uname -r`
CONFIG_USBIP_CORE=m
CONFIG_USBIP_VHCI_HCD=m
CONFIG_USBIP_HOST=m
# CONFIG_USBIP_DEBUG is not set
Everything looks ok. Let’s load hos module:
1
sudo modprobe vhci-hcd
Now we can attach remote storage:
1
sudo usbip attach -r 192.168.0.105 -b 1-1.3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[13:29:15] pietrushnic:~ $ sudo fdisk -l /dev/sdd
GPT PMBR size mismatch (13695 != 3911615) will be corrected by w(rite).
Disk /dev/sdd: 1.9 GiB, 2002747392 bytes, 3911616 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 2164228A-0AD4-43A8-9478-0E94701363B1
Device Start End Sectors Size Type
/dev/sdd1 2048 13662 11615 5.7M EFI System
[13:29:27] pietrushnic:~ $ sudo mount /dev/sdd1 tmp
[13:29:39] pietrushnic:~ $ ls tmp
EFI shellia32.efi shellx64.efi shellx64-refind-signed.efi
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.
Founder and Embedded Systems Consultant at 3mdeb as well as freelance CTO of Vitro Technology and CEO of LPN Plant. Passionate about building firmware that enables advanced hardware features in modern products. Dedicated to customers that treat embedded software security and upgradeability as forethought. Open source firmware evangelist interested in platform security and trusted computing. In favor of fixed price projects with a clear definition of success.