Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iUSB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 882

PostPosted: Thu Mar 27, 2014 12:28 pm    Post subject: iUSB Reply with quote

Hi,

This might be a dumb question but is there a way to share USB devices in a network (raw). In other words, a Linux system could share its USB devices (without necessarily having local drivers for them) via tcp/ip and a Windows client could connect them and see them "as local" and operate them with its own Windows drivers.

A bit like iSCSI allows clients to access storage via tcp/ip.

Thanks,

Vieri

[EDIT] looks like it already exists in the Linux kernel:
https://www.kernel.org/doc/readme/drivers-staging-usbip-userspace-README
and I think the original project started out here:
http://usbip.sourceforge.net/
However, I'm not sure where to get an updated usbip client for Windows (http://sourceforge.net/projects/usbip/files/usbip_windows/ seems to be old)
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1658

PostPosted: Tue Apr 01, 2014 8:02 pm    Post subject: Reply with quote

Here is a post about it:
https://forums.gentoo.org/viewtopic-t-898898-start-0.html

EDIT looks like it was removed from Gentoo I had the old ebuild on a server:

Code:
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/usbip/usbip-3.6.ebuild,v 1.2 2012/11/19 04:08:53 ssuominen Exp $

EAPI=5
inherit autotools eutils

DESCRIPTION="Userspace utilities for a general USB device sharing system over IP networks"
HOMEPAGE="http://www.kernel.org/"
SRC_URI="mirror://kernel/linux/kernel/v${PV%.*}.0/linux-${PV}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static-libs tcpd"

RDEPEND=">=dev-libs/glib-2.6
   sys-apps/hwids
   >=sys-fs/sysfsutils-2
   tcpd? ( sys-apps/tcp-wrappers )"
DEPEND="${RDEPEND}
   virtual/pkgconfig"

DOCS="AUTHORS README ../usbip_protocol.txt"

S=${WORKDIR}/linux-${PV}/drivers/staging/${PN}/userspace

src_prepare() {
   eautoreconf
}

src_configure() {
   econf \
      $(use_enable static-libs static) \
      $(use tcpd || echo --without-tcp-wrappers) \
      --with-usbids-dir=/usr/share/misc
}

src_install() {
   default
   prune_libtool_files
}

pkg_postinst() {
   elog "For using USB/IP you need to enable USB_IP_VHCI_HCD in the client"
   elog "machine's kernel config and USB_IP_HOST on the server."
}


Put that ebuild in your local overlay and emerge it:

Code:
mkdir -p /usr/portage/local/net-misc/usbip


Code:
ebuild /usr/portage/local/net-misc/usbip/usbip-3.6.ebuild digest


Code:
echo 'net-misc/usbip' >> /etc/portage/package.keywords


Code:
emerge -av usbip


Emerged for me.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 882

PostPosted: Wed Apr 02, 2014 4:08 pm    Post subject: Reply with quote

Thanks for sharing the ebuild.
Was it removed for some particular reason?
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Wed Apr 02, 2014 4:28 pm    Post subject: Reply with quote

Vieri wrote:
Thanks for sharing the ebuild.
Was it removed for some particular reason?


It might not have been being maintained.

It was removed sometime in Feb 2014 but hadn't been updated since Nov 2012

There may even be something that superseded it.
I know the 3.9.1 kernel has a section for it under drivers->staging.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum