Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753327AbcLHPHc (ORCPT ); Thu, 8 Dec 2016 10:07:32 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:33133 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751959AbcLHPHb (ORCPT ); Thu, 8 Dec 2016 10:07:31 -0500 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 X-AuditID: cbfee61b-f796f6d000004092-8b-584977302b4c Subject: Re: vUDC To: Shuah Khan , Elen Niedermeyer References: Cc: linux-usb@vger.kernel.org, kernelnewbies@nl.linux.org, LKML , shuah@kernel.org From: Krzysztof Opasiak Message-id: <55c43577-1389-8e11-724b-8b8235abb7a6@samsung.com> Date: Thu, 08 Dec 2016 16:07:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 In-reply-to: Content-transfer-encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLIsWRmVeSWpSXmKPExsVy+t9jAV2Dcs8IgxevrSxal+1isvj0dDWL xeVdc9gsFi1rZbaY8nIdu8XXnw4ObB6Tdu1i9Ng56y67x6ZVnWwePya+ZfP4vEkugDXKzSYj NTEltUghNS85PyUzL91WKTTETddCSSEvMTfVVilC1zckSEmhLDGnFMgzMkADDs4B7sFK+nYJ bhkLn69kL5jEV3Hj6jf2BsZ53F2MnBwSAiYSx54/ZoSwxSQu3FvP1sXIxSEksJRRYv33BiaQ BK+AoMSPyfdYuhg5OJgF1CWmTMmFqHnIKHHy9AY2kBphoJpXzzewg9giApES1xbtZoEo+sAo Mef1SRaQBLNAkcSS/wfBBrEJ6EvM2yUKMd9O4tHS22BzWARUJe5/PMsMYosKREjcetgB1sop ECwxqfMbE8QYeYmDV56zTGAUmIXkvFkI581CUrWAkXkVo0RqQXJBcVJ6rlFearlecWJucWle ul5yfu4mRnBUPZPewXh4l/shRgEORiUe3gMFnhFCrIllxZW5hxglOJiVRHhtSoBCvCmJlVWp RfnxRaU5qcWHGE2B7p3ILCWanA+M+LySeEMTcxNzYwMLc0tLEyMlcd7G2c/ChQTSE0tSs1NT C1KLYPqYODilGhj1Q/PKZiqK79qy24wrVN7ob0NwAPdtzcrNEZl2hodYby85vtjzj7JRpIh+ vsOSH2/uTF183jrQ8Eq1UGX/vK1V745qXHn+4sl3qzXRm95OabkTZhhaHGQ6yXSjzCveeoOG rqX37RUyK31L1Nz0hNZWaik45It/vP7+inLHmQ0HVpydrlA78ZASS3FGoqEWc1FxIgA/UBiH wAIAAA== X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1752 Lines: 58 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 > 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, -- Krzysztof Opasiak Samsung R&D Institute Poland Samsung Electronics