Hi,
I am planning to build a USB device based on an embedded controller board
having a (High-Speed) USB peripheral port and an (Gbit) Ethernet port.
My goal is to "connect" arbitrary USB devices (e.g. physical mass storage /
serial devices or gadgets like g_mass_storage, g_serial) attached to a host
somewhere on the LAN to my device's USB peripheral port,
so that I can use them on a physical device (e.g. mediaplayer) w/ USB port.
I am new to the linux USB stack, so before I waste days or weeks until I find
out it's not possible this way, I decided to ask the specialists. ;-)
Here are my questions:
Is there a simple way to bind a USB device connected to a host port to a
peripheral port (e.g. via an existing gadget)? (Couldn't find one so far.)
Does the current usbip protocol provide enough information to make this also
work for usbip'd devices? (No clue.)
If not, would it be (relatively easily) possible to extend the usbip protocol
to accomplish this?
If I have to write my own gadget:
It would be more general to bind the usbip-vhci (or whatever HCI) device to a
peripheral port.
On the other hand this means more overhead.
The data will go through two drivers (vhci-hcd and my gadget) and both have to
run on an embedded controller where I only have limited CPU power.
Therefore it would be better to build one gadget that has the usbip protocol
built-in. (The usbip protocol implementation could then possibly be placed into
a separate kernel module.)
Another question is: are there device controllers which can act as multiple
(NOT multifunction composite) devices so that the attached host will see a hub?
I did read something about hub controllers, but are these what I mean and are
any supported by the linux USB stack?
Any comments? :-)
Thanks in advance,
Carsten
--
"Seit die Mathematiker über die Relativitätstheorie hergefallen sind, verstehe
ich sie selbst nicht mehr."
(“Since the mathematicians have invaded the theory of relativity I do not
understand it myself any more.”)
- Albert Einstein
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html