Open gberaudo opened 5 months ago
I tested on Ubuntu 24.04
A whitelisted vendor/product needs to be defined (see whitelist, from accepted answer)
With this change I was able to log with the test page you mention in the Readme.
diff --git a/usb/usb_device.go b/usb/usb_device.go index 72ed8d6..ca5b21f 100644 --- a/usb/usb_device.go +++ b/usb/usb_device.go @@ -42,8 +42,8 @@ func (device *USBDevice) DeviceSummary() usbip.USBIPDeviceSummary { Busnum: 2, Devnum: 2, Speed: 2, - IdVendor: 0, - IdProduct: 0, + IdVendor: 0x1050, + IdProduct: 0x0113, BcdDevice: 0, BDeviceClass: 0, BDeviceSubclass: 0, @@ -195,8 +195,8 @@ func (device *USBDevice) getDeviceDescriptor() usbDeviceDescriptor { BDeviceSubclass: 0, BDeviceProtocol: 0, BMaxPacketSize: 64, - IDVendor: 0, - IDProduct: 0, + IDVendor: 0x1050, + IDProduct: 0x0113, BcdDevice: 0x1, IManufacturer: 1, IProduct: 2,
Also, though sudo is required the compilation should be done as a normal user. So I suggest changing sudo go run ./cmd/demo start to go run ./cmd/demo start
sudo go run ./cmd/demo start
go run ./cmd/demo start
I tested on Ubuntu 24.04
A whitelisted vendor/product needs to be defined (see whitelist, from accepted answer)
With this change I was able to log with the test page you mention in the Readme.