From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754127AbcLIRML (ORCPT ); Fri, 9 Dec 2016 12:12:11 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:36587 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753017AbcLIRMK (ORCPT ); Fri, 9 Dec 2016 12:12:10 -0500 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 X-AuditID: cbfee61a-f79916d0000062de-ad-584ae5e8234d Subject: Re: Fwd: Antwort: Re: vUDC To: shuah@kernel.org, elen.niedermeyer@biotronik.com References: <67b23509-71f2-7e85-6b6e-807041661ec0@samsung.com> <16c02261-4f41-7e75-8b70-64534b4ed971@kernel.org> Cc: Shuah Khan , linux-usb@vger.kernel.org, kernelnewbies@nl.linux.org, linux-kernel@vger.kernel.org, shuahkh@osg.samsung.com From: Krzysztof Opasiak Message-id: <09380d20-b1da-3b10-45f2-f2836311156f@samsung.com> Date: Fri, 09 Dec 2016 18:12:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 In-reply-to: <16c02261-4f41-7e75-8b70-64534b4ed971@kernel.org> Content-transfer-encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOIsWRmVeSWpSXmKPExsVy+t9jQd0XT70iDCY+4rVoXbaLyeLT09Us Fpd3zWGzWLSsldliyst17BZTv3xgsfj608GB3WPSrl2MHjtn3WX32LSqk83jx8S3bB5b+oHc z5vkAtii3GwyUhNTUosUUvOS81My89JtlUJD3HQtlBTyEnNTbZUidH1DgpQUyhJzSoE8IwM0 4OAc4B6spG+X4Jax9E43S8EG6Yqzs7+xNTDOEuti5OCQEDCRuD8xrouRE8gUk7hwbz1bFyMX h5DALEaJAy23WEASvAKCEj8m32MBqWcWUJeYMiUXouYho8SuK+/YQGqEBZQl9nbsZQaxRYBm fv/3BWrQJCaJ9u5prCAOs8A0RokT05cwg0xiE9CXmLdLFGKBncS+uz+ZQGwWAVWJ1a9ms4PY ogIRErcedoAdwQlU82bvDbAFzALyEgevPGeZwAh0JsJ9sxDum4WkagEj8ypGidSC5ILipPRc w7zUcr3ixNzi0rx0veT83E2M4Eh7JrWD8eAu90OMAhyMSjy8Doe8IoRYE8uKK3MPMUpwMCuJ 8PI9BgrxpiRWVqUW5ccXleakFh9iNAW6dyKzlGhyPjAJ5JXEG5qYm5gbG1iYW1qaGCmJ8zbO fhYuJJCeWJKanZpakFoE08fEwSnVwDjlx8WVufcf3ivr/mTlf7Q/90x+TJiy487MPXaadr/Z 2dMnODP62XZuTpgrklVh82qxnXTf9blyZ6u3nv3mxNj/x7LhiPiC02acG2P3HtxwSYVd3GZp j2iZg4JBwfuCh1ETBFUtvhwW2i4ws6Bl0pPAuxe+fJ+5t/T2/r0Tb2h8Ep9ty2XXNFGJpTgj 0VCLuag4EQBSCWL7ygIAAA== X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/09/2016 03:43 PM, Shuah Khan wrote: > Hi Krzysztof, > > On 12/09/2016 01:43 AM, Krzysztof Opasiak wrote: >> FYI to the list for next generations;) >> >> >> -------- Forwarded Message -------- >> Subject: Antwort: Re: vUDC >> Date: Fri, 9 Dec 2016 09:00:04 +0100 >> From: Elen Niedermeyer >> To: Krzysztof Opasiak >> >> >> Hi, >> >> so your script solved my problem. I didn't know that I should start the >> daemon with 'usbipd --device' after starting my emulation. I've tried it >> with 'usbip -d' and then bind my device with 'usbip bind -b BUSID'. But >> there wasn't listet a device by usbip with 'usbip list -l', so I didn't >> know what I have to bind. Mit freundlichen Grüßen >> Kind regards, >> >> i.A. Elen Niedermeyer >> Duale Studentin Informatik >> __________________________ >> >> BIOTRONIK SE & Co. KG >> Woermannkehre 1 >> 12359 Berlin, Germany >> >> Phone: +49 (0) 30 68905-2459 >> Fax: +49 (0) 30 68905 2940 >> Mail: elen.niedermeyer@biotronik.com >> >> -----Krzysztof Opasiak schrieb: ----- >> An: Shuah Khan , Elen Niedermeyer >> >> Von: Krzysztof Opasiak >> Datum: 08.12.2016 16:11 >> Kopie: linux-usb@vger.kernel.org, kernelnewbies@nl.linux.org, LKML >> , shuah@kernel.org >> Betreff: Re: vUDC >> >> 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 > > I would be good to create server_sample.sh and client_sample.sh and add > them to tools/usb/usbip - users can customize them. > > What do you think? Is this something you have time for? > I have just created one. Patch is on the list[1]. Footnotes: 1 - http://marc.info/?l=linux-usb&m=148130330315109&w=2 Cheers, -- Krzysztof Opasiak Samsung R&D Institute Poland Samsung Electronics