On Thu, Jan 24, 2013 at 12:59:00AM +0100, Carsten Neumann wrote: > 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 don't understand, care to draw a block diagram of exactly what you are trying to do here? Use a USB device attached to a "normal" computer somewhere on the network, as a "virtual" device on your embedded controller? What type of USB device are you wanting to do this for? > 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.) I don't understand, what do you want to bind to what? > 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? Hub controllers are done in hardware, so you will need to buy a chip that does that if you want to do it. > I did read something about hub controllers, but are these what I mean > and are any supported by the linux USB stack? >From the host side, yes, since the beginning (1999 or so). greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html