Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753869AbcLHPth (ORCPT ); Thu, 8 Dec 2016 10:49:37 -0500 Received: from resqmta-po-10v.sys.comcast.net ([96.114.154.169]:35791 "EHLO resqmta-po-10v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752287AbcLHPtf (ORCPT ); Thu, 8 Dec 2016 10:49:35 -0500 Reply-To: shuah@kernel.org Subject: Re: vUDC References: <55c43577-1389-8e11-724b-8b8235abb7a6@samsung.com> To: Krzysztof Opasiak , Elen Niedermeyer Cc: Shuah Khan , linux-usb@vger.kernel.org, kernelnewbies@nl.linux.org, LKML , Shuah Khan , Shuah Khan From: Shuah Khan Message-ID: Date: Thu, 8 Dec 2016 08:47:27 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <55c43577-1389-8e11-724b-8b8235abb7a6@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfGLclLXJYG3KldeDbRCbgMfrVS0yaKUphonQj6J5qWCrLKi4QxNql6/mzh9+V3AR9zhZDicgwGM2+cRfYE/7r+YWC3WMq2A+XFM3yfZ9yFmNoxScQu1u uS/bEj+1VCxalY1bk9gps+GoJLLUqiy3cqu9nPVU+j3PrIo+sP+EgdE81r3DCfnwp8hJB22fSuSgOlHqaTW0waZw+Mo7ow0jVxCoBa/mEavtnKYgbJpvCyQz Y0JxNUohmSvN5xQ12N+bKuLJJNFKUI1dLy1xzMt7SnwQe1cZdiSF4zgQ+RPyz90QXj8kVP/Q64B1C0w5pbS8Kawwp7ZhtlyXj3XDIRolcFRAsVzJTrX2oMST vclKLaPyRDmCjbZsTST/Y43A2Ja3uwzLMFaRomawIswXVrSN0pI= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1994 Lines: 63 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 >> 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