View previous topic :: View next topic |
Author |
Message |
Vieri l33t
Joined: 18 Dec 2005 Posts: 882
|
Posted: Thu Mar 27, 2014 12:28 pm Post subject: iUSB |
|
|
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 |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1658
|
Posted: Tue Apr 01, 2014 8:02 pm Post subject: |
|
|
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 |
Emerged for me. _________________ Donate to Gentoo |
|
Back to top |
|
|
Vieri l33t
Joined: 18 Dec 2005 Posts: 882
|
Posted: Wed Apr 02, 2014 4:08 pm Post subject: |
|
|
Thanks for sharing the ebuild.
Was it removed for some particular reason? |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Wed Apr 02, 2014 4:28 pm Post subject: |
|
|
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 |
|
|
|