{"action":"created","issue":{"url":"https://api.github.com/repos/dominicgs/USBProxy/issues/76","repository_url":"https://api.github.com/repos/dominicgs/USBProxy","labels_url":"https://api.github.com/repos/dominicgs/USBProxy/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/dominicgs/USBProxy/issues/76/comments","events_url":"https://api.github.com/repos/dominicgs/USBProxy/issues/76/events","html_url":"https://github.com/dominicgs/USBProxy/issues/76","id":391779530,"node_id":"MDU6SXNzdWUzOTE3Nzk1MzA=","number":76,"title":"Can't get USBProxy to work on Raspberry Pi Zero W","user":{"login":"mweal-ed","id":7795977,"node_id":"MDQ6VXNlcjc3OTU5Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/7795977?v=4","gravatar_id":"","url":"https://api.github.com/users/mweal-ed","html_url":"https://github.com/mweal-ed","followers_url":"https://api.github.com/users/mweal-ed/followers","following_url":"https://api.github.com/users/mweal-ed/following{/other_user}","gists_url":"https://api.github.com/users/mweal-ed/gists{/gist_id}","starred_url":"https://api.github.com/users/mweal-ed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweal-ed/subscriptions","organizations_url":"https://api.github.com/users/mweal-ed/orgs","repos_url":"https://api.github.com/users/mweal-ed/repos","events_url":"https://api.github.com/users/mweal-ed/events{/privacy}","received_events_url":"https://api.github.com/users/mweal-ed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-17T16:04:00Z","updated_at":"2018-12-18T22:12:54Z","closed_at":null,"author_association":"NONE","body":"I have been try to get USBProxy to work on a Raspberry Pi Zero W without a lot of success.  I am using the on board USB for the gadget port and a MAX3421E for the host port (similar to Raspdancer 21).  Do you have any suggestion on what I could be doing wrong?\r\n\r\nI use the following to build USBProxy:\r\n\r\n~~~\r\ncd\r\nsudo apt-get install build-essential cmake libpcap-dev libusb-1.0-0-dev\r\nwget https://github.com/dominicgs/USBProxy/archive/master.zip \r\nunzip master.zip\r\ncd USBProxy-master\r\nmkdir src/build\r\ncd src/build\r\ncmake ..\r\nmake\r\n\r\nsudo make install\r\nsudo ldconfig\r\n~~~\r\n\r\n* add \"dtoverlay=dwc2\" to /boot/config.txt\r\n* add \" modules-load=dwc2 \" after rootwait string in /boot/cmdline.txt.\r\n\r\n* to prevent usb printer drivers from grabbing usb port\r\n~~~\r\nsudo sh -c 'echo \"blacklist usblp\" > /etc/modprobe.d/blacklist-usblp.conf\r\n~~~\r\n\r\n~~~\r\nsudo reboot\r\nsudo  usb-mitm -l\r\n~~~\r\n\r\nI get the following output\r\n~~~\r\n\r\nLoading plugins from /usr/local/lib/USBProxy/\r\nvendorId=ffffffff\r\nproductId=ffffffff\r\ncleaning up /tmp\r\nremoving 1\r\nMade directory /tmp/gadget-8rFsub for gadget\r\nPrinting Config data\r\n        Strings: 2\r\n                DeviceProxy: DeviceProxy_LibUSB\r\n                HostProxy: HostProxy_GadgetFS\r\n        Vectors: 1\r\n                Plugins:\r\n                        PacketFilter_StreamLog\r\nPointer: 1\r\n                PacketFilter_StreamLog::file: 0xb6c8fcb0\r\nDevice: 12 01 00 02 00 00 00 40 b8 04 02 02 00 01 01 02 03 01\r\n  Manufacturer: EPSON\r\n  Product:      TM-T88V\r\n  Serial:       4D5844469389310000\r\n        *Config(1): 09 02 20 00 01 01 00 e0 01\r\n                Interface(0):\r\n                        *Alt(0): 09 04 00 00 02 ff ff 02 00\r\n                                EP(01): 07 05 01 02 40 00 00\r\n                                EP(82): 07 05 82 02 40 00 00\r\nold bInterval: 00\r\ncalculated new bInterval: 80000000\r\nold bInterval: 00\r\ncalculated new bInterval: 80000000\r\nsearching in [/tmp/gadget-8rFsub]\r\n/tmp/gadget-8rFsub device file not found.\r\nError, unable to find gadget file.\r\nFail on open 34 Numerical result out of range\r\nGadgetFS not connected.\r\ndone\r\n~~~\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dominicgs/USBProxy/issues/comments/448390576","html_url":"https://github.com/dominicgs/USBProxy/issues/76#issuecomment-448390576","issue_url":"https://api.github.com/repos/dominicgs/USBProxy/issues/76","id":448390576,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODM5MDU3Ng==","user":{"login":"mweal-ed","id":7795977,"node_id":"MDQ6VXNlcjc3OTU5Nzc=","avatar_url":"https://avatars1.githubusercontent.com/u/7795977?v=4","gravatar_id":"","url":"https://api.github.com/users/mweal-ed","html_url":"https://github.com/mweal-ed","followers_url":"https://api.github.com/users/mweal-ed/followers","following_url":"https://api.github.com/users/mweal-ed/following{/other_user}","gists_url":"https://api.github.com/users/mweal-ed/gists{/gist_id}","starred_url":"https://api.github.com/users/mweal-ed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweal-ed/subscriptions","organizations_url":"https://api.github.com/users/mweal-ed/orgs","repos_url":"https://api.github.com/users/mweal-ed/repos","events_url":"https://api.github.com/users/mweal-ed/events{/privacy}","received_events_url":"https://api.github.com/users/mweal-ed/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T22:12:54Z","updated_at":"2018-12-18T22:12:54Z","author_association":"NONE","body":"I have not done any serious testing yet, but adding \"20980000.usb\", to  *devices[]  in src/Plugins/Hosts/GadgetFS_helpers.c  find_gadget_filename() seems to solve the problem.  "}}
{"actor":{"display_login":"mweal-ed"}}