Menu

Support for the Raspberry Pi

Evangelos
2015-02-20
2016-03-04
  • Evangelos

    Evangelos - 2015-02-20

    Hello to the team,

    I am currently trying to build the usbip on the Raspberry Pi (currently having the Pi 2 model B) but without success.
    I've also tried the "brother" project of usbip but it is long now abandoned.

    Do you have a how-to or a quick solution on how to run it on the PI?

    Thank you
    Evangelos

     
  • Samuel Bauer

    Samuel Bauer - 2016-03-04

    Server: Raspbian "Jessie"
    Kernel 3.18 for rpi2 (by default only one with headers)
    Followed step by step: https://sourceforge.net/p/ipusb/wiki/ipusb/
    And: https://sourceforge.net/p/ipusb/wiki/ipusb-kmod/

    Added lines to load module and launch demon at startup in rc.local
    insmod /path/to/module/ipusb-host.ko
    nohup ipusbd > /root/.ipusb.log &

    Client: Windows 10 (if client is linux one should definitely use usbip)
    Boot with "Disable driver signature enforcement"
    shutdown /o /r, troubleshootings, advanced option, startup settings
    Install drivers as described in USAGE file from win-kmod
    install client
    Launch it and add server ip/name
    Attach device works.
    Detach crashes gui.

    The guy requiring this setting will soon make further test about sharing USB devices

    Tip: Udev rule to auto bind device automagically

    /etc/udev/rules.d/01-usbip.rules
    ACTION=="add", SUBSYSTEMS=="usb", ATTR{idVendor}=="xxxx", ATTR{idProduct}=="yyyy", RUN+="/usr/local/bin/usbip_udev.sh bind xxxx yyyy"

    /usr/local/bin/usbip_udev.sh
    #!/bin/sh
    bus=$(ipusb list -l | sed -n "/busid.${2}:${3}/ { s/. busid //; s/ .*$//; p}")

    ipusb ${1} --busid ${bus}
    

    Hope this to be useful to someone, even thread is very old.
    If rpi2 provided 3.14 kernel, then would probably use "usbip" instead.

     

    Last edit: Samuel Bauer 2016-03-04

Log in to post a comment.

MongoDB Logo MongoDB