Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux documentation update / snap support #39

Open
gberaudo opened this issue Jun 5, 2024 · 1 comment
Open

Linux documentation update / snap support #39

gberaudo opened this issue Jun 5, 2024 · 1 comment

Comments

@gberaudo
Copy link

gberaudo commented Jun 5, 2024

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,
@gberaudo
Copy link
Author

gberaudo commented Jun 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant