cezanne / usbip-win

USB/IP for Windows
GNU General Public License v3.0
1.95k stars 351 forks source link

usbip_vhci driver install failed unusually on windows7 #8

Closed luochaoying closed 5 years ago

luochaoying commented 5 years ago

hello,cezuni There is report an error after i download the source codes and compiled usbip-win, installed the USBIP test certificate and USBIP vhci driver subsequently. but the USB/IP VHCI display a abnormity icon at the device manager. i used the the windows OS version is win7,is it results in this issue of USBIP vhci driver? Looking forward to your reply,thanks!

My Build Tools is as below: Visual Studio 2017 Community Windows SDK 10.0.17134 Windows Driver Kit 10.0.17134 Build is tested on Win7

1 2 3

luochaoying commented 5 years ago

C:\usbip-win-master\Debug\x64>usbip --debug attach -r 192.168.133.34 -b 2-1 usbip: debug: c:\usbip-win-master\userspace\src\usbip\usbip.c:133:[run_command] running command: `attach'

====>> found the USB/IP VHCI

usbip: error: open vhci driver usbip: error: failed to read: err:6

C:\usbip-win-master\Debug\x64>

cezuni commented 5 years ago

@luochaoying : Not tested on Windows 7. Can you try the vhci driver at release page ? (https://github.com/cezuni/usbip-win/releases/download/0.0.1/usbip_vhci.sys) You can just copy it after disabling VHCI device.

yelfarri commented 5 years ago

@luochaoying This might be related to issue seen here. can you test method i test on https://github.com/cezuni/usbip-win/issues/6#issuecomment-454760066 this worked for me. Does it work for you?

luochaoying commented 5 years ago

hi,yelfarri i installed the driver/usbip_test.pfx and usbip_vhci.sys on win10 as specified what you are saying,it can be work normally. but it don't support the uvc (USB video device class) camera/webcam, Is this true?

yelfarri commented 5 years ago

@luochaoying I don't know:). Can you check a mouse or keyboard first does it work? After that can you try to the web camera? You might be the first to have tested this device class :). If it does not work can you provide debugging logs and information?

luochaoying commented 5 years ago

cezuni and yelfarri i'm try,that mouse,USB flash drive,them are work well,but the UVC camera driver always have exception,can't be installed correctly in Device Manager of the win10.

yelfarri commented 5 years ago

@luochaoying Does mouse work on windows 7 ? just to we can start an other issue #9

hubbybob2015 commented 5 years ago

@luochaoying the usb camera driver cannot be installed correctly ,the Devce Manager shows "USB Device over IP" for warning ,it 's a bug? And when I attcched my USB Audio in the win10 usbip client caused bluescreen,it's a bug? But the mouse,keyboard and mass storage can work! @cezuni @yelfarri

jkhunter commented 5 years ago

Hi, I have the issue with the vhci driver, too. I already check that the certificate is stored on local machine, and on both entries it says, that i own the private key of the certificate. I followed the instructions on https://github.com/cezuni/usbip-win/issues/6#issuecomment-454760066 but I still have error code 39, and cannot use the driver. I'm using Window 7

yelfarri commented 5 years ago

@jkhunter How do you install your driver ? do you use device manager -> Add legacy hardware ? I have not tested on windows 7. I want to help :) but it is hard understand the source of the problem based on comments :(. It seems that people have issues with windows 7. is it possible to do a skype meeting ? If yes drop me an email. We can plan meet where we can find the issue and how we can fix it.

tatokis commented 5 years ago

Since the issue I created seemed to be marked as a duplicate of this, I felt that it would be helpful to link https://github.com/cezuni/usbip-win/issues/12#issuecomment-463534695 here too. The post contains binaries that may work for more people using Windows 7.

I have not tested them on any other computers, and I can not guarantee that they will work for anyone else. I also take no responsibility if something goes wrong. You have to install the included .cer file into "Trusted Root Certification Authority" on local machine before installing the driver.

jkhunter commented 5 years ago

Thank you. This new binary works for me, too. Now, I can able to attach a device to win7 and it shows up in device manager.

When I want to start using the attached device, I'm getting an new error: "Failed to record. out queue full." But I think this is a different story and I should investigate to it by myself.

Oxalin commented 5 years ago

@luochaoying Would you be able to test tatokis' solution, which is to change the target OS before building the driver? Please let me know if this works for you so we may close this bug or continue investigating it.

luochaoying commented 5 years ago

OK.thanks.

terryshenzhen commented 4 years ago

@luochaoying : Not tested on Windows 7. Can you try the vhci driver at release page ? (https://github.com/cezuni/usbip-win/releases/download/0.0.1/usbip_vhci.sys) You can just copy it after disabling VHCI device.

My enviroment is win10, encounter this issue too: usbip: error: open vhci driver usbip: error: failed to read: err:6----------->but my error is : usbip: error: read_devbuf: failed to read: err:6

I use win10 as client, and run usbip.exe attach -r 192.168.1.232 -b 1-1 then meet it; usbip.exe list -r 192.168.1.232 ---> ok uninstall usbip from the device manager and reinstall (https://github.com/cezuni/usbip-win/releases/download/0.0.1/usbip_vhci.sys), meet the same error.

terryshenzhen commented 4 years ago

OK.thanks.

hi My brother, I encounter the same issue on win10, my OS system is Chinese too.---我也是中文的系统。 How did you resolve it at the finally?

terryshenzhen commented 4 years ago

@luochaoying @yelfarri @cezuni Hi My friends, I can use usbip-win now. let me conclusion: my enviroment is win10, encounter this issue: usbip: error: open vhci driver usbip: error: failed to read: err:6----------->but my error is : usbip: error: read_devbuf: failed to read: err:6

Reason: vhci driver is not correctly installed.

in the device manager, usbip-win VHCI root is yellow, next step: remove this yellow.
BCDEDIT -SET LOADOPTIONS DISABLE_INTEGRITY_CHECKS

BCDEDIT -SET TESTSIGNING ON (@yelfarri 's comment has some error about the first command)

when do this, I must forbid the security options in BIOS or this cmd will no use. refer (https://blog.csdn.net/u012891962/article/details/96701710)

then reinstall, yellow is gone.

reinstall are: usbip-win-master----Debug---x64----- usbip-vhci.cer Install driver/usbip_test.pfx(password: usbip) usbip.exe install

attach is: usbip.exe attach -r 192.168.1.232 -b 1-1

then it works well, I can see usb disk on the linux board via winsows 10. copy , past are OK.

Thank you all, I learn more from you!

CpServiceSpb commented 1 year ago

Which is the latest driver version working under Windows 7 ? I have error 38 as well.