From: Shuah Khan <shuah@kernel.org>
To: Krzysztof Opasiak <k.opasiak@samsung.com>,
Elen Niedermeyer <elen.niedermeyer@biotronik.com>
Cc: Shuah Khan <shuahkhan@gmail.com>,
linux-usb@vger.kernel.org, kernelnewbies@nl.linux.org,
LKML <linux-kernel@vger.kernel.org>,
Shuah Khan <shuahkh@osg.samsung.com>,
Shuah Khan <shuah@kernel.org>
Subject: Re: vUDC
Date: Thu, 8 Dec 2016 08:47:27 -0700 [thread overview]
Message-ID: <ac2054a0-aa0c-a348-f7b4-79e16fb5e86e@kernel.org> (raw)
In-Reply-To: <55c43577-1389-8e11-724b-8b8235abb7a6@samsung.com>
On 12/08/2016 08:07 AM, Krzysztof Opasiak wrote:
> Hi,
>
> On 12/08/2016 03:33 PM, Shuah Khan wrote:
>> Hi Elen,
>>
>> Adding k.opasiak@samsung.com
>>
>> On Thu, Dec 8, 2016 at 7:07 AM, Elen Niedermeyer
>> <elen.niedermeyer@biotronik.com> 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:
>
> Server:
> $ 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
>
> Client:
> $ 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
> time.
>
> Best regards,
>
Thanks Krzysztof. When you get around to it, let's just add it under
Documentation. You can create a new file usbip.txt (guess at some
point we have to make .rst)
thanks,
-- Shuah
prev parent reply other threads:[~2016-12-08 15:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-08 14:07 vUDC Elen Niedermeyer
2016-12-08 14:33 ` vUDC Shuah Khan
2016-12-08 15:07 ` vUDC Krzysztof Opasiak
2016-12-08 15:47 ` Shuah Khan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ac2054a0-aa0c-a348-f7b4-79e16fb5e86e@kernel.org \
--to=shuah@kernel.org \
--cc=elen.niedermeyer@biotronik.com \
--cc=k.opasiak@samsung.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=shuahkh@osg.samsung.com \
--cc=shuahkhan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®