Re: vUDC

From: Krzysztof Opasiak
Date: Thu Dec 08 2016 - 10:07:37 EST


On 12/08/2016 03:33 PM, Shuah Khan wrote:
> Hi Elen,
> Adding k.opasiak@xxxxxxxxxxx
> On Thu, Dec 8, 2016 at 7:07 AM, Elen Niedermeyer
> <elen.niedermeyer@xxxxxxxxxxxxx> wrote:
>> Dear Sir or Madam,
>> I'm trying to run usbip-vudc since a few days. I want to access my emulated usb devices over usbip.
>> I use Ubuntu 16.04.01 and updated my kernel to version 4.8.0-30. I've installed linux-tools-4.8.0-30-generic which includes usbip. I enabled the modules usbip-host and usbip-vudc on the server. Futhermore I use configfs to emulate the usb devices.
>> So I could start the daemon and my emulation. But I can't detect my emulated usb device with usbip to bind it.
>> Could you help me to run usbip-vudc? Do I have to install an additional package? Do I miss a step?
>> Mit freundlichen GrÃÃen
>> Kind regards,
> Could you please send your dmesg? Also could you run usbipd with
> --debug and usbip with --log option and send the syslog
> Krzysztof,

You setup script should look like this:

$ modprobe usbip-vudc
# Create your gadget, for example:
$ cd /sys/kernel/config/usb_gadget
$ mkdir g1
$ mkdir g1/functions/acm.ser0
$ mkdir g1/configs/c.1
$ ln -s g1/functions/acm.ser0 g1/configs/c.1
$ echo "0x1234" > g1/idVendor
$ echo "0x5678" > g1/idProduct
$ echo usbip-vudc.0 > UDC
$ usbipd --device

$ modprobe usbip-vhci
$ usbip attach -r $SERVER_IP -d usbip-vudc.0

Please let me know if your setup script is similar and what exactly is
not working for you.

> Any ideas. Maybe it is time the documentation is updated with vudc details.

Yes I think it's a good idea. I'll try to do this when I have some spare

Best regards,
Krzysztof Opasiak
Samsung R&D Institute Poland
Samsung Electronics