{"action":"opened","issue":{"url":"https://api.github.com/repos/dominicgs/USBProxy/issues/40","labels_url":"https://api.github.com/repos/dominicgs/USBProxy/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/dominicgs/USBProxy/issues/40/comments","events_url":"https://api.github.com/repos/dominicgs/USBProxy/issues/40/events","html_url":"https://github.com/dominicgs/USBProxy/issues/40","id":64755668,"number":40,"title":"Can't get it work with dummy_hcd","user":{"login":"matlo","id":3289527,"avatar_url":"https://avatars.githubusercontent.com/u/3289527?v=3","gravatar_id":"","url":"https://api.github.com/users/matlo","html_url":"https://github.com/matlo","followers_url":"https://api.github.com/users/matlo/followers","following_url":"https://api.github.com/users/matlo/following{/other_user}","gists_url":"https://api.github.com/users/matlo/gists{/gist_id}","starred_url":"https://api.github.com/users/matlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matlo/subscriptions","organizations_url":"https://api.github.com/users/matlo/orgs","repos_url":"https://api.github.com/users/matlo/repos","events_url":"https://api.github.com/users/matlo/events{/privacy}","received_events_url":"https://api.github.com/users/matlo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-27T12:43:52Z","updated_at":"2015-03-27T12:43:52Z","closed_at":null,"body":"Hi,\r\nI'm trying to make USBProxy work with dummy_hcd.\r\nI'm using Ubuntu 14.04 which runs a 3.13 linux kernel.\r\nI built the gadgetfs and dummy_hcd modules:\r\n```\r\napt-get source linux-image-`uname -r`\r\ncd linux-3.13.0/\r\ncp /boot/config-`uname -r` .config\r\ncp /usr/src/linux-headers-`uname -r`/Module.symvers .\r\nmake menuconfig\r\nDevice Drivers > USB support > USB Gadget Support > Dummy HCD\r\nmake prepare\r\nmake scripts\r\nmake -j 4 M=drivers/usb/gadget\r\nsudo cp drivers/usb/gadget/{gadgetfs,dummy_hcd}.ko /lib/modules/`uname -r`/kernel/drivers/usb/gadget/\r\nsudo depmod -a\r\n```\r\nI loaded the dummy_hcd module:\r\n```\r\nsudo modprobe dummy_hcd\r\n```\r\nAnd I started usb-mitm:\r\n```\r\nsudo usb-mitm -v 046d -p c07d\r\nLoading plugins from /usr/local/lib/USBProxy/\r\nvendorId=046d\r\nproductId=c07d\r\ncleaning up /tmp\r\nremoving 0\r\nMade directory /tmp/gadget-YH5jnE for gadget\r\nPrinting Config data\r\n\tStrings: 4\r\n\t\tDeviceProxy: DeviceProxy_LibUSB\r\n\t\tHostProxy: HostProxy_GadgetFS\r\n\t\tproductId: c07d\r\n\t\tvendorId: 046d\r\n\tVectors: 0\r\nPointer: 0\r\nDevice: 12 01 00 02 00 00 00 40 6d 04 7d c0 02 88 01 02 03 01\r\n  Manufacturer: Logitech\r\n  Product:      Gaming Mouse G502\r\n  Serial:       *************\r\n\t*Config(1): 09 02 3b 00 02 01 04 a0 96\r\n\t   Name: U88.02_B0016            \r\n\t\tInterface(0):\r\n\t\t\t*Alt(0): 09 04 00 00 01 03 01 02 00\r\n\t\t\t\tHID: 09 21 11 01 00 01 22 43 00\r\n\t\t\t\tEP(81): 07 05 81 03 08 00 01\r\n\t\tInterface(1):\r\n\t\t\t*Alt(0): 09 04 01 00 01 03 00 00 00\r\n\t\t\t\tHID: 09 21 11 01 00 01 22 97 00\r\n\t\t\t\tEP(82): 07 05 82 03 14 00 01\r\nsearching in [/tmp/gadget-YH5jnE]\r\nStarting setup reader thread (2776) for EP00.\r\nStarting setup writer thread (2777) for EP00.\r\nFail on open EP81 2 No such file or directory\r\nStarting reader thread (2778) for EP81.\r\nStarting writer thread (2781) for EP82.\r\nStarting reader thread (2780) for EP82.\r\nStarting writer thread (2779) for EP81.\r\nReceived SIGHUP, restarting relaying...\r\nFinished writer thread (2781) for EP82.\r\nFinished setup writer thread (2777) for EP00.\r\nFinished writer thread (2779) for EP81.\r\nFinished reader thread (2778) for EP81.\r\nFinished reader thread (2780) for EP82.\r\nFinished setup reader thread (2776) for EP00.\r\nError unmounting gadgetfs from [/tmp/gadget-YH5jnE].\r\nError removing directory [/tmp/gadget-YH5jnE].\r\nDevice: 12 01 00 02 00 00 00 40 6d 04 7d c0 02 88 01 02 03 01\r\n  Manufacturer: Logitech\r\n  Product:      Gaming Mouse G502\r\n  Serial:       *************\r\n\t*Config(1): 09 02 3b 00 02 01 04 a0 96\r\n\t   Name: U88.02_B0016            \r\n\t\tInterface(0):\r\n\t\t\t*Alt(0): 09 04 00 00 01 03 01 02 00\r\n\t\t\t\tHID: 09 21 11 01 00 01 22 43 00\r\n\t\t\t\tEP(81): 07 05 81 03 08 00 01\r\n\t\tInterface(1):\r\n\t\t\t*Alt(0): 09 04 01 00 01 03 00 00 00\r\n\t\t\t\tHID: 09 21 11 01 00 01 22 97 00\r\n\t\t\t\tEP(82): 07 05 82 03 14 00 01\r\ncleaning up /tmp\r\nremoving 1\r\nMade directory /tmp/gadget-tbXzNh for gadget\r\nsearching in [/tmp/gadget-tbXzNh]\r\nFail on open 16 Device or resource busy\r\nGadgetFS not connected.\r\ndone\r\n```\r\nHere is the output of dmesg:\r\n```\r\ndmesg\r\n[   44.763401] dummy_hcd dummy_hcd.0: USB Host+Gadget Emulator, driver 02 May 2005\r\n[   44.763405] dummy_hcd dummy_hcd.0: Dummy host controller\r\n[   44.763408] dummy_hcd dummy_hcd.0: new USB bus registered, assigned bus number 5\r\n[   44.763438] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002\r\n[   44.763440] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1\r\n[   44.763441] usb usb5: Product: Dummy host controller\r\n[   44.763443] usb usb5: Manufacturer: Linux 3.13.0-48-generic dummy_hcd\r\n[   44.763444] usb usb5: SerialNumber: dummy_hcd.0\r\n[   44.764770] hub 5-0:1.0: USB hub found\r\n[   44.764778] hub 5-0:1.0: 1 port detected\r\n[   56.359823] gadgetfs: USB Gadget filesystem, version 24 Aug 2004\r\n[   56.426988] gadgetfs: bound to dummy_udc driver\r\n[   56.641830] usb 5-1: new high-speed USB device number 2 using dummy_hcd\r\n[   56.645730] gadgetfs: connected\r\n[   56.645754] gadgetfs: disconnected\r\n[   56.781752] gadgetfs: connected\r\n[   56.821777] usb 5-1: New USB device found, idVendor=046d, idProduct=c07d\r\n[   56.821782] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3\r\n[   56.821785] usb 5-1: Product: Gaming Mouse G502\r\n[   56.821788] usb 5-1: Manufacturer: Logitech\r\n[   56.821790] usb 5-1: SerialNumber: ***********\r\n[   56.825765] gadgetfs: configuration #1\r\n[   56.862044] input: Logitech Gaming Mouse G502 as /devices/platform/dummy_hcd.0/usb5/5-1/5-1:1.0/input/input17\r\n[   56.862160] hid-generic 0003:046D:C07D.0007: input,hidraw4: USB HID v1.11 Mouse [Logitech Gaming Mouse G502] on usb-dummy_hcd.0-1/input0\r\n[   56.909900] input: Logitech Gaming Mouse G502 as /devices/platform/dummy_hcd.0/usb5/5-1/5-1:1.1/input/input18\r\n[   56.909986] hid-generic 0003:046D:C07D.0008: input,hiddev0,hidraw5: USB HID v1.11 Keyboard [Logitech Gaming Mouse G502] on usb-dummy_hcd.0-1/input1\r\n[   56.933786] dummy_hcd dummy_hcd.0: timer fired with no URBs pending?\r\n[   58.409577] input: Logitech Gaming Mouse G502 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/input/input19\r\n[   58.409932] hid-generic 0003:046D:C07D.0009: input,hidraw6: USB HID v1.11 Mouse [Logitech Gaming Mouse G502] on usb-0000:00:1d.0-1.5/input0\r\n[   58.412403] input: Logitech Gaming Mouse G502 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.1/input/input20\r\n[   58.412515] hid-generic 0003:046D:C07D.000A: input,hiddev0,hidraw7: USB HID v1.11 Keyboard [Logitech Gaming Mouse G502] on usb-0000:00:1d.0-1.5/input1\r\n[   58.412538] gadgetfs: disconnected\r\n[   58.412700] usb 5-1: USB disconnect, device number \r\n```\r\nIt seems something wrong happens at 56.933786.\r\nHas anyone managed to get USBProxy work with dummy_hcd?\r\nAny suggestion?"}}