Coder Social home page Coder Social logo

Comments (30)

cezuni avatar cezuni commented on July 24, 2024

@zhLoser01 : The error(0x103, ERROR_NO_MORE_ITEMS) in your screenshot may indicate that your system has a more specific driver than usbip_stub.sys in a temporarily generated inf. Take a look at UpdateDriverForPlugAndPlayDevices API in msdn. According to the document, the following code may require additional INSTALLFLAG_FORCE flag. Can you try?
https://github.com/cezuni/usbip-win/blob/f87ff13c0bef32062a016d6e6d0a3b8f3619ce56/userspace/lib/usbip_stub.c#L176

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

image
What should I do?

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@zhLoser01 : modify the source as follows:
"INSTALLFLAG_NONINTERACTIVE" -> "INSTALLFLAG_NONINTERACTIVE | INSTALLFLAG_FORCE"

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

image
image

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

error 103

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@zhLoser01 : Which drivers are currently loaded for the DataTraveler G4 device ? You can manually replace the driver with an usbip stub driver via device manager.

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

image
I manually added this driver

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

image
I have manually updated the driver

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@zhLoser01 : If you can update the driver manually, there's no reason to fail with usbip bind. Can you try with usbip bind again after removing the device?

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@zhLoser01 : I recommend you to build usbip.exe with no INSTALLFLAG_NONINTERACTIVE. If that flag is dropped, some useful window may appear.

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

image
This file is generated by you, how can I generate it?

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@zhLoser01 : It's a template file for a stub driver inf. You can get it from source tree or release page.

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

Yes, I use the source code you posted, but you are 64-bit, my server is 32-bit.

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@zhLoser01 : Well, usbip-win is not ready for 32bit. But you can easily edit the file for 32bit. Maybe all most things to do is to replace amd64 -> x86 ??

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

image
Yes, I am compiling with x86, the compiler can pass, but I don't know why the binding failed. The error code is 103.

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@zhLoser01 : usbip_stub.inx should be properly modified for 32bit(x86). Did you edit that file?

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

no

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

no

You should. If you have trouble for editing, I'll do that later..

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

image
I don't know how to compile this file.

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@zhLoser01 : usbip_stub.inx is just a simple text file. usbip.exe reads that file and automatically generates a stub driver installation file(inf). No need to compile.

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

image
Ok, compiling this usbip_stub with x86 is also successful.

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

image
image
I commented out this paragraph. Is this a hint that the binding is successful?

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@zhLoser01 : No, it's not working. You just need a modified usbip_stub.inx for 32bit.

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

image
I don't know how to change this to 32-bit.

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

@zhLoser01 : I'm not sure but all you have to do is to replace amd64 with x86 for usbip_stub.inx file. Here is good reference.

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

So, this usbip_stub.inx file needs to be written manually, it is not automatically generated?

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

QQ图片20190808114651
@cezuni What is the cause of this error?

from usbip-win.

cezuni avatar cezuni commented on July 24, 2024

So, this usbip_stub.inx file needs to be written manually, it is not automatically generated?

No, it's not automatically generated. You can edit the file manually.

The server screenshot tells that the 1-71 device is not correctly bound to a usbip stub. Please retry after you edits the usbip_stub.inx.

Here is a modified usbip_stub.inx for x86, which is not tested because I have no x86 test machine.

from usbip-win.

zhLoser01 avatar zhLoser01 commented on July 24, 2024

The server uses 32 bits and the client uses 64 bits. This seems to be no good

from usbip-win.

cezanne avatar cezanne commented on July 24, 2024

@zhLoser01 : Close too old issue.

from usbip-win.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.