-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
The Rockchip RV1126 cannot connect to WSL2 as an ADB device. #807
Comments
Can you get a pcap? See https://github.com/dorssel/usbipd-win/wiki/Troubleshooting#usb-capture. |
That log file only contains attaching the device. No data at all (and therefore also not the USBSUP_XFER_DNR failure). |
Sorry, I don't know how to obtain the correct logs. |
That is the correct way. And the logs you returned are correct. However, when you captured the logs, the error did not occur. Try to repeat the situation where you got |
this is log: dbug: Microsoft.Extensions.Hosting.Internal.Host[1] This is pcapng file: I executed the command |
The interesting part:
The device seems non-responsive right after setting the configuration. This is not strange, some devices just require a bit of "setup time". What is weird is that this leads to ETIME. As you can see from the time-stamps, there is just microseconds between the request and ETIME, so this probably is not a timer. ETIME comes from the VirtualBox USBSUP_XFER_DNR (DNR == Did Not Respond). The translation to ETIME is mine. Maybe I should translate it to STALL, or so. I'll make a special build with that change, so you can see if that makes a difference. |
Can you try the installer from https://github.com/dorssel/usbipd-win/actions/runs/7308106135?pr=812 and run another log session? |
logfile: log: |
It gets (only marginally) further. But this time (right after the EPIPE errors) the device responds with an invalid reply!
I think we can safely conclude this device (or at least in this mode) is not going to function. It seems to violate the USB standard. Please uninstall the test version and revert to the released 4.0.0. I will list this device as incompatible. |
I found that by modifying the usb configuration file of the rv1126, the device can be recognized by WSL.
then, reboot device Execute the command Hope it is helpful for others using rv1126. |
@johnzhy |
yes, It's working properly |
usbipd-win version: 4.0.0+182.Branch.master.Sha.2ffe37ec799b9e73eb9d23d051d980fefb616ce1
wsl2: ubuntu20.04 5.15.133.1-microsoft-standard-WSL2
rv1126 as adb device:
When I execute this command: usbipd attach --wsl -b 8-4
log:
dbug: Usbipd.Server[1000]
new connection from 172.27.199.146
dbug: Usbipd.Server[1000]
connection close: Unable to read beyond the end of the stream.
dbug: Usbipd.Server[1000]
connection closed
dbug: Usbipd.Server[1000]
new connection from 172.27.199.146
dbug: Usbipd.ConnectedClient[1000]
Received opcode: OP_REQ_IMPORT
dbug: Usbipd.ConnectedClient[1000]
Claiming took 105 ms
info: Usbipd.ConnectedClient[1]
Client 172.27.199.146 claimed device at 8-4 (USB\VID_2207&PID_0006\7&1B1B1ACF&1&4).
dbug: 8-4.0[1000]
Endpoint created
dbug: 8-4.0[1000]
Endpoint created
dbug: 8-4.0[1000]
Trapped SET_CONFIGURATION: 1
dbug: 8-4.0[1000]
USBSUP_XFER_DNR -> ETIME -> -62
dbug: 8-4.0[1000]
USBSUP_XFER_DNR -> ETIME -> -62
dbug: 8-4.0[1000]
USBSUP_XFER_DNR -> ETIME -> -62
dbug: 8-4.0[1000]
USBSUP_XFER_DNR -> ETIME -> -62
dbug: Usbipd.ConnectedClient[1000]
Unbind or unplug while attached
info: Usbipd.ConnectedClient[2]
Client 172.27.199.146 released device at 8-4 (USB\VID_2207&PID_0006\7&1B1B1ACF&1&4).
dbug: Usbipd.Server[1000]
connection close: The operation was canceled.
dbug: Usbipd.Server[1000]
connection closed
The RV1126 is still connected to the host machine.
wsl2 execute: lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
rv1126 as ntb device:
execute this command: usbipd attach --wsl -b 8-4
log:
dbug: Usbipd.Server[1000]
new connection from 172.27.199.146
dbug: Usbipd.Server[1000]
connection close: Unable to read beyond the end of the stream.
dbug: Usbipd.Server[1000]
connection closed
dbug: Usbipd.Server[1000]
new connection from 172.27.199.146
dbug: Usbipd.ConnectedClient[1000]
Received opcode: OP_REQ_IMPORT
dbug: Usbipd.ConnectedClient[1000]
Claiming took 1274 ms
info: Usbipd.ConnectedClient[1]
Client 172.27.199.146 claimed device at 8-4 (USB\VID_2207&PID_0006\7&1B1B1ACF&1&4).
dbug: 8-4.0[1000]
Endpoint created
dbug: 8-4.0[1000]
Endpoint created
dbug: 8-4.0[1000]
Trapped SET_CONFIGURATION: 1
wsl2 execute: lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 020: ID 2207:0006 Fuzhou Rockchip Electronics Company rk3xxx
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
The text was updated successfully, but these errors were encountered: